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
msmtp命令无法发送邮件?
-
- 帖子: 104
- 注册时间: 2016-07-08 17:43
- 系统: debian8
-
- 论坛版主
- 帖子: 5214
- 注册时间: 2007-01-14 16:23