How to setup the firewall to allow email traffic?

One of the things the hacker recently did was destroy my ability to check for new email using the macOS email app. The app currently allows me to check email, but not POP accounts that are on my own server. I’m not sure if something needs to be added to my firewall to make it work or not. Briefly I added an input rule that allowed all TCP traffic for all addresses, but this still didn’t fix the problem. So I removed that rule just in case it’s a security threat. I’ve even tried finding videos on YouTube to learn what I need to do, but could not find one specific enough to my situation.

Please advise.

Thank you.

By the way, why is it so difficult to add a screenshot to a post? I clicked the picture icon and all it did was produce the following, and it didn’t give me a chance to upload a photo.

image alt text
image caption

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
July 12, 2023

Hey @spendlove,

So, the firewall configuration would be only to allow traffic to go from and to the e-mail account. That would be ports 993 and 995 for IMAP and POP and 465 and 587 for SMTP.

This doesn’t mean it will save you from any malicious attempts. IN 99% of the cases, the vulnerability which caused the hacking itself was either with an outdated service or an outdated website.

In the future, I’ll recommend always keeping your applications and service up to update, and that most of the time should be enough. Additionally, keep your passwords secure and make sure to regularly update them.

As for the image, here is the code behind it:

![image alt text]( "image caption")

In the [image alt text] you need to put your caption and ( you need to put al ink to the image.

Something like this:

image alt text
image caption

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel