Thursday, November 22, 2012, 16:02
Category: Administration
Solution ID: 00000186
What are the recommended firewall settings for a perfectmail antispam server?
Port 25 (SMTP) traffic needs to be directed to your PerfectMail product should be forwarded to your PerfectMail product from the Internet.
It is best to create a one-to-one NAT mapping port 25 on the Internet facing IP address and your PerfectMail product. Problems can arise when the incoming SMTP IP address and the outgoing SMTP IP address do not match. In this situation incoming SMTP traffic is properly configured, however the outgoing SMTP traffic is sent on an unexpected port (usually the default outgoing IP address is used).
When sending e-mail to the Internet remote anti-spam servers will verify the domain name, hostname and reverse address of the sending IP address against your DNS records. Often the DNS records are not configured to support the default outbound IP address.
Anti-spam servers will compare the name reported by the server itself (i.e. the hostname), the address record (A record) from DNS and the reverse DNS record (PTR record). Anti-spam servers will score and possibly even reject messages for discrepencies between these records. This is further complicated by firewall port forwarding issues. The best way is if you have a 1-1 NAT for your e-mail so both incoming and outgoing mail use the same IP number. Failing that the names should all match up on the outgoing side of things.
We strongly recommend updating your firewall to restrict all outgoing SMTP (port 25) traffic. Only PerfectMail and other mail servers should be able to send e-mail directly to the Internet. PC's compromised by viruses, Trojans, etc. may send e-mail directly to the Internet which may result in your entire organization being blacklisted by RBL sites such as Spamhaus. (Especially if you have only one Internet facing IP address.)
Following are two examples of how to configure PerfectMail within your firewalled infrastructure.
If you have a simple firewall configuration, with your internal network (Green Zone) being protected from the Internet, place your PerfectMail product in the internal network (Green Zone) and configure your firewall to allow the following network traffic.
Incoming Ports:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | Port forward to Perfectmail for incoming e-mail |
443 | TCP | HTTPS | Port forward to Perfectmail for remote secure web access (optional) |
22 | TCP | SSH | Port forward to Perfectmail for technical support (optional) |
Outgoing Ports:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | For outgoing e-mail |
53 | TCP/UDP | DNS/BIND | For DNS look-ups and testing |
80 | TCP | HTTP | For website probing |
123 | UDP | NTP | For remote Network Time Protocol look-ups |
443 | TCP | HTTPS | For website probing |
43, 4321 | TCP | whois, rwhois | For WhoIs queries |
If you have a firewall configuration that includes a DMZ, with your internal network (Green Zone) being protected from the Internet, place your PerfectMail product in the DMZ network and configure your firewall to allow the following network traffic.
Between Internet and the DMZ - Incoming Ports:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | Port forward to Perfectmail for incoming e-mail |
443 | TCP | HTTPS | Port forward to Perfectmail for remote secure web access (optional) |
22 | TCP | SSH | Port forward to Perfectmail for technical support (optional) |
Between Internet and the DMZ - Outgoing Ports:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | For outgoing e-mail |
53 | TCP/UDP | DNS/BIND | For DNS look-ups and testing |
80 | TCP | HTTP | For website probing |
123 | UDP | NTP | For remote Network Time Protocol look-ups |
443 | TCP | HTTPS | For website probing |
43, 4321 | TCP | whois, rwhois | For WhoIs queries |
Between the DMZ and the Green Zone - Incoming Ports, to Green Zone:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | Port forward to mail server for incoming e-mail |
53 | TCP/UDP | DNS/BIND | For DNS look-ups and testing (unless DNS server is in DMZ) |
123 | UDP | NTP | For Network Time Protocol (unless time server is in DMZ) |
Between the DMZ and the Green Zone - Outgoing Ports, from Green Zone:
Port | Type | Protocol | Description |
---|---|---|---|
25 | TCP | SMTP | For outgoing e-mail |
443 | TCP | HTTPS | For PerfectMail Web-UI secure access |
80 | TCP | HTTP | For PerfectMail Web-UI access (optional) |
Tags: antispam, server, secure, access, support, firewall, configuration
Link to this article: https://perfectmail.com/kb/firewall_setting_requirements
Updated: Thursday, November 22, 2012, 16:02
-- David Rutherford
Last modified: 2016-06-21, 10:41
© 1999-2013 PerfectMail
Comments
No comments yet.