Mailspect Documentation
Mailspect/Postfix as Email Gateway for Google Apps

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: [1].

  • Inbound Gateway

For Postfix we'll follow the instructions for Inbound Gateway referenced above except that domain relaying for will be set from MPP Manager

http://mpp_host:20001 -> System -> SMTP Relay -> Add new domain using Domain: Host: 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 [2].

  • 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 | grep spf
 ;  IN TXT  300  IN   TXT "v=spf1 ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ?all"

We'll obtain a list of network classes / IP's that should permitted to relay. Please compile a list without "ip4:" prefix: " .." 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 [3].