[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libsasl2 or postfix config file bug



Alexander Wirt wrote:
> Mike O'Connor schrieb am Donnerstag, den 28. August 2008:
>
>   
>> Hi Guys
>>
>> The smtpd.conf file on /etc/postfix/sasl/ should be read by (libsasl2 or
>> postfix not sure) to enable other types of authentication. This does not
>> seem to work as no matter what I place in this file it always fails back
>> to Berkeley db in /etc/sasldb2.
>>     
> Works fine here:
>
> ii  postfix                          2.5.2-2lenny1~bpo40+1
> High-performance mail transport agent
>
> apu:~# cat /etc/postfix/sasl/smtpd.conf 
> pwcheck_method: saslauthd
> mech_list: PLAIN LOGIN 
>
> apu:~# grep -i sasl /etc/postfix/main.cf 
> permit_sasl_authenticated,
> #sasl support
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options = noanonymous
> smtpd_sasl_local_domain = $myhostname
> broken_sasl_auth_clients = yes
> smtpd_sasl_authenticated_header = yes
>
> Sending mail via tls authenticated via PAM works here. 
>
> Alex
>   

Well as I say, even if I place a config in smtpd.conf which is wrong it
does not complain.

mail:/# dpkg -l | grep libsasl
ii  libsasl2               2.1.22.dfsg1-8                          
Authentication abstraction library
ii  libsasl2-2             2.1.22.dfsg1-8                          
Authentication abstraction library
ii  libsasl2-modules       2.1.22.dfsg1-8                          
Pluggable Authentication Modules for SASL
ii  libsasl2-modules-sql   2.1.22.dfsg1-8                          
Pluggable Authentication Modules for SASL (S
mail2:/#

mail:/# dpkg -l | grep postfix
ii  postfix                2.5.2-2lenny1~bpo40+1                   
High-performance mail transport agent
ii  postfix-mysql          2.5.2-2lenny1~bpo40+1                   
MySQL map support for Postfix
ii  postfix-pcre           2.5.2-2lenny1~bpo40+1                    PCRE
map support for Postfix
mail2:/#


No matter what options I place in the smtpd.conf file it never uses that
authentication method.

Mike


# smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login digest-md5 cram-md5
log_level: 10
sql_engine: mysql
sql_verbose: yes
sql_hostnames: localhost
sql_user: xxxxx
sql_passwd: xxxxxx
sql_database: postfix
sql_select: SELECT password FROM mailbox WHERE username = '%u@%r'
user = postfixadmin
password = postfixadmin
hosts = localhost
dbname = postfix

#pwcheck_method: authdaemond
#log_level: 3
#mech_list: PLAIN LOGIN
#authdaemond_path:/var/run/courier/authdaemon/socket


Reply to: