Cipafilter Support:
309 517 2022 option 2
Mon - Fri 7 AM - 6 PM CT
Configuration of Anti-Spam and Email Archiving with Google Mail (Gmail)
Posted by Jim Giseburt, Last modified by Chris Cooper on 27 August 2014 11:11 AM

Configuring the Cipafilter to archive email with Google Mail in conjunction with Cipafilter Anti-Spam is a very simple process.  Cipafilter E-mail Archiving is compatible with Google Apps for Education, Google Apps for Business and Google Apps for Government.  Cipafilter E-mail Archiving is not compatible with the free editions of Google Mail.

Please note:  To configure Cipafilter Email Archiving for Google Mail without Cipafilter Anti-Spam, please refer to Configuration of Email Archiving with Google Mail (Gmail).


Cipafilter Configuration

All Cipafilter Anti-Spam and E-mail Archiving configuration settings are on the Anti-Spam page of the Cipafilter.  To configure Anti-Spam, the following settings are recommended.



Under Addtional E-mail Settings, select All Messages Passing Through for the E-mail Archive setting.  This setting causes the Cipafilter to archive all messages passing through the Cipafilter.


Under Mail Routes, add a rule for the appropriate e-mail domain(s) forwarding e-mail to



Under SMTP Relay Authorized for the Following Subnets, specify the range of IP subnets for Google’s mail servers.




After these settings have been saved, restart the Cipafilter. 

Google Apps Configuration

Google Apps configuration is performed in the Google Admin Control Panel.  Under Google Apps > Settings for Gmail > Advanced Settings, two setting changes are required.


The Inbound gateway allows Google Apps to accept e-mail from the Cipafilter.  The IP address of the Cipafilter is specified using CIDR notation (w.x.y.z/32).


The Outbound gateway causes outbound e-mail to be routed through the Cipafilter.  The IP address of the Cipafilter (w.x.y.z) is specified.


Once these changes have been saved, the final step is to change DNS for e-mail delivery. 

DNS Configuration

The DNS MX records for the e-mail domain will need to be changed.  DNS changes must be made via the administration tools for your domain host.  The DNS changes are not made using the Google Admin Control Panel or the Cipafilter interface. For more information on MX Records, see our MX Record How-To. Google has provided detailed instructions for properly configuring MX records.

Initially, the MX records for a Google Apps domain will point to Google’s servers.


The DNS records for the domain must be changed as follows:

  1. Delete all existing MX records for the domain.

  2. Create a DNS A record pointing to the Cipafilter.

  3. Create a DNS PTR record for the IP of the Cipafilter pointing to the name of the Cipafilter.

  4. Create one DNS MX record for the domain using the Cipafilter as the mail exchanger.

  5. Update any SPF records as necessary. For more information on SPF records, see our SPF Record How-To.

(1 vote(s))
Not helpful

Comments (0)
©Cipafilter 2017. All Rights Reserved.