Solved

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

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
To show how to generate a certificate request 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 Servers >> Certificates…
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…

691 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