msmtp命令无法发送邮件?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
whaha
帖子: 104
注册时间: 2016-07-08 17:43
系统: debian8

msmtp命令无法发送邮件?

#1

帖子 whaha » 2017-07-30 8:35

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
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

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

#2

帖子 onlylove » 2017-07-30 9:36

回复