Community Forums
Connect with us on LinkedIn
Community Notice

View Poll Results: Implement email notification of x emails being sent per hour

Voters
23. You may not vote on this poll
  • Yes, I think this feature is great.

    18 78.26%
  • No, I don't want this feature.

    5 21.74%
  • I don't know.

    0 0%
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default Option to exempt mailing lists from mails per hour limit

    WHM has the ability to disallow emails over a certain number to be sent. I thought this was a great feature except it also counts email lists emails. As some of my clients have large email lists the feature is useless. However i would like to be emailed if anyone sends email over x amount per hour. I don't mind getting the email if it's the lists - but it would be handy to get an email if one of my customers did start sending large amounts of email, at least I could investigate and make sure they are legit.

    The reason I ask this is because I recently setup a piece of software that used my outgoing email server to send emails - unfortunately it wasn't a very safe piece of software as it accepted email from outside my LAN - in effect it was an open-relay that could make my server look like an open relay.

    I would just like to be notified if anyone sends large amounts of email so I can investigate.

    Does anyone else think this is a good idea?
    Last edited by rs-freddo; 05-16-2004 at 02:10 AM.
    Michael

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    732

    Default

    Great Idea !

  3. #3
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I'm surprised there is so little interest. Obviously most cpanel admins host on networks that allow SPAM.
    Michael

  4. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,310
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yes I would be interested to see something similar.

  5. #5
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    http://home-port.net/Mail-Watch/

    use that, it works pretty good!

  6. #6
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Originally posted by Faldran
    http://home-port.net/Mail-Watch/

    use that, it works pretty good!
    Thanks!, that looks good.
    Michael

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Good idea about the feature, now they just need to implement mail-watch in whm

  8. #8
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yes, well until they do...

    For those using phpsuexec, mailwatch won't run by chmodding the logs 644. So...

    Setup mailwatch as per instructions.
    Copy mailwatch.php, function.inc.php, config.php
    to /root/mailwatch/
    chown all three files mailnull.mail
    chmod 755 mailwatch.php
    open mailwatch and add
    #!/usr/local/bin/php -q
    as the first line.

    No need to change anything with logs.

    You can now run it via cron job or manually from SSH.

    This is quick and dirty and the mailwatch.php file really needs to be tidied up to be run as cgi (as per my instructions).
    Michael

  9. #9
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,310
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks Michael!

  10. #10
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    Side note on it.. if you have alot of mail going through your server, you may need to change the logrotate for the exim files..

    I set all of mine to rotate daily for 7 days, instead of once a week for 4 weeks. ( I also like to disable compression, but that is your choice.. )

    BTW.. nice trick.. I just ran mine as root in crontab, but that is much easier solution.. will have to implement it.

  11. #11
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    another trick that works well with mail-watch is to add this to exim.conf ( or through WHM exim conf editor .. first box )

    PHP Code:
    log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn 
    Remember that should be all one line.

    Gives more details about each mail sent.

  12. #12
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Option to exempt mailing lists from mails per hour limit

    Back to the original topic, the max emails per hour is governed by Exim - does anyone have any technical suggestions on how to have Exim ignore mailing lists (or at least, certain addresses sending email) from this per-hour per-domain limit?

Similar Threads & Tags
Similar threads

  1. Setup limit of sending out mails per hour per domain users
    By gennerp in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 08-22-2011, 04:27 PM
  2. option to delete existing mailing lists when disabling mailman in tweak
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 01-13-2011, 03:25 AM
  3. Mailing Lists
    By orbidcom in forum E-mail Discussions
    Replies: 1
    Last Post: 09-04-2008, 11:06 AM
  4. limit max mails/hour/domain
    By skills in forum E-mail Discussions
    Replies: 2
    Last Post: 05-06-2008, 02:43 AM
  5. mailing lists
    By CIDER in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-10-2003, 12:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube