Question regarding SMTP_BLOCK

Mister9

Active Member
Apr 28, 2010
27
0
51
cPanel Access Level
Root Administrator
Hi!
One of my accounts on my server has been sending out spam.
I been reading up a bit on how to prevent this from happening and I saw that setting SMTP_BLOCK to 1 is a good thing.

My question is, will this block php applications running on other accounts from sending out emails as well? I guess I am trying to find any information about any repercussions this may have on any other accounts on the server.
 

hostCAPO

Member
Sep 2, 2015
6
1
3
Birmingham, AL
cPanel Access Level
Root Administrator
Hello,
SMTP_BLOCK is a setting in the CSF firewall. This will stop local php files from sending mail however, there is also this setting in the CSF.CONF that should allow local files to send mail:
===
# If SMTP_BLOCK is enabled but you want to allow local connections to port 25
# on the server (e.g. for webmail or web scripts) then enable this option to
# allow outgoing SMTP connections to the loopback device
SMTP_ALLOWLOCAL = "1"
===

Regards,
Jeremy A.
 
  • Like
Reactions: Mister9

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

In addition to the previous post, the following document is useful as a general guide on preventing SPAM from leaving your server:

cPanel - Prevent Email Abuse

Thank you.