Neil Smith wrote:
I run Postfix to handle my personal mail. I also act as a backup MX host for a friend. To give him time to return from holiday and fix a broken Postfix installation, I want to keep messages for the backup domains for up to 21 days. However, I want undeliverable messages for other domains to be returned to the sender after 3 days. I've tried this setup of /etc/postfix/main.cf, but it doesn't do what I want. If a message can't be delivered to, say some...@example.com, Postfix will keep trying for 21 days before giving up, and that's a bit long.
smtpd_recipient_restrictions = permit_mynetworks permit_mx_backup \
                               reject_unauth_destination

permit_mx_backup_networks = other.com other.org
maximal_queue_lifetime = 21d
bounce_queue_lifetime = 3d

Any suggestions?

(It's Posfix 2.5.1)

Thanks,

Neil.

Queue lifetimes are global. To hold mail for one domain longer, you need to set up another instance of postfix, and send all the long-lived mail there with a transport maps entry. Postfix 2.6 and newer has tools to make multiple instances easier, but it can be done manually with any version.
http://www.postfix.org/MULTI_INSTANCE_README.html

  -- Noel Jones

Reply via email to