Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    521

    Lightbulb Limiting user mails user nobody can send per hour?

    Due to spam/mailing problems I limited max mails each domain can send per hour to 100, also a max_recipients to 50.
    But when a user uses a soft like PHPLIST these settings are overrided and can send more than 100 per hour.
    Is there an exim rule to avoid that???

    Thanks!

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Not an exim rule, but set Tweak Security SMTP tweak so scripts have to go through exim. That should alleviate the problem and use the limits specified in exim.
    Lloyd F Tennison

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by lloyd_tennison
    Not an exim rule, but set Tweak Security SMTP tweak so scripts have to go through exim. That should alleviate the problem and use the limits specified in exim.
    Although if you've installed APF the SMTP tweak option will be disabled -- you can re-enable it but you need to do a little fiddling to do so.

    HOWEVER: The real problem here is that your user scripts are sending out email as nobody, effectively making them anonymous. Anonymous email is really bad as it means you can't easily track down and terminate spammers) The problem here is that if you set up a limit on the anonymous user that will become less workable as you get more users. The correct solution is to switch to use phpsuexec and suexec so scripts run under the account's username rather than being anonymous - and that also makes the email scripts send out go out under the account's username, hence it's trackable and spammer detection becomes a breeze (and detecting problems with system load becomes easier also).

    If you're using the per-hour limits you'll probably find it helpful to know that there's a way to increase the per-hour limit on a per-domain basis. Simply list the domain in /var/cpanel/maxemails (plain text file, you'll need to create it) with the line format:

    domain.com=1000

    where domain.com is the domain in question and 1000 is the new limit per hour. (Acknowledgement: This was originally discovered by the ever-lovin Chirpy of www.configserver.com fame).

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 06-18-2008, 06:40 PM
  2. Mail is send to user@server.com and to user@domain.com
    By gleidsonlm in forum E-mail Discussions
    Replies: 1
    Last Post: 10-07-2007, 04:18 PM
  3. Limiting MySQL connections per user
    By Compila in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-16-2007, 11:19 AM
  4. Limiting a user usage
    By Spokuz in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-31-2005, 05:55 AM
  5. User high message count for mails send in WHM
    By pingo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-15-2003, 06:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube