Google Apps integration

Overview

  1. Configure the hosted email server to accept email from Metadefender Email server.

  2. Configure Metadefender Email to relay out to hosted email server.

  3. Update MX record to point to Metadefender Email server.

Detailed Steps

Step 1.1

Go to https://admin.google.com and login to your Google Apps subscription.

Step 1.2

Click 'MORE CONTROLS'.

images/download/attachments/20220947/image2016-8-25_14_19_16.png

Step 1.3

Click 'Apps'.

images/download/attachments/20220947/image2016-8-25_14_21_34.png

Step 1.4

Click 'Google Apps'.

images/download/attachments/20220947/image2016-8-25_14_22_28.png

Step 1.5

Click 'Gmail'.

images/download/attachments/20220947/image2016-8-25_14_23_14.png

Step 1.6

Click 'Advanced settings'.

images/download/attachments/20220947/image2016-8-25_14_23_55.png

Step 1.7

Scroll down to the 'Inbound gateway' section and click 'CONFIGURE'.

images/download/attachments/20220947/image2016-8-25_14_27_35.png

Step 1.8

Specify a gateway name (Metadefender Email Relay) and the IP address of the Metadefender Email server. Check 'Automatically detect external IP (recommended)', 'Reject all mail not from gateway IPs' and 'Require TLS connection from the email gateways listed above'.

images/download/attachments/20220947/image2016-8-25_14_30_48.png

Step 1.9

Click 'SAVE' at the bottom right of the screen to save the changes.

images/download/attachments/20220947/image2016-8-25_14_31_26.png

Step 2.1

Connect to the Mail agent server and run the following REST POST request (using ,for example, POSTMAN) to http://localhost:8000/MailAgent/Settings

{
"EmailRelayInDirection": 0,
"EmailRelayInLocalDomains": [],
"EmailRelayInPort": 25,
"EmailRelayOutPassword": null,
"EmailRelayOutPort": 25,
"EmailRelayOutServer": "alt1.aspmx.l.google.com",
"EmailRelayOutUseTls": true,
"EmailRelayOutUsername": null
}

images/download/attachments/20220947/image2016-8-25_14_35_28.png

Step 2.2

Verify routing settings by sending an email to a Google Apps recipient directly to the Metadefender Email server and verify that it arrives correctly in the recipient inbox.

Step 3.1

Refer to your Internet domain registrar for details how to change MX record to point to Metadefender Email IP address. Verify email routing by sending an email to a Google Apps recipient.


Make sure that your MX record changes have propagated before verifying email routing.

Additional notes

  • Quarantine: Google Apps always does a malware check on all incoming emails, so releasing an infected item from quarantine will be rejected by Google Apps. As a workaround for this, configure quarantine to deliver emails to an alternative SMTP server that can accept infected emails