Настраивал по этому ману:
https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-serv...
Насколько я понял, авторизация должна происходить по виртуальным пользователям
Но при авторизации выводит запрос на реального пользователя
И выдает ошибку
Dec 8 06:25:13 debian-32 dovecot: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=<someuser>, method=PLAIN, rip=111.111.111.111, lip=111.111.111.111, TLS, session=<dZ7TOWEmyABOb7mf>
Где смотреть?
В 10-auth.conf:
#!include auth-system.conf.ext
!include auth-sql.conf.ext
Вот выхлоп doveconf -n
auth_mechanisms = plain login
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = vmail
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = imap lmtp
service auth-worker {
user = vmail
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
mode = 0600
user = vmail
}
user = dovecot
}
service imap-login {
inet_listener imap {
port = 0
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
ssl = required
ssl_cert = </etc/ssl/certs/mail.crt
ssl_key = </etc/ssl/private/mail.key
userdb {
args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
driver = static
}