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.

Spam concerns

Discussion in 'General Discussion' started by Datcrack, Sep 17, 2009.

  1. Datcrack

    Datcrack Well-Known Member

    Joined:
    Dec 31, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Istanbul / TURKEY
    cPanel Access Level:
    Root Administrator
    Hi,

    We have not been using any spam prevention systems other than limiting a domain's outgoing mails by 200 mails per hour. However a php mail() function could easily bypass that and send spam email regularly. I suppose there's no limit to mail() even with suphp.

    There's a solution which we are not very eager to use. We could disable sending mail from mail() functions with enabling "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.)". Perhaps we could give out php smtp class and let people send mail throught their pop accounts.

    Now the question is: What is the way ? How do we prevent spam and let people use their mail() functions with a limit ?
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is the nobody user exempt from the mail sending limit in Tweak Settings?

    One good reason to use suPHP and run PHP as CGI so that PHP scripts are executed by the username of the account owner. This way, the user nobody should never send out any e-mails. And you can further customize this limit for individual users by using the /var/cpanel/maxemails file.
     
  3. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    Hello,

    After taking a closer look into your question, I can say that if you use suPHP it will enforce the limits that you have already set in WHM, I hope this answers your question. Please let me know if you have any other questions.

    Thank you,
    Matthew Curry
     
  4. Datcrack

    Datcrack Well-Known Member

    Joined:
    Dec 31, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Istanbul / TURKEY
    cPanel Access Level:
    Root Administrator
    So if suphp is enabled, the outgoing mail limit is enforced ?
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    That is correct.
     
  6. Datcrack

    Datcrack Well-Known Member

    Joined:
    Dec 31, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Istanbul / TURKEY
    cPanel Access Level:
    Root Administrator
    Thank you very much.
     
Loading...

Share This Page