您查看的文章来源于http://www.oklinux.cn
说明一切都很好,我的输出是
root@server1:/etc/postfix/ssl# telnet localhost 25 Trying ::1... Connected to localhost.localdomain. Escape character is '^]'. 220 server1.example.com ESMTP Postfix (Ubuntu) ehlo localhost 250-server1.example.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN quit 221 2.0.0 Bye Connection closed by foreign host. root@server1:/etc/postfix/ssl# |
输入:
quit
回到系统shell
16.Courier-IMAP/Courier-POP3
先安装:
aptitude install courier-authdaemon courier-base courier-imap courier-imap-ssl courier-pop courier-pop-ssl courier-ssl gamin libgamin0 libglib2.0-0
你将被问及:
Create directories for web-based administration? <-- No
SSL certificate required <-- Ok
在安装时IMAP和POP3的ssl论证是以localhost的主机名安装的,先删除这们认证
cd /etc/courier
rm -f /etc/courier/imapd.pem
rm -f /etc/courier/pop3d.pem
然后编辑两个文件/etc/courier/imapd.cnf和/etc/courier/pop3.cnf,用CN=server1.example.com 替换 CN=localhost :
vi /etc/courier/imapd.cnf
[...] CN=server1.example.com [...] |
vi /etc/courier/pop3d.cnf
[...] CN=server1.example.com [...] |
重建认证
mkimapdcert
mkpop3dcert
重启Courier-IMAP-SSL 和 Courier-POP3-SSL:
/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop-ssl restart
如果你不想用ISPConfig,设置POSTFIX将邮件传到用户的邮件文件夹:
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart
如果你使用ISPConfig这一步不是必须的,因为ISPCONFIG会使用procmail做同样的事,但你得确定你在ISPCONFIG网络接口中启用了Maildir功能:
Maildir under Management -> Server -> Settings -> EMail