To create a test email server, I have a similar requirement as:
How to redirect all outgoing email from postfix to a single address for testing
But I need to send all the emails to an external account, not a local one.
I would like to do something like:
- xyz:email@gmail.com
but xyz is not local nor smtp.
localusers (root etc.) to some external address and not redirect other mail? I think the at sign should be negated somehow – basin May 15 '15 at 14:05virtual_alias_mapsinstead ofvirtual_maps– Lienhart Woitok Mar 05 '20 at 16:09virtual_mapsis deprecated. See the docs. I've updated the post with the latest correct info. – BlueRaja May 31 '21 at 00:08