For a user test case we use a postfix server for sending mail listing on localhost. Under normal circumstances it sends mails via relay and cronjob mails via /etc/aliases to a certain address. For the test I would like to send all outgoing mails to one address, except for the ones mapped and listed in /etc/aliases. So far I have found no way (transport_maps, recipient_canonical_maps, etc.) to do this. Either I get mails delivered to that on address, but root goes also there. Or I get root mails to my address but all other mails don't go to the defined address. I thought that a
!/root/ for@cron.jobs
regexp map should work but it doesn't. Does anyone now a way to do this?
[link][1 comment]