Дошел вот до чего
# 1.0.7: /etc/dovecot.conf
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:943
ssl_listen(imap): *:943
ssl_listen(pop3): *:995
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_access_groups: vmail
mail_location: maildir:/home/vmail/%u/
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
mechanisms: plain login
username_format: %Lu
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: ldap
args: /etc/dovecot-ldap.cf
userdb:
driver: static
args: uid=800 gid=800 home=/home/vmail/%u
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
master:
path: /var/run/dovecot/auth-master
mode: 384# cat dovecot-ldap.cf
hosts = s-proxy.eqvator.local srv.eqvator.local
ldap_version = 3
base = dc=eqvator, dc=local
deref = searching
scope = subtree
auth_bind = yes
auth_bind_userdn = eqvator\fedora_connect
pass_filter = (&(objectClass=user)(uid=%u))
Проверка
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
user test
+OK
pass testpwd
-ERR Authentication failed.
В логе вот что
Apr 20 02:25:58 mail dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=127.0.0.1 rip=127.0.0.1 resp=AHc2Fkb4NgwDI1U2MD=
Apr 20 02:25:58 mail dovecot: auth(default): ldap(test,127.0.0.1): bind: dn=eqvator\fedora_connect
Apr 20 02:25:58 mail dovecot: auth(default): ldap(sysadm,127.0.0.1): invalid credentials
Apr 20 02:25:58 mail dovecot: auth(default): client out: FAIL 1 user=test
Apr 20 02:26:03 mail dovecot: pop3-login: Aborted login: user=<test>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured