From owner-freebsd-questions@FreeBSD.ORG Fri Aug 5 14:52:45 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE28316A41F for ; Fri, 5 Aug 2005 14:52:45 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EC2443D48 for ; Fri, 5 Aug 2005 14:52:45 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id 1EE5C389119; Fri, 5 Aug 2005 09:52:45 -0500 (CDT) Date: Fri, 05 Aug 2005 09:52:45 -0500 From: Paul Schmehl To: cell , freebsd-questions@freebsd.org Message-ID: In-Reply-To: <00d001c599a3$3ca03b20$0301a8c0@danielle> References: <00d001c599a3$3ca03b20$0301a8c0@danielle> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Problem with SASL2 and postfix on freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2005 14:52:45 -0000 --On Friday, August 05, 2005 11:51:22 +0200 cell wrote: > Hello , i'm on freebsd 5.4 and i use cyrus-sasl-2.1.21 , > cyrus-sasl-saslauthd-2.1.21 and postfix-2.2.5,1 but i have a problem with > sasl2.When i do "telnet localhost 25" , i have that : > > Trying 127.0.0.1... > Connected to localhost.linux-win.org. > Escape character is '^]'. > 220 gw-bsd.linux-win.org ESMTP Postfix 2.2.5 (FreeBSD) > ehlo example.pl > 250-gw-bsd.linux-win.org > 250-PIPELINING > 250-SIZE 10000000 > 250-VRFY > 250-ETRN > 250-STARTTLS > 250 8BITMIME > > > and i don't see "AUTH DIGEST-MD5 PLAIN CRAM-MD5" and "AUTH PLAIN".In my > main.cf , i have that : > > smtpd_recipient_restrictions = > permit_mynetworks,permit_sasl_authenticated, > reject_unauth_pipelining,reject_unauth_destination,reject_invalid_hostnam > e,reject_unknown_recipient_domain smtpd_sender_restrictions = > permit_sasl_authenticated , hash:/usr/local/etc/postfix/access, > reject_unknown_sender_domain, reject_invalid_hostname > smtpd_sasl_auth_enable = yes > smtpd_sasl_security_options = noanonymous > smtpd_sasl_local_domain = > broken_sasl_auth_clients = no > > In /usr/local/lib/sasl2 i have that : > > pwcheck_method: saslauthd > auxprop_plugin: sql > sql_engine: mysql > sql_hostnames: 127.0.0.1 > sql_user: maildb > sql_passwd: ***** > sql_database: maildb > sql_select: select clear from users where id='%u@%r' > > > and in /etc/pam.d/smtp i have that : > > auth optional pam_mysql.so host=127.0.0.1 db=maildb > user=maildb \ passwd=***** sql table=users usercolumn=id > passwdcolumn=clear crypt=y account required pam_mysql.so > host=127.0.0.1 db=maildb user=maildb \ passwd=***** sql table=users > usercolumn=id passwdcolumn=clear crypt=y > > I don't understand why postfix doesn't use sasl.Anyone knows this problem > ? What's in master.cf? Do you have the commands for saslauth? smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes (I'm using smtps, but smtp uses the auth command as well.) smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/