Current time: 12-23-2024, 12:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
sasl2 gentoo not working
Author Message
delay_2010 Offline


Posts: 4
Joined: Jan 2011
Reputation: 0
Post: #1
sasl2 gentoo not working
Hi Forum,

I just instlaled ispCP 1.0.7 under gentoo. Everything is working except SMTP Auth when I want to send emails from my firefox.
I have generated SSL certificate successfully.

Using this /etc/sasl2/smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

brings the same error as
/etc/sasl2/smtpd.conf:
mech_list: PLAIN LOGIN

Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Password verification failed
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: unknown[XXXX]: SASL PLAIN authentication failed: authentication failure
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: SASL authentication failure: Could not open /etc/sasl2/sasldb2: gdbm_errno=3
Jan 10 19:53:01 websrv postfix/smtpd[1731]: warning: unknown[XXXX]: SASL LOGIN authentication failed: authentication failure

the database exists: I even tried world readable but that does not help either.
ls -l /etc/sasl2/sasldb2
-rw-rw-rw- 1 root root 12288 Jan 10 19:49 /etc/sasl2/sasldb2

When I change e-mail password in ispcp, /etc/sasl2/sasldb2 gets updated. But that does not solve the problem.

I tried adding user manually via "saslpasswd2 -c anton" and password klaus.
But sasldblistusers2 lists:
anton@XXX: userPassword
no klaus is written. Only userPassword?!?

"testsaslauthd -u test -r XXX -p klaus" doesn't authenticate successfully, too.

So what I'm doing wrong?

Thanks,
Daniel
01-11-2011 04:48 AM
Find all posts by this user Quote this message in a reply
delay_2010 Offline


Posts: 4
Joined: Jan 2011
Reputation: 0
Post: #2
RE: sasl2 gentoo not working
OK, I got it myself.
It did not look like a chrooted postfix in my install. But this is the case: postfix is chrooted.
I looked via /proc file system which file the postfix/smtpd process saw and correct: it could not see /etc/sasl2/sasl2db.
I now symbolic linked the file /etc/sasl2/sasl2db with /var/spool/postfix/etc/sasl2/sasl2db and used incrond to change owner- and accessrights for this file if it gets changed via ispcp.
Now it works.
01-12-2011 01:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)