Securing a Mail Server with a Firewall

If you host your own mail server, you can easily use HeatShield to configure your firewall for email.

Specifically, you will want to open the following ports:

  • 25 SMTP
  • 587 SMTP
  • 465 Secure SMTP
  • 110 POP3
  • 995 Secure POP3
  • 143 IMAP
  • 993 Secure IMAP

Opening Your Firewall for Email

First, connect your server to HeatShield and upgrade it to use custom rulesets.

Then, open your Rulesets page and click Create Ruleset.

Next, name your ruleset and click Create Ruleset.

Now, create a new firewall rule by selecting the policy, the destination, and the source.

Set the Policy to Allow and the Source to Any.

Select Custom from the Destination dropdown and enter TCP 25 as the first SMTP port. Click Add.

Repeat this step for the rest of the email ports you need to open on your server.

Your final ruleset will look similar to this example:

Applying the Email Ruleset

To apply your new ruleset to your mail server, open the server in HeatShield.

Select your Email ruleset from the drop-down list and click Apply Ruleset.

Your new ruleset will be applied.

Since you must often access email clients through HTTP/HTTPS, you can leave the default rulesets active on your mail server.

Last updated: September 23, 2016

Still Have Questions?

Don't hesitate to contact us if you can't find the answers to your questions.