答案1
您可以使用可用于多个域的虚拟邮箱,然后也可以更轻松地添加其他邮箱、别名和其他未来域。
我正在运行多个采用此配置的 Ubuntu LTS 12.04 服务器,使用带有 IMAPS 的 Postfix/Dovecot - 如果需要,您可以使用 pop。
如果这是针对外部(面向 Internet 的服务器),则您需要创建或将 DNS 记录 MX 指向您的服务器,并将相关主机条目添加到您的服务器和 Postfix 配置中。您需要提供有关您的方案和设置的更多详细信息,以便我们进一步为您提供帮助。
以下是一些有关邮件服务器设置的教程指南,希望对您有所帮助: https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassasin https://www.exratione.com/2012/05/a-mailserver-on-ubuntu-1204-postfix-dovecot-mysql/
您引用的第一个指南中指出不适用于 12.04 及更高版本的部分指的是 dovecot.conf 文件。这是一个适用于 12.04 的示例文件,我相信 14.04 也可以使用 - 您将要想要修改它以适合您的服务器,特别是在互联网上而不仅仅是内部服务器时:
auth default {
mechanisms = plain cram-md5
user = root
socket listen {
client {
# The client socket is generally safe to export to everyone. Typical use
# is to export it to your SMTP server so it can do SMTP AUTH lookups
# using it.
path = /var/spool/postfix/private/dovecot-auth
mode = 0660
user = postfix
group = postfix
}
}
}
base_dir = /var/run/dovecot/
info_log_path = /var/log/dovecot.info
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
}
protocols = imap pop3
service auth {
executable = /usr/lib/dovecot/auth
user = root
}
service imap-login {
chroot = login
executable = /usr/lib/dovecot/imap-login
user = dovecot
}
service imap {
executable = /usr/lib/dovecot/imap
}
service pop3-login {
chroot = login
executable = /usr/lib/dovecot/pop3-login
user = dovecot
}
service pop3 {
executable = /usr/lib/dovecot/pop3
}
service imaps {
executable = /usr/lib/dovecot/imap
}
service pop3s {
executable = /usr/lib/dovecot/pop3
}
ssl = yes
ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key
userdb {
args = /etc/dovecot/users
driver = passwd-file
}
valid_chroot_dirs = /var/spool/vmail
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}