【问题标题】:linux mail using wrong domain to send an emaillinux mail使用错误的域发送电子邮件
【发布时间】:2016-10-17 16:47:17
【问题描述】:

我正在使用 linux“邮件”客户端。当我尝试发送电子邮件时 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

【问题讨论】:

  • 有没有办法在配置而不是命令行中指定这个?我们有多个使用该命令的脚本。
  • 似乎对于普通的sendmail,配置行是define('confDOMAIN_NAME', 'example.com')dnl,但我从未使用过它,因此没有对其进行测试。

标签: linux sendmail


【解决方案1】:

最终通过修改 /etc/mail/ 中的 submit.cf 和 sendmail.cf 修复

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

您需要包含 Dj,其后跟主机名。

感谢大家的帮助。

【讨论】:

  • 对我没有帮助:(
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-10-03
  • 2011-04-22
  • 1970-01-01
  • 2013-04-13
  • 2020-04-12
相关资源
最近更新 更多