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

Post Reply
eliaspatrickjr
Junior Member
Posts: 3
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: 3
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 :(
eliaspatrickjr
Junior Member
Posts: 3
Joined: 31 Jan 2020, 14:37

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

Post by eliaspatrickjr »

Hello,

I have a site with Wordpress, and a contact form here: https://mundodasfigurinhas.com.br/fale-com-a-gente/

When I enable CSF, the contact form stop working.

When I disable CSF, the contact form works fine.

Since January I have this issue... :(

Somebody knows how to put it to work?

I'm using Contact Form 7 plugin on Wordpress.

The SMTP ports are opened in csf.conf:

# Allow incoming TCP ports
TCP_IN = "25,53,80,110,143,443,465,587,993,995"

# Allow outgoing TCP ports
TCP_OUT = "25,53,80,110,113,443,465,587,993,995"

Regards!
Post Reply