Solved

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

Posted on 2008-10-13
5
3,860 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
[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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Resolve DNS query failed errors for Exchange
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 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