Ilya98
Спасибо за то что Вы, найдя решение своей проблемы описали ее решение для других.
Из вариантов могу только продемонстрировать свой файл конфигурации, правда для связки с LDAP.
# sed '/ *#/d; /^ *$/d' /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
imap_listen = [::]
pop3_listen = [::]
ssl_disable = no
ssl_cert_file = /usr/share/ssl/example.org/cert.pem
ssl_key_file = /usr/share/ssl/example.org/key.pem
disable_plaintext_auth = no
login_dir = /var/run/dovecot-login
login = imap
login_user = dovecot
login = pop3
first_valid_uid = 8
last_valid_uid = 8
first_valid_gid = 12
last_valid_gid = 12
valid_chroot_dirs = /home/vmail/domains
default_mail_env = maildir:/home/vmail/domains/%d/%n/Maildir
mbox_locks = fcntl
auth = default
auth_mechanisms = plain
auth_userdb = ldap /etc/dovecot-ldap.conf
auth_passdb = ldap /etc/dovecot-ldap.conf
auth_user = dovecot
# sed '/ *#/d; /^ *$/d' /etc/dovecot-ldap.conf
hosts = localhost
dn = uid=dovecot,ou=auth,dc=example,dc=org
dnpass = my-secret-pass
ldap_version = 3
base = ou=domains,o=MailServer,dc=example,dc=org
deref = never
scope = subtree
user_attrs = mail,homeDirectory,,,,
user_filter = (&(objectClass=VirtualMailAccount)(mail=%u)(accountActive=TRUE))
pass_attrs = mail,userPassword
pass_filter = (&(objectClass=VirtualMailAccount)(mail=%u)(accountActive=TRUE))
default_pass_scheme = CRYPT
user_global_uid = 8
user_global_gid = 12
# rpm -qa|grep dovecot
dovecot-0.99.11-2.EL4.1
Спасибо за то что Вы, найдя решение своей проблемы описали ее решение для других.
Из вариантов могу только продемонстрировать свой файл конфигурации, правда для связки с LDAP.
# sed '/ *#/d; /^ *$/d' /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
imap_listen = [::]
pop3_listen = [::]
ssl_disable = no
ssl_cert_file = /usr/share/ssl/example.org/cert.pem
ssl_key_file = /usr/share/ssl/example.org/key.pem
disable_plaintext_auth = no
login_dir = /var/run/dovecot-login
login = imap
login_user = dovecot
login = pop3
first_valid_uid = 8
last_valid_uid = 8
first_valid_gid = 12
last_valid_gid = 12
valid_chroot_dirs = /home/vmail/domains
default_mail_env = maildir:/home/vmail/domains/%d/%n/Maildir
mbox_locks = fcntl
auth = default
auth_mechanisms = plain
auth_userdb = ldap /etc/dovecot-ldap.conf
auth_passdb = ldap /etc/dovecot-ldap.conf
auth_user = dovecot
# sed '/ *#/d; /^ *$/d' /etc/dovecot-ldap.conf
hosts = localhost
dn = uid=dovecot,ou=auth,dc=example,dc=org
dnpass = my-secret-pass
ldap_version = 3
base = ou=domains,o=MailServer,dc=example,dc=org
deref = never
scope = subtree
user_attrs = mail,homeDirectory,,,,
user_filter = (&(objectClass=VirtualMailAccount)(mail=%u)(accountActive=TRUE))
pass_attrs = mail,userPassword
pass_filter = (&(objectClass=VirtualMailAccount)(mail=%u)(accountActive=TRUE))
default_pass_scheme = CRYPT
user_global_uid = 8
user_global_gid = 12
# rpm -qa|grep dovecot
dovecot-0.99.11-2.EL4.1