Linux SendMail 错误消息:553 5.1.8 … 发件人地址的域 … 不存在

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17739818/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:18:28  来源:igfitidea点击:

SendMail Error Message: 553 5.1.8 … Domain of sender address … does not exist

linuxemaildnssendmailpostfix-mta

提问by sri

I setup sendmail server with inhmail.walkingtree.in in local

我在本地使用 inhmail.walkingtree.in 设置了 sendmail 服务器

when i tried to sen dmail from other email servers i am getting the following error ,

当我尝试从其他电子邮件服务器发送 dmail 时,出现以下错误,

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=2548:
    host inhmail.walkingtree.in [122.175.35.121]:
    553 5.1.8 <[email protected]>... Domain of sender address [email protected] does not exist

------ This is a copy of the message, including all the headers. ------

I installed sendmail server in 192.168.1.145. the domain name of .145 is inhmail.walkingtree.in

我在 192.168.1.145 安装了 sendmail 服务器。.145的域名是inhmail.walkingtree.in

i opened port 25 in firewall in system and router as well .

我也在系统和路由器的防火墙中打开了端口 25。

Mail receiving and sending in 192.168.1.0/24 is working fine with @inhmail.walkingtree.in.

192.168.1.0/24 中的邮件接收和发送与@inhmail.walkingtree.in 一起工作正常。

Please help that how sendmail can receive mails from external email servers.

请帮忙 how sendmail can receive mails from external email servers.

UPADTED

更新

> [srinivas@localhost ~]$ echo "check_mail [email protected]" | sendmail -d8.20 -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> check_mail         input: jd @ walkingtree . in
Basic_check_mail   input: jd @ walkingtree . in
tls_client         input: $| MAIL
D                  input: < > < ? > < ! "TLS_Clt" > < >
D                returns: < ? > < > < ? > < ! "TLS_Clt" > < >
A                  input: < > < ? > < ! "TLS_Clt" > < >
A                returns: < > < ? > < ! "TLS_Clt" > < >
TLS_connection     input: $| < > < ? > < ! "TLS_Clt" > < >
TLS_connection   returns: OK
tls_client       returns: OK
CanonAddr          input: < jd @ walkingtree . in >
canonify           input: < jd @ walkingtree . in >
Canonify2          input: jd < @ walkingtree . in >
dns_getcanonname(walkingtree.in, trymx=1)
dns_getcanonname: trying walkingtree.in. (AAAA)
    NO: errno=0, h_errno=4
dns_getcanonname: trying walkingtree.in. (A)
    NO: errno=0, h_errno=4
dns_getcanonname: trying walkingtree.in. (MX)
    NO: errno=0, h_errno=4
dns_getcanonname: trying walkingtree.in.localdomain (AAAA)
    NO: errno=0, h_errno=1
Canonify2        returns: jd < @ walkingtree . in >
canonify         returns: jd < @ walkingtree . in >
Parse0             input: jd < @ walkingtree . in >
Parse0           returns: jd < @ walkingtree . in >
CanonAddr        returns: jd < @ walkingtree . in >
SearchList         input: < + From > $| < F : jd @ walkingtree . in > < U : jd @ > < D : walkingtree . in > < >
F                  input: < jd @ walkingtree . in > < ? > < + From > < >
F                returns: < ? > < >
SearchList         input: < + From > $| < U : jd @ > < D : walkingtree . in > < >
U                  input: < jd @ > < ? > < + From > < >
U                returns: < ? > < >
SearchList         input: < + From > $| < D : walkingtree . in > < >
D                  input: < walkingtree . in > < ? > < + From > < >
D                  input: < in > < ? > < + From > < >
D                returns: < ? > < >
D                returns: < ? > < >
SearchList       returns: < ? >
SearchList       returns: < ? >
SearchList       returns: < ? >
Basic_check_mail returns: $# error $@ 5 . 1 . 8 $: "553 Domain of sender address " " does not exist"
check_mail       returns: $# error $@ 5 . 1 . 8 $: "553 Domain of sender address " " does not exist"
> [srinivas@localhost ~]$

Working:

在职的:

Yes thanks ,now it is working .

是的,谢谢,现在可以使用了。

problem is i am unable to ping walkingtree.in ,due to local DNS server settings.I removed dbs server in network connections now i am able to get mails from GMail and walkingtree.in

问题是我无法 ping walktree.in,由于本地 DNS 服务器设置。我删除了网络连接中的 dbs 服务器,现在我可以从 GMail 和 walktree.in 获取邮件

when i am using dns server , i am able to ping www.walkingtree.in but not walkingtree.in . can you please help me to able to ping walkingtree.in

当我使用 dns 服务器时,我可以 ping www.walkingtree.in 但不能 ping 通 walktree.in。你能帮我ping一下walkingtree.in吗

采纳答案by AnFi

You sendmail thinks that envelope sender's domain walkingtree.in does not exist (no MX, A, AAAADNS records). It refuses to accept messages with such envelope sender because there will be no way to send back (eventual) bounce messages (reports about email delivery problems).

您 sendmail 认为信封发件人的域 walktree.in 不存在(没有MX, A, AAAADNS 记录)。它拒绝接受带有此类信封发件人的邮件,因为将无法发回(最终)退回邮件(有关电子邮件传递问题的报告)。

You may use nslookup(or dig) to check if the server sees the DNS records:

您可以使用nslookup(或dig) 检查服务器是否看到 DNS 记录:

nslookup -type=mx walkingtree.in
dig walkingtree.in MX

nslookup -type=mx walkingtree.in
dig walkingtree.in MX



IF YOU USE SENDMAIL(not postfix) then as root execute the command below to locate the problem:

如果您使用 SENDMAIL(不是 postfix),则以root 身份执行以下命令来定位问题:

echo "check_mail [email protected]" | sendmail -d8.20 -bt

In case of "Undefined ruleset check_mail" error try:

如果出现“ Undefined ruleset check_mail”错误,请尝试:

echo "checkmail [email protected]" | sendmail -d8.20 -bt

-d8.20 turns on tracking of DNS queries
checkmail - equivalent of check_mail used with FEATURE(delay_checks)

-d8.20 打开跟踪 DNS 查询
checkmail - 等效于与 FEATURE(delay_checks) 一起使用的 check_mail