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!

Blocking test users from sending mail

Discussion in 'E-mail Discussion' started by remik, May 22, 2007.

  1. remik

    remik Guest

    We have some test accounts, which are sending spam from our servers. It's a big issue. The only way I can think of to stop them is to block this accounts from sending mail.
    I tried using exim ACL's to deny certain senders, but it didn't help.

    The problem is that PHP runs as nobody, and we cannot tell if the user sending email is a test user or a user which paid for our service.

    Do you have an idea how to block users? Maybe there is a way to hijack all 'mail()' queries and add some code for permission checking?
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You could always run phpSuExec/SuPHP and block user nobody from sending email - this can be set through the WHM interface.
  3. remik

    remik Guest

    Thanks for the hint, but this will not work in my configuration. I have two versions of PHP - php 4 running in suexec as CGI and PHP 5 running as apache module. I need to have both, because of compatibility issues.


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