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.

Blocking test users from sending mail

Discussion in 'E-mail Discussions' 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