Solved

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

Posted on 2010-11-10
3
960 Views
Last Modified: 2012-05-10
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?


0
Comment
Question by:lifeinxsau
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
arzka earned 500 total points
ID: 34105800
You could use the recipient bcc maps, URL at the end. You just need to create the required file, add the wanted information there (the recipient's email address and the other address he wants to get a copy to) and activate the feature (postmap /etc/postfix/recipient-bcc or whatever you wanted to call it). Take a look for more detailed information:

http://www.postfix.org/postconf.5.html#recipient_bcc_maps
0
 

Author Comment

by:lifeinxsau
ID: 34107476
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.
0
 

Author Closing Comment

by:lifeinxsau
ID: 34108254
Excellent answer - worked immediately and as advertised ;)  Many thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Resolve DNS query failed errors for Exchange
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question