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.

Working solution to disallow emails per account on 11.42

Discussion in 'E-mail Discussions' started by iso99, Jun 13, 2014.

  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    89
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I need to disable sending emails from a single account. I'm using 11.42, is there a working solution for this?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no native features in cPanel/WHM that will disable the ability of an account to send email. You can find a useful response from one of our developers in the comments section of the following feature request that helps explain why it's not likely such a feature is implemented.

    disable the default E-Mail address from sending out E-Mail | cPanel Feature Requests

    While a bit dated, you may also find this forum post helpful:

    Disable email sending for a single domain name

    Thank you.
     
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    89
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hey Michael,

    Thanks very much, it worked! However, PHP can still send emails via the blocked domains. How do I disable it with PHP scripts?
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Have you already enabled this option in Tweak Settings?

    Prevent the user “nobody” from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.

    If so, then that should prevent most scripts from sending emails. You should also review (if you haven't yet), the following:

    How To Prevent Email Abuse.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The option that Peter referenced is helpful is you are using a handler such as DSO. Otherwise, you would have to disable the PHP Mail function completely and require PHP scripts to use SMTP authentication. That type of change would be global, rather than targeted to particular domain names.

    Thank you.
     
Loading...

Share This Page