错误信息:寄送讯息出现错误,子程序已结束 127 (Exec error.)。
Error sending message, child exited 127 (Exec error.).
lilei@lilei-laptop:~$ cat .msmtprc
# $HOME/.msmtprc
defaults
logfile /var/log/msmtp.log
account lilei1008
host 209.85.143.111
#host smtp.gmail.com
from lile...@gmail.com
port 587
user lilei1008
password ******
tls on
auth on
tls_certcheck off
account default: lilei1008
port 25
>user lilei1008
>password ******
>tls on
>auth on
>tls_certcheck off
>account default: lilei1008
--
Jianjun Kong |Happy Hacking
Homepage: http://kongove.cn
Gtalk:KongJ...@gmail.com
SMTP (outgoing mail) port 25 is the default port used by an e-mail
client to connect to an e-mail server. This is also the default port
to send e-mail. Many ISPs and hotels are now blocking port 25 access
to 3rd party mail servers to help reduce their spam problems.
The solution to work around port 25 blocking is to send mail using
port 587, the default port for authenticated e-mail.
> from lile...@gmail.com
> port 587
> user lilei1008
> password ******
> tls on
> auth on
> tls_certcheck off
tls_smarttls on
加上这个试下,gmail推荐的
> account default: lilei1008
如果还不能发送成功,建议把log贴下
BTW:我用mutt发信,主题总是乱码。不知道你们收到的是否是乱马。
--
---------------------------------
Zhenwen Xu - Open and Free
Home Page: http://zhwen.org
My Studio: http://dim4.cn
处理邮件,只需要修改 ~.getmail/getmailrc 和 ~/.procmailrc
和发信没关系吧。
下面的配置没问题,有什么提示错误吗? timeout?
>错误,谢谢!
># $HOME/.msmtprc
>defaults
>logfile /var/log/msmtp.log
>account meiyantao
>#host 209.85.199.111
>host smtp.gmail.com
>from meiy...@gmail.com
>port 587
>user meiyantao
>password *******
>tls on
>auth on
>tls_certcheck off
>tls_smarttls on
>account default: meiyantao
--
可以收邮件,但不能发了。是不是我apt-get把什么不小心删除了?
msmtp也安装了啊。