I need to open port 587, but I can't

Post Reply
eliaspatrickjr
Junior Member
Posts: 2
Joined: 31 Jan 2020, 14:37

I need to open port 587, but I can't

Post by eliaspatrickjr »

Hello,

I'm using WordOps 3.11.2, and I can't open port 587.

I have a site in Wordpress that uses Contact Form, and when I disable the firewall (csf -f), the contact form works fine. :)

But when I enable firewall, contact form stop working. :confused:

I change the settings in CSF.CONF, but nothing works.

See here: https://community.wordops.net/assets/fi ... onf-01.png

I tried these commands:

sudo iptables -A INPUT -p tcp --dport 587 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 587 -m conntrack --ctstate ESTABLISHED -j ACCEPT


And also this one: sudo iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT

Does anyone know what happens?

Regards,

Patrick

hkloo
Junior Member
Posts: 1
Joined: 31 Jan 2020, 19:58

Re: I need to open port 587, but I can't

Post by hkloo »

Make sure you set SMTP_BLOCK=0

eliaspatrickjr
Junior Member
Posts: 2
Joined: 31 Jan 2020, 14:37

Re: I need to open port 587, but I can't

Post by eliaspatrickjr »

Yes, SMTP_BLOCK = “0” is set in CSF.CONF :(

Post Reply