Dovecot (+ MySQL + postfix) - 客户端无法访问

Dovecot (+ MySQL + postfix) - 客户端无法访问

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

我一步一步遵循了本手册:https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

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

telnet localhost 993 和 telnet domain 993 是可能的。'登录用户密码' 是不可能的。'doveadm 用户[电子邮件保护]'回应了一个好答案。

我的配置文件:

# 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>

相关内容