This article explains how to use Mailspect MPP along with Postfix to archive your incoming, outgoing and internal Google Apps mail domains. There are many reasons to use MPP with your Google Apps email including our advanced reporting, economical price, avoidance of vendor lock-in and flexibility beyond what Google can offer. The MPP Virtual Appliance can be used for this application or you can build your own MPP/Postfix server. This article will not cover the Archival setup, but only additional information on how to setup Postfix gateway.
Google provides a nice article explaining how to setup Qmail as Email gateway for Google Apps mail which also applies to using MPP and Qmail to archive Google Apps Email: .
- Inbound Gateway
For Postfix we'll follow the instructions for Inbound Gateway referenced above except that domain relaying for mydomain.com will be set from MPP Manager
http://mpp_host:20001 -> System -> SMTP Relay -> Add new domain using Domain: mydomain.com Host: aspmx.l.google.com and Check MX record NOT checked.
Note: Please set MX record to MPP host (hostname, NOT IP) and also Inbound Gateway setting in Google Apps panel as described in article .
- Outbound Gateway
The Outbound Gateway should allow relaying if mail from Google Apps would be sent through Mailspect/Postfix host. To identify IP's that should be allowed to relay please use from Command Line/Terminal:
dig txt _spf.google.com | grep spf ;_spf.google.com. IN TXT _spf.google.com. 300 IN TXT "v=spf1 ip4:18.104.22.168/19 ip4:22.214.171.124/19 ip4:126.96.36.199/20 ip4:188.8.131.52/18 ip4:184.108.40.206/17 ip4:220.127.116.11/20 ip4:18.104.22.168/16 ip4:22.214.171.124/20 ip4:126.96.36.199/20 ?all"
We'll obtain a list of network classes / IP's that should permitted to relay. Please compile a list without "ip4:" prefix: "188.8.131.52/19 184.108.40.206/19 .." and go to Mailspect Manager (http://mpp_host:20001) -> System -> SMTP Relay -> Advanced -> Show and add the list in IP Networks to Relay text field.
Note: Please set the Outbound Gateway setting in Google Apps panel as described in article .