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.

This will probably cause a serious amount of flames but how about just doing a HOLD action from header_checks for anything to the domain(s)?

When he returns remove the statement and release the messages.


\\||/
Rod
--

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 [email protected], 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.

Reply via email to