May 23, 2025, 12:00 AM by Manager SpamProtect

Introduction

To ensure that emails processed by the GW Email Protect Gateway are not mistakenly flagged as spam or rejected, it is essential to whitelist our IP addresses on your mail servers or email services. This guide provides instructions for configuring trust rules on Postfix, Exim, Office 365, Google Workspace, Zoho Mail, and other systems.

SpamProtect IPs to Whitelist

IPv4 Addresses

  • 103.230.142.38
  • 81.31.213.121
  • 103.230.142.42

IPv6 Addresses

  • 2a14:7581:c01:4a::1
  • 2a14:7581:c01:41::10
  • 2a14:7581:300:e3c0::1

1. Postfix Mail Server

Steps:

Connect via SSH with root access.

Open the main configuration file:

vim /etc/postfix/main.cf  

Add the IPs to the mynetworks directive:

mynetworks = 127.0.0.0/8, [::1]/128, 103.230.142.38, 81.31.213.121, 103.230.142.42, 2a14:7581:c01:4a::1, 2a14:7581:c01:41::10, 2a14:7581:300:e3c0::1  

Restart Postfix:

systemctl restart postfix  

2. Exim Mail Server

Steps:

Connect to the server as root.

Edit the configuration file:

vim /etc/exim/exim.conf  

In the acl_check_rcpt section, insert:

accept
hosts = 103.230.142.38 : 81.31.213.121 : 103.230.142.42 : 2a14:7581:c01:4a::1 : 2a14:7581:c01:41::10 : 2a14:7581:300:e3c0::1  

Restart Exim:

systemctl restart exim  

3. Microsoft Office 365 (Exchange Online)

Steps via Exchange Admin Center:

  1. Go to https://admin.exchange.microsoft.com
  2. Navigate to Mail Flow > Rules.
  3. Add a new rule:
    • Name: Allow GW Email Protect
    • Apply this rule if: The sender's IP address is in the specified range
    • Add IPs: 103.230.142.38, 81.31.213.121, 103.230.142.42
    • Action: Bypass spam filtering
  4. Save and apply.

4. Google Workspace (Gmail)

Steps via Admin Console:

  1. Go to https://admin.google.com
  2. Navigate to Apps > Google Workspace > Gmail > Advanced Settings
  3. Under the appropriate domain or organization unit, click Add setting.
  4. Add trusted IP addresses in the “Email whitelist” field:

103.230.142.38
81.31.213.121
103.230.142.42  

  • Note: Google does not currently support IPv6 whitelisting in this context.
  • Save and deploy changes.

5. Zoho Mail

Steps via Control Panel:

  1. Log into https://mailadmin.zoho.com
  2. Navigate to Mail Administration > Anti-Spam Settings > IP Address Based Allow/Block List
  3. Under Allowlist IPs, add:

103.230.142.38
81.31.213.121
103.230.142.42

Save settings.

6. Other Mail Servers or Firewalls

General Instructions:

  • Access your email server or firewall configuration interface.
  • Look for sections such as Trusted IPs, Allow List, IP Whitelist, or similar.
  • Add all listed IPv4 and IPv6 addresses.
  • Make sure no general blocking rules or RBLs override this whitelist.

Important Notes

  • Ensure SPF, DKIM, and DMARC records are correctly configured.
  • Avoid blocking inbound relay messages from these IPs.
  • If using SpamAssassin, Rspamd, or other filters, consider adjusting trusted networks.

Need Help?

Contact our support team:
Email: hello@spamprotect.me
Site: https://spamprotect.me

© 2025 SpamProtect.me - Complete email security solution, Anti-spam, Anti-phishing and Anti-Malware.
Powered by the  FOSSBilling Community
Top