Subject: postfix/sasl working but "no user in db"
To: None <netbsd-users@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: netbsd-users
Date: 07/27/2005 17:59:38
Hi,

I've configured my postfix with SASL.
It (seem to) works OK :
-> mail for $mydestination are delivered
-> mails from $mynetworks are delivered
-> mail_relay is authorized only for user created with saslpasswd2

What I don't get is why postfix keeps complaining about "no user in db"
When it does validate the login/pass I give him :
********************
postfix/smtpd[28738]: warning: SASL authentication failure: no user in db
client=unknown [x.x.x.x], sasl_method=CRAM-MD5, sasl_username=me@here.domain.tld
********************

Instructions were inspired by http://www.tribulaciones.org/docs/postfix-sasl-tls-howto.html
NetBSD specific :
# PKG_OPTIONS.postfix=bdb sasl tls
# pkg_add postfix-2.2.3 cyrus-sasl-2.1.20nb1 cy2-plain-2.1.20 cy2-crammd5-2.1.20
# cat /usr/pkg/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
mech_list: cram-md5
# cat /usr/pkg/etc/postfix/main.cf
...
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        reject_unauth_destination
smtpd_sasl_application_name = smtpd
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
# saslpasswd2 -c -u blabla...

I know this is just a warning, but if I could avoid it, that would be better :)
If anyone has a clue.

TIA,
	Jo