分页: 1 / 1

msmtp命令无法发送邮件?

发表于 : 2017-07-30 8:35
whaha
mutt设置

cat .muttrc
set editor="vim"
set sendmail="/usr/bin/msmtp"
set use_from=yes
set realname="myname1"
set from=myname1@163.com
set envelope_from=yes

msmtp设置

cat .msmtprc
account wangyi
host smtp.163.com
user myname1
from myname1@163.com
password xxxxxx
auth login
tls off
logfile .msmtp.log

mutt命令可以发送邮件。

echo "it is body text" | mutt -s "test yahoo " xxxx@yahoo.com -a /tmp/test

使用msmtp居然出问题。

echo "hello test" | msmtp -a wangyi xxxx@yahoo.com



msmtp: the server did not accept the mail
msmtp: server message: 554

Re: msmtp命令无法发送邮件?

发表于 : 2017-07-30 9:36
onlylove