我在本地
中使用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.
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。能帮我解决一下这个问题吗?
答案 0 :(得分:7)
你sendmail认为信封发件人的域名walktree.in不存在(没有MX
,A
,AAAA
DNS记录)。它拒绝接受带有此类信封发件人的邮件,因为无法发回(最终)退回邮件(有关电子邮件递送问题的报告)。
您可以使用nslookup
(或dig
)来检查服务器是否看到DNS记录:
nslookup -type=mx walkingtree.in
dig walkingtree.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(delay_checks)一起使用的check_mail