Solved

Configure postfix to keep a copy of email, and forward to destination

Posted on 2008-10-13
5
3,796 Views
Last Modified: 2013-11-10
Hi,

I want to use postfix to keep a copy of all outbound / inbound email that's coming from gmail. gmail supports this configuration, so I need to work out how to make it happen in postfix.

We will be keeping the mail so its can be looked up for reference purposes.

inbound ---> postfix server keep a copy ---> gmail
outbound ----> gmail ---> postfix server keep a copy ---> reciepient
0
Comment
Question by:BrettskiWork
5 Comments
 
LVL 15

Expert Comment

by:tenaj-207
ID: 22700714
I think this is a function of the mail client and not Postfix.

If you use IMAP then all your outbound email should be captured in the mailbox's sent items, some clients you have to specify this setting manually.

If you're using POP3 then you should switch to IMAP, but your sent items should still be saved on the local computer.
0
 

Author Comment

by:BrettskiWork
ID: 22700783
they are, but I want this to be done on either edge ot the mail delivery system, this will ensure if a user deletes an email it won't go missing.
0
 
LVL 2

Expert Comment

by:antoniogc
ID: 22741536
You can use recipient_bcc_maps and sender_bcc_maps to get a copy of inboud and outbound mail. On main.cf put

recipient_bcc_maps hash:/etc/postfix/gmail_bcc
sender_bcc_maps hash:/etc/postfix/gmail_bcc

/etc/postfix/gmail_bcc must be contain:

# cat /etc/postfix/gmail_bcc
@gmail.com audit@yourdomain.com


and after change gmail_bcc must be compile:

# postmap /etc/postfix/gmail_bcc
0
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 500 total points
ID: 22750124
recipient and sender bcc maps are great for granularity, but if you just want to do all in/out emails, the 'always_bcc' parameter is what I use to archive all emails going thru postfix.
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 23475739
may I ask I a grade of B.  Wasn't this exactly what you were looking for? if not, how was it not a complete answer.  Thx
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Contact 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 Recipients >> Contact ta…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now