How to Configure CSF to Allow Outbound SMTP?

When we enabled CSF on the server, most of the WordPress users are having issues with sending emails. After disabling the CSF, the sender will be able to send the emails. To fix this issue, you would need to allow the SMTP on server firewall. For more information about how to do this, please follow the below steps.

1) Login to WHM.

2) Navigate to the “Plugins” section.

Outbound SMTP

 

3) Click on “ConfigServer Security & Firewall” to allow the outgoing SMTP on the cPanel server. CSF is a firewall to Login/Intrusion Detection for applications like SSH, SMTP, IMAP, Pop3 etc.  It also checks for login authentication failures on mail servers.

Configure CSF

 

4) Open “Firewall Configuration” to edit the configuration file for the csf firewall and lfd.

Configure CSF

 

5) Search for SMTP_BLCOK in CSF configuration file and make sure that it is disabled there. If you enable SMTP_BLOCK it will block outgoing SMTP except for root, exim, and mailman (forces scripts/users to use the exim/Sendmail binary instead of sockets access). This replaces the protection as WHM > Tweak Settings > SMTP Tweaks.

Configure CSF

 

After disabling the SMTP_BLOCK, please restart the Csf to reflect the changes.

You can also do the same steps via command Line.

1) Login to the server via SSH as a root user.

# ssh root@<server ip>

2) Open ConfigServer Security & Firewall configuration file by using the below command.

# vi /etc/csf/csf.conf

Search for SMTP_BLCOK and set it to 0

SMTP_BLOCK = “0”

Then restart the CSF using the command

# csf -r

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What virtualization software do you use?

We use Parallels Virtuozzo Containers (PVC).

Why is my VPS constantly crashing?

There are several causes to why you may not be able to access your VPS. Some users often mistake...

What kind of support do you offer?

We offer Fully Managed VPS packages. For a list of items that we support, please refer to the...

What kind of software can I install on my VPS?

As you have full root access, you may install any compatible software on your VPS. However, any...

What is Virtuozzo?

Virtuozzo is the VPS technology created by SWsoft which allow us to create isolated VPS servers...