Subject: Re: postfix/sasl working but "no user in db"
To: Joel CARNAT <joel@carnat.net>
From: segv <segv@netctl.net>
List: netbsd-users
Date: 07/27/2005 19:47:05
On Wed, 27 Jul 2005 17:59:38 +0200
Joel CARNAT <joel@carnat.net> wrote:

> 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
> ********************

1. what are the permissions on /usr/pkg/etc/sasldb.db file? postfix must be
able to read the file

2. in /usr/pkg/etc/postfix/main.cf if you set 'myhostname' to
'mail.mydomain.net' you should also specify that domain when you run
saslpasswd2, i.e.

	/usr/pkg/sbin/saslpasswd2 -c -u mail.mydomain.net username

I remember having authenication problems with postfix/cyrus-imapd when the
hostname did not match exactly.