dotrc:exim:secondary_mx
Differences
This shows you the differences between two versions of the page.
| dotrc:exim:secondary_mx [2011/09/01 13:41] – created adi | dotrc:exim:secondary_mx [2018/07/10 09:49] (current) – exim: secondary mx -- callout to primary adi | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| +domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS : dsearch; | +domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS : dsearch; | ||
| </ | </ | ||
| + | |||
| + | ====== Variant: callout to primary mx ====== | ||
| + | |||
| + | To avoid spam processing and back-scatter the secondary mx may reject mails (temporary error) as long as the primary mail server is online. Add the following to acl/ | ||
| + | < | ||
| + | ## CALLOUT FOR SECONDARY MX | ||
| + | ## http:// | ||
| + | # if we know that the primary MX rejects this address, we should too | ||
| + | deny | ||
| + | domains = dsearch; | ||
| + | ! verify = recipient/ | ||
| + | message = Rejected by primary MX | ||
| + | |||
| + | # detect whether the callout is failing, without causing it to | ||
| + | # defer the message. only a warn verb can do this. | ||
| + | warn | ||
| + | domains = dsearch; | ||
| + | set acl_m_callout_deferred = true | ||
| + | verify = recipient/ | ||
| + | set acl_m_callout_deferred = false | ||
| + | |||
| + | # if the callout did not fail, and the primary mail server is not | ||
| + | # refusing | ||
| + | # our client to try again later | ||
| + | defer | ||
| + | domains = dsearch; | ||
| + | ! condition = $acl_m_callout_deferred | ||
| + | message = The primary MX is working, please use it | ||
| + | |||
| + | # callout is failing, main server must be failing, | ||
| + | # accept everything | ||
| + | accept | ||
| + | domains = dsearch; | ||
| + | message = Accepting mail on behalf of primary MX | ||
| + | ## END CALLOUT FOR SECONDARY | ||
| + | </ | ||
| + | |||
dotrc/exim/secondary_mx.1314884489.txt.gz · Last modified: 2011/09/01 13:41 by adi
