我有一个 Ubuntu raring 服务器,运行 postfix/dovecot 作为电子邮件服务器,使用 tumgreyspf 进行灰名单和 SPF 检查。
我的问题是,我还有一个备用 MX 服务器,用于在主服务器发生故障时临时存储我的电子邮件。如果发现主服务器在线且正常运行,它通常会拒绝接收电子邮件。
问题是,当它确实需要执行其工作时,tumgreyspf 会拒绝来自备份 MX 的所有电子邮件,并出现如下错误:
Jun 27 16:18:13 hamra postfix/smtpd[28732]: NOQUEUE: reject: RCPT from mxbackup.mydomain.com[x.x.x.x]: 550 5.7.1 <[email protected]>: Recipient address rejected: QUEUE_ID="" SPF Reports: 'SPF fail - not authorized'; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<mxbackup.mydomain.com>
有任何想法吗?
答案1
COMMON PROBLEMS
SPF checks need to be bypassed for relays for the domain, such as
secondary MX servers. [...]
One way of bypassing this check would be to ensure that MX servers are
listed in mynetworks, and that permit_mynetworks is ahead of the call to
tumgreyspf.