Everything is up and running and answer on calls but the login for postfix doesn't seem to work (it works for Courier IMAP, just not postfix).
Here's the error output:
Code:
Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: Anonymous TLS connection established from unknown[<my ip>]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: SASL authentication failure: Password verification failed
Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: unknown[<my ip>]: SASL PLAIN authentication failed: generic failure
Here's `/usr/local/lib/sasl2/smtpd.conf`:
Code:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
authdaemond_path: /var/run/courier-auth/socket
log_level: 7
And the socket has been created:
`# ls -l /var/run/courier-auth/`
Code:
total 4
-rw-r--r-- 1 root wheel 5 Jun 30 22:19 pid
-rw------- 1 root wheel 0 Jun 30 22:19 pid.lock
srwxrwxrwx 1 root _postfix 0 Jun 30 22:19 socket
The `/etc/courier/authdaemonrc` says:
Code:
[...]
authmodulelist="authpwd"
[...]
authdaemonvar=/var/run/courier-auth
[...]
I have no clue why this is going wrong, or where to begin to check for errors since the log doesn't specify which file it's looking for or where the connection is going wrong so i'm in desperate need of some help here.
System:
=======
* OpenBSD 5.3
* postfix-2.10.20130201-sasl2
* courier-authlib-0.64.0
* courier-imap-4.11.0
Edit: I've also taken into account that postfix runs in a chrooted environment (tried not chrooting as well just for the sake of it) and thus i created a
symlink from /var/run/courier-auth -> /storage/spool/postfix/var/run/courier-auth without success.
note:
Code:
# testsaslauthd -u anton -p PassWord123 -f /var/run/courier-auth/socket -s smtp
size read failed
And also
Code:
# testsaslauthd -u anton -p PassWord123 -s smtp
connect() : No such file or directory
Which bothers me, because for some reason
/usr/local/lib/sasl2/smtpd.conf isn't taken into account but at the same time, changing
pwcheck_method into something obscure it will complain, it just doesn't take the socket path..