ispCP - Board - Support
sasl2 gentoo not working - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: sasl2 gentoo not working (/thread-12647.html)



sasl2 gentoo not working - delay_2010 - 01-11-2011 04:48 AM

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


RE: sasl2 gentoo not working - delay_2010 - 01-12-2011 01:37 AM

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.