GNU/Linux 下超酷又灵活的 Email 系统
来自Jack's Lab
目录 |
1 概述
简单地说就是:fetchmail 从邮件服务器取邮件到本地,经 procmail 过滤分捡后写入相应的 mailbox 文件,邮件客户端 Mutt 读取 mailbox 文件并与用户交互,使用 ssmtp 联系邮件服务器发邮件
fetchmail + procmail + Mutt + Exim4 的方案个人用了 7 年多,效率高,非常适合 Hacker/Geeker
近来发现 sSMTP 更好用,配置简单,风格和 fetchmail 类似,很自然地切到了 sSMTP
2 fetchmail 取邮件
3 procmail 分捡邮件
4 Mutt 读邮件
5 sSMTP 发邮件
$ sudo apt-get install ssmtp $ vim /etc/ssmtp/ssmtp.conf
mailhub=smtp.gmail.com:587 # SMTP server hostname and port FromLineOverride=YES # Force the From: line Hostname=jackslab.org # The name of this host RewriteDomain=jackslab.org # The host the mail appears to be coming from Root=postmaster # Redirect mail for root@ to postmaster@ AuthUser=yourgmailname@gmail.com # Your DreamHost mail account AuthPass=password # The password for the mail account UseTLS=YES # Secure connection (SSL/TLS) UseSTARTTLS=YES