峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
Ubuntu Mail Server (postfix+devecot)
2018-08-18 |Nonni | TSI

apt-get install postfix

vi /etc/postfix/main.cf

sudo apt-get install dovecot-common dovecot-imapd dovecot-pop3d

vi /etc/dovecot/dovecot.conf

这里配置邮件的存放目录,这里和Postfix设置的要一致,都是在用户主目录下的Maildir目录下。

mail_location = maildir:~/Maildir

监听所有的端口

listen= *

允许明文密码验证

disable_plaintext_auth = no

使用ssl加密

ssl = required

ssl秘钥存放路径,目前这两个文件也是不存在的,也需要按照后面的步骤我们手动生成

ssl_cert =< /etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_key =< /etc/ssl/private/ssl-cert-snakeoil.key

设置认证的默认选项,auth是一个socket文件,通过该文件dovecot和postfix进行通信,来传递postfix的认证信息,这里面的path要和postfix设置的一致。

auth default {
socket listen {
client {
path =/var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}

service postfix restart
service dovecot restart

respond-post-99
Adam Gun
Adam Gun
August 20th, 2018 at 11:44 pm

Port 25 unblocked on Vultr VPS. I need it open, but helpdesk tell me that In order to combat spam and spamlike activities, they system requires a properly completed and vetted CC authorization form to confirmclients’ identities prior to SMTP block removal...

August 20th, 2018 at 11:36 pm

我配置后经常出现邮件无法送达,或者超时。

添加新评论

请填写称呼
请填写合法的电子邮箱地址
请填写合法的网站地址
请填写内容