2008年1月31日星期四

mutt 使用 msmtp 发送电子邮件的典型配置

$ cat .msmtprc
defaults
auto_from off
from testuser@gmail.com
tls_certcheck off
logfile ~/.msmtplog

account gmail
host smtp.gmail.com
tls on
auth on
port 587
user testuser
password xxxxxxxx

account default: gmail

$ cat .muttrc
charset-hook !utf-8 gb18030

set sendmail="/usr/local/bin/msmtp -d"
set realname="Real Name"
set from="testuser@gmail.com"
set use_from=yes

对 mutt 1.5 不能正确处理发件人的愤慨

为了调试,我的 mutt 1.5.17 配置极为简单,按照官方文档配置后,发件人就是不对,
怎么调整都得不到发件人是"Real Name <Real.Name@gmail.com>"的结果,仍旧是
"Real.Name@gmail.com"!换用 mutt 1.4.2.3 之后,居然完全正确!

charset-hook !utf-8 gb18030

set sendmail="/usr/local/bin/msmtp -d"
set realname="Real Name"
set from="Real.Name@gmail.com"
set use_from=yes

看来我只好依旧使用 mutt 1.4 ,等待其发布稳定版本 1.6 了!