mutt 无法发信

在新服务器上用mutt测试的发信,却提示错误:

shell>mutt -s “sdsfsa” sunliguo2006@qq.com </dev/null
Error sending message, child exited 65 (Data format error.).
Could not send the message.

sendmaild的错误日志:

   —– The following addresses had permanent fatal errors —–
sunliguo2006@qq.com
    (reason: 553 5.5.4 <root@localhost.localdomain>… Real domain name required for sender address)
    (expanded from: sunliguo2006@qq.com)

   —– Transcript of session follows —–
… while talking to [127.0.0.1]:
>>> MAIL From:<root@localhost.localdomain> SIZE=290 AUTH=root@localhost.localdomain
<<< 553 5.5.4 <root@localhost.localdomain>… Real domain name required for sender address
501 5.6.0 Data format error

我记得在以前的服务器上,sendmail没有配置默认的就可以匿名发信来。

从网上搜索得知是主机名不对,/etc/hosts /etc/resolv.conf 都配置的对啊。

最后还是重新设置了一下  host -v  localhost.localdomain 。再测试,可以发信了。qq邮箱提示是垃圾邮件。

请选择你看完该文章的感受:

不错 超赞 无聊 扯淡 不解 路过

随机文章:

Tags: ,

发表评论