Magnus Bäck a écrit :
On Sunday, June 21, 2009 at 08:35 CEST,
Stéphane MERLE <stephane.me...@distrigame.com> wrote:
Terry Carmen a écrit :
This should work:
In main.cf:
header_checks = regexp:/etc/postfix/header_checks
In /etc/postfix/header_checks:
/^To:....@temporarydeaddomain.com/ HOLD
Hi, thanks, this worked perfectly as I send only one mail per person
and use only the To field.
Don't get into bad habits. You have been warned. Why implement something
that's known to be bad when there are equally simple solutions without
those drawbacks?
I wouldn't say that the other solution is equally simple : "The "real"
solution is somewhat more complicated. Set up a separate postfix
instance with a very long maximal_queue_lifetime, and use transport_maps
to send all their mail there."
And I do not know the time of the "outage" so the first solution was
good "for me" as I knew how my sent email were (the postfix smtp is used
for mass mailling so I know how those are done)
I just forgot to do a postmap on the header_checks file in the first
place :)
`regexp' maps aren't meant to be run through postmap(1), and if it didn't
work the first time it had nothing to do with you running postmap(1).
Funny, I probably did something wrong so ...
Anyway thanks for your help and patience with me !
Stéphane