Results 1 to 9 of 9
  1. #1

    Limiting PHP "Nobody"

    Hi All,

    I have been searching and cannot seem to find a way of limiting the amount of e-mails allowed per hour from the PHP "nobody" account.

    I have the SMTP limit set to 300 per domain per hour, but that is of course not applicable for the PHP "nobody"... Anybody know how to do this?

    Appreciated
    MP Hosting
    http://mphosting.net

  2. #2
    Join Date
    Mar 2004
    Location
    Greater Chicagoland
    Posts
    181
    A semi-easy way I can think of is to have your PHP email script(s) communicate with a database. Every time an email is sent it will insert a row into the database with a timestamp (logging the IP would be smart too). Before the email is sent the script would query the database and make sure that there have not been X_NUMBER of emails sent in the last hour. I said logging the IP would be smart because the script could also make sure one IP is not abusing the email script.

  3. #3
    What you want to use is suPHP or phpsuexec and have your scripts run in the context of the cPanel user owning the website.

    Arun
    Linux Server Hardening by ServerSafety

    Get it done.

  4. #4
    Originally posted by security4all
    What you want to use is suPHP or phpsuexec and have your scripts run in the context of the cPanel user owning the website.

    Arun
    Exactly, but using PHPsuexec caused quite a few problems - any idea of practically implementing it without annoying people (other than the limit) ?
    MP Hosting
    http://mphosting.net

  5. #5
    consider suPHP as a less-picky alternative.

    arun
    Linux Server Hardening by ServerSafety

    Get it done.

  6. #6
    Originally posted by security4all
    consider suPHP as a less-picky alternative.

    arun
    Is this anything you can do? And what's your prices (including a general server hardening)?
    MP Hosting
    http://mphosting.net

  7. #7
    sure - but e-mail sales@serversafety.com and one of the team will give you a better perspective of what's possible.

    arun
    Linux Server Hardening by ServerSafety

    Get it done.

  8. #8
    Join Date
    May 2003
    Location
    Florida
    Posts
    902
    What you want is Mailmon. It does exactly what you are asking.

    Edit to add link:
    You can get the script at: http://www.webhosting-tools.com/view.cgi/MailMon

  9. #9
    Originally posted by Dacsoft
    What you want is Mailmon. It does exactly what you are asking.

    Edit to add link:
    You can get the script at: http://www.webhosting-tools.com/view.cgi/MailMon
    Actually looks like quite a helpful tool that I'll certainly look more at...
    MP Hosting
    http://mphosting.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •