远程收件人域基于SPF拒绝邮件,我认为这是因为发件人的SPF配置不正确。
运行dig时,我看到:
[fooadm@box ~]# dig @8.8.8.8 -t TXT foosender.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> @8.8.8.8 -t TXT foosender.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30608
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;foosender.com. IN TXT
;; ANSWER SECTION:
foosender.com. 14039 IN TXT "v=spf1 include:spf.foo1.com -all"
foosender.com. 14039 IN TXT "v=spf1 include:_spf.bob.foo2.com -all"
;; Query time: 26 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jan 7 09:45:38 2014
;; MSG SIZE rcvd: 146
这是有效的设置吗?对我来说,有两个单独的记录(每个记录都很难失败)似乎让我感到奇怪。难道所有内容都不在一个记录中吗?
我希望正确的TXT记录是:
v=spf1 include:spf.foo1.com include:_spf.bob.foo2.com -all
SPF records MUST be published as a DNS TXT (type 16) Resource Record (RR) [RFC1035] only.
(请参阅RFC 7208,第3.1节)。我将基于此尝试新的答案。