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

Is it possible to specify the lifetime of a message on the Postfix deferred queue on a per-message basis, or using some rules based on, for example, the sender address?

In our outgoing mail queue, we have a mixture of different classes of email, and I would like some of those to have a fairly short lifetime (promotional emails) but still have a long lifetime for most emails (operational messages, supplier notifications).

The only controls I can find are bounce_queue_lifetime and maximal_queue_lifetime which affect all messages.

The alternative approach, I suppose, is to simply have two Postfix instances with different parameters serving two queues. I was hoping to avoid the complexity but there may be no other way?

share|improve this question
up vote 2 down vote accepted

I believe this is all there is. You might consider using a different mailer which supports either different lifetimes (like sendmail) or per-message queue management (like Exim) as a smtp_fallback_relay. This way everything that is going to end up in the queue as temporary undeliverable under normal conditions, will be sent to the defined mailer where it will be handled according to your predefined rules.

share|improve this answer
ironically, we've actually just recently migrated away from Exim (Postfix has produced a huge improvement in sending with a largish email newsletter campaign, although the new hardware probably helped too). Well, there are other alternatives too. – araqnid Jul 5 '11 at 12:09

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.