分类:
2007-10-13 16:46:38
From: Chris Paul (openbsdrexconsulting.net)
Date: Fri Apr 15 2005 - 02:45:42 CDT
Dear Misc,
I had this working on an OpenBSD 3.5 box but haven't been able to get it to work since then. I'm trying now on 3.7.
- SASL is running with LDAP as the map:
[rootdonut:/root]# ps -ax|grep sasl
25762 ?? Is 0:00.02 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
28777 ?? I 0:00.01 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
27046 ?? I 0:00.00 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
3741 ?? I 0:00.01 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
29628 ?? I 0:00.00 /usr/local/sbin/saslauthd -m /var/spool/postfix/var/sasl2/ -a ldap -O /etc/saslauthd.conf
- SASL works:
testsaslauthd -u
0: OK "Success."
- But Postfix isn't happy with it, though it is in the postfix chroot (in the right place, I thought):
Apr 15 00:36:25 donut postfix/smtpd[19927]: warning: SASL authentication failure: Password verification failed
Apr 15 00:36:25 donut postfix/smtpd[19927]: warning: unknown[10.7.5.50]: SASL PLAIN authentication failed
Apr 15 00:37:05 donut postfix/smtpd[19927]: warning: unknown[10.7.5.50]: SASL LOGIN authentication failed
- Just fooling with things, I
stopped SASL to see if I would get a different error. I did and it
indicates that at least in the above failure, the socket is in the
correct place (as it isn't found, as expected, when the saslauthd
daemon is not running)
Apr 15 00:27:56 donut
postfix/smtpd[21008]: warning: SASL authentication failure: cannot
connect to saslauthd server: No such file or directory
Apr 15 00:27:56 donut postfix/smtpd[21008]: warning: SASL authentication failure: Password verification failed
Apr 15 00:27:56 donut postfix/smtpd[21008]: warning: unknown[10.7.5.50]: SASL PLAIN authentication failed
- here is the perms on the socket:
[cpauldonut] $ ls -l /var/spool/postfix/var/sasl2
total 2
srwxrwxrwx 1 root wheel 0 Apr 15 00:36 mux
-rw------- 1 root wheel 0 Apr 15 00:36 mux.accept
-rw------- 1 root wheel 6 Apr 15 00:36 saslauthd.pid
Any clues?
thanks,