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

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

当我试图从其他电子邮件服务器发送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:

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

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

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

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

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

请帮助sendmail如何从外部电子邮件服务器接收邮件.

UPADTED

> [srinivas@localhost ~]$echo "check_mail jd@walkingtree.in" | 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 ~]$

工作:

是的,谢谢,现在它正在运作.

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

当我使用DNS服务器时,我可以ping www.walkingtree.in但不能walktree.in.你可以帮助我能够ping walktree.in

最佳答案
你sendmail认为信封发件人的域名walkingtree.in不存在(没有MX,A,AAAA DNS记录).它拒绝接受带有此类信封发件人的邮件,因为无法发回(最终)退回邮件(有关电子邮件传递问题的报告).

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

nslookup -type = mx walkingtree.in
    挖掘walktree.in MX

如果您使用SENDMAIL(而不是后缀),那么以root身份执行以下命令来查找问题:

echo "check_mail jd@walkingtree.in" | sendmail -d8.20 -bt

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

echo "checkmail jd@walkingtree.in" | sendmail -d8.20 -bt

-d8.20开启对DNS查询的跟踪
checkmail – 相当于与FEATURE一起使用的check_mail(delay_checks)

转载注明原文:linux – SendMail错误消息:553 5.1.8 …发件人地址域…不存在 - 代码日志