1. Компилировать postfix нужно с поддержкой sasl2
2. Обратить внимание на файлы:
/usr/lib/sasl2/smtpd.conf:
pwcheck_method: saslauthd
mech_list: plain login
и
/etc/saslauthd.conf:
ldap_servers: ldap://х.х.х.х
ldap_version: 3
ldap_timeout: 10
ldap_timelimit: 10
ldap_bind_dn: ldapuser
ldap_bind_pw: ldapuser
ldap_domain: ЗЗЗЗ_ЗЗЗЗЗ
#ldap_search_base: O=ВВВВ
ldap_auth_method: bind
ldap_password_attr: userpassword
ldap_size_limit: 0
3. Запусккать обязательно так:
saslauthd -a ldap
4. Второй пункт может находиться в одном файле
/etc/sasl2/smtpd.conf 5. Проверка работы sasl вне зависимости от функционирования и настроек postfix
testsaslauthd -u username -p password
0: OK "Success."
You must be logged in to post a comment.
Recent Comments