Dovecot(+ MySQL +后缀) – 客户端无法访问

我的目标是获得一个能够发送和接收来自多个不同域的电子邮件的邮件服务器。 所以我想用虚拟用户。

我按照这个手册一步一步: https : //www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin 。

之后,我尝试使用端口993连接到邮件服务器,从数据库中的用户和密码。 我无法自己解决这个问题。

telnet localhost 993和telnet域993是可能的。 “login用户密码”是不可能的。 “doveadm用户[email protected]”回答一个很好的答案。

我的configuration文件:

# OS: Linux 3.13.0-62-generic x86_64 Ubuntu 14.04.3 LTS ext4 auth_mechanisms = plain login login_greeting = Hello. mail_location = maildir:/var/mail/vhosts/%d/%n mail_privileged_group = mail 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_cert = </etc/dovecot/dovecot.pem ssl_key = </etc/dovecot/private/dovecot.pem userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static } 

/var/log/mail.log

 Aug 31 18:41:05 abc dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=178.25.11.19, lip=5.45.99.46, TLS handshaking: Disconnected, session=<iS6LGZ4edACyGQsT>