域不存在消息

域不存在消息

我正在尝试从我的 RedHat 5.9 机器发送邮件。所以命令看起来像这样:

echo "Test mail" | mail -s "test" [email protected]

最终我会收到如下错误邮件:

> The original message was received at Wed, 10 Jan 2018 09:00:00 +0200
> from localhost.localdomain [127.0.0.1]
> 
>    ----- The following addresses had permanent fatal errors -----
> <[email protected]>
>     (reason: 553 #5.1.8 Domain of sender address <[email protected]> does not exist)
> 
>    ----- Transcript of session follows ----- ... while talking to
> technion-ac-il.mail.protection.outlook.com.:
> >>> MAIL From:<[email protected]> SIZE=619 <<< 553 #5.1.8 Domain of sender address <[email protected]> does not
> exist 501 5.6.0 Data format error

环顾网络让我找到了类似的解决方案这里所以我编辑 /etc/mail/domaintable 文件:

*.technion.ac.il  technion.ac.il

比我在文件夹中尝试过的:

make
service sendmail restart

** 编辑 **

> dig technion.ac.il
> 
> ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.2 <<>> technion.ac.il ;;
> global options:  printcmd ;; Got answer: ;; ->>HEADER<<- opcode:
> QUERY, status: NOERROR, id: 9356 ;; flags: qr rd ra; QUERY: 1, ANSWER:
> 1, AUTHORITY: 9, ADDITIONAL: 0
> 
> ;; QUESTION SECTION: ;technion.ac.il.                        IN      A
> 
> ;; ANSWER SECTION: technion.ac.il.         2854    IN      A      
> 132.68.239.58
> 
> ;; AUTHORITY SECTION: il.                     101370  IN      NS     
> nsa.ns.il. il.                     101370  IN      NS      nsb.ns.il.
> il.                     101370  IN      NS      nse.ns.il. il.        
> 101370  IN      NS      ilns.ilan.net.il. il.                    
> 101370  IN      NS      lookup.iucc.ac.il. il.                    
> 101370  IN      NS      sns-pb.isc.org. il.                     101370
> IN      NS      ns1.ns.il. il.                     101370  IN      NS 
> ns2.ns.il. il.                     101370  IN      NS      ns3.ns.il.
> 
> ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed
> Jan 10 08:51:05 2018 ;; MSG SIZE  rcvd: 241

但问题没有解决。任何帮助将不胜感激。

答案1

是的,确实technion.ac.il存在,但至少根据公共 DNS,ilmn-qm.bi.technion.ac.il不存在。

$ dig +noauth ilmn-qm.bi.technion.ac.il ANY
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61930
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096

此外,该bi.technion.ac.il域还有一条 SPF 记录,表明只有 SPF 记录中列出的发件人spf.protection.outlook.com对该域有效。因此,即使您注册ilmn-qm.bi.technion.ac.il到公共 DNS,它也可能无法通过 SPF 检查。

$ dig +noauth bi.technion.ac.il ANY
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4367
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 13, ADDITIONAL: 15

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; ANSWER SECTION:
bi.technion.ac.il.      2468    IN      TXT     "EqkKAGrhnUwdxbT3qyzejnNnmW2bVdbFOhszJabIWkp/qtPbYYWRMF1M1WF2KoMBOn5y6bdiYpdrfDLKi7ZHDQ=="
bi.technion.ac.il.      2468    IN      TXT     "v=spf1 include:spf.protection.outlook.com -all"
bi.technion.ac.il.      2468    IN      MX      0 bi-technion-ac-il.mail.protection.outlook.com.
bi.technion.ac.il.      2468    IN      MX      20 mrelay.technion.ac.il.
bi.technion.ac.il.      2468    IN      MX      10 nlbex.technion.ac.il.

编辑您的/etc/mail/domaintable内容无济于事:当您的系统与收件人的邮件服务器(根据公共 DNS MX 记录,为technion-ac-il.mail.protection.outlook.com)通信时,会发生错误,该服务器查询 DNS 并发现发件人地址在公共 DNS 中不存在。因此,它会假设您的服务器是充满恶意软件的主机或业余垃圾邮件发送者,因此它将拒绝该电子邮件。

相关内容