On 2023-04-28 10:21, Viktor Dukhovni via Postfix-users wrote:
On Fri, Apr 28, 2023 at 08:32:29AM +0800, Tom Reed via Postfix-users wrote:

I have a local real mailbox: u...@foo.com.  When I setup this alias
map in virtual_alias_maps file:

    u...@foo.com u...@gmail.com

(then postmap this file).  The message sent to u...@foo.com won't
reach into mailbox, but just forwarded to gmail.

How can I setup it to both reach local mailbox and forwarding?

This is a bad idea.  Don't do this.  Forwarding spam to gmail, or mail
from external senders with SPF policies, ... will fail to be delivered,
and will tarnish your server's "reputation".

It can of course be made to "work" (in the sense of queueing the mail
for delivery), but really, don't.


Thanks Victor. I know this is not good idea to forward messages to external systems. But for tech way, what's the right setup to both keep messages in local mailbox and forward them to another address?

regards
Tom


_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to