4

我在本地使用 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 一起工作正常。

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

已更新

> [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 ~]$

在职的:

是的,谢谢,现在它正在工作。

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

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

4

1 回答 1

8

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

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

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


如果您使用 SENDMAIL(不是 postfix),则以 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(delay_checks) 一起使用的 check_mail

于 2013-07-19T09:02:47.947 回答