Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best way to handle bounces and immediate failures with Exim? An email sent to a large mailing list will generate a large number of immediate failures as well as bounces. I'd like to capture these bounces and immediate failures and process them with a script, so that I can automatically remove them from the mailing list.

Using a third party email campaign manager is not an option. I need to specifically handle these messages with Exim, either capturing or redirecting them for later processing with a custom script. What would be the best way to implement something like this with Exim?

A similar question was asked here regarding IIS, but isn't much help in implementing something similar with Exim.

share|improve this question
up vote 1 down vote accepted

Large mailing-lists tend to be managed with Mailing List Managers, such as "mailman". One of the advantages of these is that they include bounce processors, so that they can unsubscribe recipients for you.

You're basically trying to implement more and more of the MLM functionality inside the MTA. You're going to keep hitting issues, so it's better to just accept the need to setup an MLM.

That said, the redirect Router which expands your mailing-list can take an errors_to option and you can set that to point to an address which you'll handle as an accept Router that passes the message to an external tool which manages the list of recipients.

share|improve this answer
I've thought about this for about a year or so, and I've decided to finally accept your answer :P In any case, the only real solution here is to set up a custom MLM system to handle the functionality I'm looking for. – Richard Keller May 24 '12 at 0:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.