How can i tell SASL2 to stop using /etc/sasldb2 ?

Alexander Dalloz ad+lists at uni-x.org
Sat Jul 28 17:25:23 EDT 2007


Gert Cuykens schrieb:
> I did the following and i am back at square one
> 
> unable to open Berkeley db /etc/sasldb2: No such file or directory
> Password verification failed
> SASL PLAIN authentication failed: authentication failure
> 
> /etc/postfix/main.cf
> mydomain = lan
> myhostname = www.lan
> mynetworks = 127.0.0.1/32
> myorigin = $mydomain
> mydestination = localhost $mydomain
> relay_domains =
> #mailbox_size_limit =
> #message_size_limit =
> home_mailbox = mailbox
> mailbox_transport = dbmail-lmtp:localhost:24
> disable_dns_lookups = yes
> local_recipient_maps = mysql:/etc/postfix/recipients.cf
> cyrus_sasl_config_path = /etc/postfix/smtpd.cf

man 5 postconf

"Search path for Cyrus SASL application configuration files, currently
used only to locate the $smtpd_sasl_path.conf file. Specify zero or more
directories separated by a colon character, or an empty value to use
Cyrus SASL's built-in search path."

You read the word "directories"?

> smtpd_sasl_path = /usr/lib/postfix/smtpd

man 5 postconf

"Implementation-specific information that the Postfix SMTP server passes
through to the SASL plug-in implementation that is selected with
smtpd_sasl_type. Typically this specifies the name of a configuration
file or rendezvous point."

You read the words "specifies the name of a configuration file"?

> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $mydomain
> smtpd_sasl_security_options = noanonymous
> smtpd_recipient_restrictions = permit_sasl_authenticated, reject
> smtpd_tls_security_level = may
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file  = /etc/ssl/private/ssl-cert-snakeoil.key
> 
> /etc/postfix/smtpd.cf
> pwcheck_method: auxprop
> auxprop_plugin: sql
> mech_list: login plain cram-md5 digest-md5 ntlm
> sql_engine: mysql
> sql_user: dbmail
> sql_passwd:
> sql_database: dbmail
> sql_statement: SELECT passwd FROM dbmail_users WHERE userid = '%u'
> log_level: 7
> 
> /etc/postfix/master.cf
> smtp        inet  n       -       n       -       -       smtpd
> ...

Alexander



More information about the Cyrus-sasl mailing list