Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question regarding SMTP_BLOCK

Discussion in 'E-mail Discussions' started by Mister9, Sep 1, 2015.

  1. Mister9

    Mister9 Member

    Joined:
    Apr 28, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. hostCAPO

    hostCAPO Member

    Joined:
    Sep 2, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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.
     
    Mister9 likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page