Re: verify recipient - temp error instead of perm error
Slavko via Exim-users <[email protected]>
| Newsgroups | gmane.mail.exim.user |
|---|---|
| Message-ID | <[email protected]> |
Dňa 12. augusta 2025 14:31:48 UTC používateľ Frank Richter via Exim-users <[email protected]> napísal: >Or better mx_fail_domains in dnslookup route? No, this doesn’t. I am surprised, as by docs, it has do exactly that, how did you set it? >Sounds complicated … >I’d like to deny an email instead of sending it to the smarthost, which generates a DSN failure. Not really as complicated as it can look... When you will check recipient in warn (instead of deny), the deffer will not be final result, but only end of warn section, thus one can use something as this (from head only, not tested): warn set acl_m_rcptno = 1 verify = recipient set acl_m_rcptno = deny condition = $acl_m_rcptno set acl_m_rcptno = In warn it first sets ACL variable as mark of failed RCPT verify, then do verify, it is success, then clear variable and deny will not happen, but when verify is not success, the warn will end at this point and variable will not be cleared, thus deny will happen in nect section. When verify triggers defer, the warn will be intercepted, and ACL will continue with deny... In deny is variable cleared too, to not leak mark to next recipient of the same message, if any... Anyway, i would prefer to have option for retry to one can set short (eg. 1-2 hrs) threshold for temporary DNS errors, but i see no one. regards -- Slavko https://www.slavino.sk/ -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## [email protected] ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/