1
我正在使用linux“邮件”客户端。当我尝试发送电子邮件echo“test”| mail -s“testing”[email protected]由于域名无效,我收到550错误反弹。linux邮件使用错误的域发送电子邮件
在服务器上有2个域。一个是公开的,另一个是严格内部的。我如何只强制邮件客户端使用公有领域?
这是失败消息。
Final-Recipient: RFC822; [email protected]
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
http://stackoverflow.com/questions/119390/specify-the-from-user-when-sending-email-using-the-mail-command? – dst
有什么办法可以在配置而不是命令行中指定它?我们有多个使用该命令的脚本。 – Igor
看起来像普通的'sendmail'配置行是'define('confDOMAIN_NAME','example.com')dnl',但我从来没有使用它,因此没有测试。 – dst