Terry Carmen a écrit :
Hi,

How can I set a rule to put manually on HOLD all email sent to
temporarydeaddomain.com ? I understand that postfix will automatically
sent the emails in the deferred and deal with them from time to time but
as I know that the domain is dead for a while, I'd like to move them
directly on hold and resubmit them in the maildrop when I know that the
domain will work again ...

Thanks for your help.

Stéphane


This should work:

In main.cf:
header_checks = regexp:/etc/postfix/header_checks


In /etc/postfix/header_checks:
/^To:....@temporarydeaddomain.com/ HOLD


Terry

Hi, thanks, this worked perfectly as I send only one mail per person and use only the To field. I just forgot to do a postmap on the header_checks file in the first place :)

Stéphane







Reply via email to