msmtp命令无法发送邮件?

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

msmtp命令无法发送邮件?

#1

帖子 whaha »

mutt设置

cat .muttrc
set editor="vim"
set sendmail="/usr/bin/msmtp"
set use_from=yes
set realname="myname1"
set from=[email protected]
set envelope_from=yes

msmtp设置

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

mutt命令可以发送邮件。

echo "it is body text" | mutt -s "test yahoo " [email protected] -a /tmp/test

使用msmtp居然出问题。

echo "hello test" | msmtp -a wangyi [email protected]



msmtp: the server did not accept the mail
msmtp: server message: 554
onlylove
论坛版主
帖子: 5369
注册时间: 2007-01-14 16:23

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

#2

帖子 onlylove »

回复