Link to home
Start Free TrialLog in
Avatar of lifeinxsau
lifeinxsau

asked on

postfix config - forking delivery to a local virtual mailbox and a gmail account

I'm transferring from sendmail to postfix, and I've come up with this little puzzle

I currently have a person who wants to have all emails go to a local mailbox to pop, but a "backup copy" also goes to his gmail account.

In sendmail, this is an easy entry in the mailertable:

person@domain.com   localbox,person@gmail.com

Open in new window


But in postfix the local virtual mailboxes go into /etc/postfix/vmailbox, while delivery to external email addresses go into /etc/postfix/virtual.

So.  Where do I split this delivery?  Is postfix smart enough that if I have an entry for person@dmain.com in both virtual and vmailbox that it will send a copy of an incoming email to both? Or what else must I do then?


ASKER CERTIFIED SOLUTION
Avatar of arzka
arzka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lifeinxsau
lifeinxsau

ASKER

Amazing.  I never even considered a bcc map on the server end.  That looks useful for this particular problem.  I'll go test it out and when I get it to work I'll come back and close the question.  Thank you in advance.
Excellent answer - worked immediately and as advertised ;)  Many thanks.