[exim] How to use a smarthost after a permanent error on dir…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Giuseppe Sacco
Date:  
À: exim-users
Sujet: [exim] How to use a smarthost after a permanent error on direct delivery
Hello,
I have a DSL connection that always has its IP address listed in some
blacklist, so direct deliveries from my exim server sometimes fails
with permanent errors like this one:

550 5.7.1 Service unavailable; client [95......78] blocked using
zen.spamhaus.org

I also have a smarthost, but I prefer direct delivery, so I added a
router that checks for the target domain against a list and use the
smarthost if the domain is listed, otherwise it goes for the direct
delivery.

I would like to avoid to manually maintain such a list. One option
would be to let exim tries the smarthost after receiveing a permanent
error from the remote smtp transport. I could not find how to do this.

Another option would be to let exim update the list adding domains that
fails permanently. This will bounce only the first message, and will
use the smarthost on subsequent messages to the same domain.

Or maybe, such a list is available and maintained somewhere on the
Internet. Or any other solution that I do not currently see.

This is for sure a common problem, so I wonder how other people solved
it.

Thank you,
Giuseppe

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/