简体   繁体   English

linux邮件使用错误的域发送电子邮件

[英]linux mail using wrong domain to send an email

I am using linux "mail" client. 我正在使用linux“邮件”客户端。 When I try to send an email echo "test" | 当我尝试发送电子邮件回显“测试” mail -s "testing" myemail@personal.com I receive a 550 error bounce back because the domain is invalid. mail -s“ testing” myemail@personal.com我收到一个550错误的反弹消息,因为域无效。

On the server there are 2 domains. 在服务器上有2个域。 One is public the other is strictly internal. 一个是公开的,另一个是严格的内部的。 How do I force only the mail client to use the public domain? 如何强制仅邮件客户端使用公共域?

Here is the failure message. 这是失败消息。

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

The fix ended up by modifying the submit.cf and sendmail.cf in /etc/mail/ 该修复程序通过修改/ etc / mail /中的commit.cf和sendmail.cf结束

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Djdomain_name

You need to include the Dj which will be followed by the hostname. 您需要包括Dj,然后是主机名。

Thank you for everyones help. 谢谢大家的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM