FreeBSD 8.0-RELEASE
postfix-2.6.5,1
cyrus-sasl-2.1.23
cyrus-sasl-saslauthd-2.1.23Пытаюсь настроить smtp авторизацию, прописываю следующее:
--- /usr/local/etc/postfix/main.cf ---
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtp_sasl_password_maps = hash:/usr/local/lib/sasl2/sasldb2
smtpd_sasl_type = cyrus
smtpd_sasl_path = /usr/local/lib/sasl2/smtpd.conf
--- /etc/rc.d ---
postfix_enable="YES"
saslauthd_enable="YES"
saslauthd_flags="-a sasldb -O /usr/local/lib/sasl2/smtpd.conf"
--- /usr/local/lib/sasl2/smtpd.conf ---
pwcheck_method: sasldb
mech_list: plain login
Проверяю процесс:
# ps ax | grep sasl
90805 ?? Is 0:00,00 /usr/local/sbin/saslauthd -a sasldb -O /usr/local/lib/sasl2/smtpd.conf
Добавляю пользователя и Проверяю:
# saslpasswd2 -c admin@domain.ru
# sasldblistusers2
admin@domain.ru: userPassword
#testsaslauthd -u admin -r domain.ru -p password
0: OK "Success."
При попытке отправить письмо с авторизацией, в maillog валится:
postfix/smtpd[91387]: warning: SASL authentication failure: Could not open db
postfix/smtpd[91387]: warning: SASL authentication failure: Could not open db
postfix/smtpd[91387]: warning: unknown[192.168.1.6]: SASL LOGIN authentication failed: authentication failure
в messages:
postfix/smtpd[91818]: OTP unavailable because can't read/write key database /etc/opiekeys: No such file or directory
Вообще памажите чем сможите