On Tue, Jan 21, 2020 at 01:02:11PM -0500, Wietse Venema wrote: > > Hi, i 've a question, i need to forward all email received with a > > specified sender (external domain) to local domain address (suppose > > local postfix domain is "example.com").
Note, the OP said "sender" (address). > > all email with sender x...@gmail.com?? need to be forwarded to a > > i...@example.com. > > > > Is It possible to do it please? > > Configuration: > > /etc/postfix/main.cf: > virtual_alias_maps = hash:/etc/postfix/virtual > > /etc/postfix/virtual: > x...@gmail.com i...@example.com This rewrites a recipient. Bcc'ing based on sender can be done with "sender_bcc_maps". Redirecting all mail from a sender can be done with a "REDIRECT" action in an access(5) table used with "check_sender_access". -- Viktor.