Thomas Broda wrote:
Hi,
our developers team would like to send a bunch of test mails using a
productive recipients database - which of course is a great idea.
In order to prevent real recipients from receiving these test mails, all test
mails should be redirected to an internal mailbox, respectively, the
recipient addresses should be rewritten. The test mails will have a specific
sender address.
Using canonical_maps, I can either rewrite a sender or a recipient address,
but how can I rewrite the recipient address dependent on the sender address?
I thought another way would be putting
t...@example.com REDIRECT foo.example.org
Yes, a check_sender_access table that returns REDIRECT is the
correct tool for this job.
to the check_sender_access lookup table, but Postfix will ignore this and
deliver the mail to the original recipient.
Maybe you need to put your check_sender_access table before
permit_mynetworks?
If you need more help, please see:
http://www.postfix.org/DEBUG_README.html#mail
--
Noel Jones