> 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?

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

Gmail is now enforcing spf, that means you need to
- add a dns/txt/spf record for your server/domain
- rewrite sender for forwarded mails (e.g. postsrsd)
- stop forwarding spam

As others have said this is a bad idea.

There is a much better way: deliver mails to your local
u...@foo.com mailbox and tell Gmail to fetch it from
there via pop3:

https://support.google.com/mail/answer/21289?hl=en

Best regards,
Gerald

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

Reply via email to