我正在使用linux“mail”客户端。当我尝试发送电子邮件 echo“test”|时mail -s“testing”myemail@personal.com 我收到550错误退回,因为该域无效。
在服务器上有2个域。一个是公开的,另一个是严格内部的。如何强制仅邮件客户端使用公共域?
这是失败消息。
Final-Recipient: RFC822; myemail@personal.com
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 550 5.1.8 Invalid domain: server_hostname.internal.domainname
Last-Attempt-Date: Wed, 12 Feb 2014 12:22:06 -0500
答案 0 :(得分:1)
修复程序最终修改了/ etc / mail /
中的submit.cf和sendmail.cf# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Djdomain_name
您需要包含主机名后面的Dj。
感谢大家的帮助。