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!

Working solution to disallow emails per account on 11.42

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

  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    112
    Likes Received:
    7
    Trophy Points:
    68
    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:
    575
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice