LINUX.ORG.RU
ФорумAdmin

Postfix + SASL + MySQL. Проблема с аутентификацией


0

0

Столкнулся со следующей проблемой.
Система: CentOS 5.1
Использую: Postfix + SASL + MYSQL.
SASL и Postfix установлены с поддержкой mysql.

Кусок конфига /etc/postfix/main.cf:
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject


/usr/lib/sasl2/smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login
sql_engine: mysql
sql_user: mail
sql_passwd: ******
sql_hostnames: localhost
sql_database: mail
sql_statement: SELECT passwd FROM users WHERE email = '%u@%r'
sql_verbose: yes

База mail в mysql заведена, и пользователи добавлены.

При попытке пройти аутентификацию:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 pink.flexites.org ESMTP Postfix
EHLO localhost
250-pink.flexites.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN YWxleC5mbGV4aXRlcy5vcmcAYWxleC5mbGV4aXRlcy5vcmcAdGVzdA==
535 5.7.0 Error: authentication failed: authentication failure

В maillog:
warning: SASL authentication failure: Password verification failed
warning: localhost.localdomain[127.0.0.1]: SASL PLAIN authentication failed: authentication failure

в логе mysql никаких записей о попытках подключения.

В чем может быть проблема?
Спасибо.

У меня так : mech_list: sql plain login

Если не пойдет, включи в main.cf debug и смотри что происходит.

anonymous
()
Ответ на: комментарий от anonymous

Влючив логи в main.cf обнаружил следующее:
SASL authentication debug: could not find auxprop plugin, was searching for 'sql'

Хотя пакет cyrus-sasl-sql установлен

pluginviewer -a также показывает, что не sql плагина:
/usr/sbin/pluginviewer -a
Installed auxprop mechanisms are:
sasldb
List of auxprop plugins follows
Plugin "sasldb" , API version: 4
supports store: yes

Куда копать?

amalyshev
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.