# It's nice to have separate log files for Dovecot. You could do this
# by changing syslog configuration also, but this is easier.
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
# Disable SSL for now.
ssl = yes
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
disable_plaintext_auth = no
# We're using Maildir format
mail_location = maildir:~/Maildir
# If you're using POP3, you'll need this:
pop3_uidl_format = %g
# Authentication configuration:
auth_verbose = yes
auth_mechanisms = plain
passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/home/vmail/%u
}
service lmtp {
inet_listener lmtp {
address = 127.0.0.1 ::1
port = 24
}
unix_listener lmtp {
mode = 0666
}
}
复制代码
重启服务:
service dovecot restart
复制代码
检查一下dovecot是否已经在监听端口:
lsof -ni
复制代码
已经可以看到在监听pop3,pop3s,还有lmtp的24号共3个端口了。
4. 配置exim: 运行配置向导:
dpkg-reconfigure exim4-config
复制代码
这一个向导步骤比较多:
第一步要选internet site; mail is sent and received directly using SMTP
然后遇到有textbox输入的如果怕麻烦全部删除原来内容,留空进下一步。
有一个问题:Keep number of DNS-queries minimal (Dial-on-Demand)? ,选默认No
还有一个问题:Split configuration into small files?选Yes