Question
Digital Ocean Firewall blocking sending Email
Hi all,
I’m running a WordPress site on Ubuntu 16.04 Server. Before using Digital Ocean Firewall feature. My WordPress site was sending outgoing emails without any problem but after enabling I’m getting following error in my mail server log:
server postfix/smtp[10014]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c03::1b]:25: Network is unreachable
Currently I’m using following rules in the firewall:
Inbound Rules:
SSH TCP 22
DNS TCP TCP 53
HTTP TCP 80
HTTPS TCP 443
DNS UDP UDP 53
Outbound Rules:
DNS TCP TCP 53
HTTP TCP 80
HTTPS TCP 443
DNS UDP UDP 53
Please help me which port rule I’ll need to add in the firewall to fix the issue,
Thanks!
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.
×
Hi there,
It depends on what kind of SMTP port you are using. But from what I read, you need to open TCP/UDP port 587. Hope this helps you out
Thank you for reply,
Will you please tell me where I need to add 587 port tcp/udp rule: in Inbound or Outbound?
Has this issue been resolved yet? Any workaround? I can’t seem to get postfix to use something other than 25 for outgoing emails. Any luck?