如何将备份MX的exception添加到tumgreyspf?

我有一个运行postfix / dovecot作为电子邮件服务器的Ubuntu raring服务器,tumgreyspf正在执行灰名单和SPF检查。

我的问题是,我也有一个备份的MX服务器,应该暂时存储我的电子邮件,如果我的主服务器失败。 它通常拒绝接收电子邮件,如果它发现主服务器在线和function。

问题是什么时候它需要做它的工作,tumgreyspf拒绝所有来自备份MX的电子邮件,像这样的错误:

Jun 27 16:18:13 hamra postfix/smtpd[28732]: NOQUEUE: reject: RCPT from mxbackup.mydomain.com[xxxx]: 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> 

有任何想法吗?

tumgreyspf自述文件

 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.