Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    14

    Default Exim Bcc CC Limit?

    Hey guys,

    I would like to add a limit to the amount of bcc and cc address an email can have in its header.

    Is there a way to do this google hasnt turned up much yet...

    I would like to limit my users to only a few hunderd bcc and cc in emails. Also is there a way to if they try to send too many, reject the message and send them a message detailing their service isnt provided to spam people.

    Thx

    [MuTe]

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    621

    Default

    Quote Originally Posted by [MuTe]
    Hey guys,

    I would like to add a limit to the amount of bcc and cc address an email can have in its header.

    Is there a way to do this google hasnt turned up much yet...

    I would like to limit my users to only a few hunderd bcc and cc in emails. Also is there a way to if they try to send too many, reject the message and send them a message detailing their service isnt provided to spam people.

    Thx

    [MuTe]
    You have two options. Both should be done via Exim Configuration Advanced edit.

    One is global - limit max recipients per EACH outgoing and incoming message.
    Just add the followin at the very first box of Advanced edit:


    Code:
    recipients_max = 15
    
    recipients_max_reject = true
    This will limit to 15 recipients per message. It is global limit and no one can override this.

    If you would like more flexible ACL rules you need to edit Third box, at the section called "check_recipient" add the following:

    Code:
    # Limit the number of recipients in sent email
    deny message      = Too many recipients, 15 maximum without SMTP Authentication
            condition    = ${if >{$recipients_count}{15} {yes}{no}}
            !authenticated= *
    deny message      = Too many recipients, 200 maximum with SMTP Authentication
            condition    = ${if >{$recipients_count}{200} {yes}{no}}
    This is the sample which limit non-authorized senders to 15 recipients and SMTP-authorized with 200 recipients.

    Of course, you may enter any conditions you wish! You may use lsearch and have file with whitelisted senders/hosts/etc. Use anything which suits better for you.

    Enjoy!
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  3. #3
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by ispro
    Code:
    # Limit the number of recipients in sent email
    deny message      = Too many recipients, 15 maximum without SMTP Authentication
            condition    = ${if >{$recipients_count}{15} {yes}{no}}
            !authenticated= *
    deny message      = Too many recipients, 200 maximum with SMTP Authentication
            condition    = ${if >{$recipients_count}{200} {yes}{no}}
    This rules also affect to my mailing list.

    Every mailist send by my user that over 15 will be rejected.
    It's me ...... It's me ......

  4. #4
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    621

    Default

    Quote Originally Posted by isputra
    This rules also affect to my mailing list.

    Every mailist send by my user that over 15 will be rejected.
    Easy to solve!

    Open this file for edit:
    /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py

    And add the following at the end:
    Code:
    # Max recipients for each message
    SMTP_MAX_RCPTS = 10
    
    # Max messages sent in each SMTP connection
    SMTP_MAX_SESSIONS_PER_CONNECTION = 10
    This way Mailman will be compatible with Exim limit.

    Enjoy!
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  5. #5
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by ispro
    Easy to solve!

    Open this file for edit:
    /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py

    And add the following at the end:
    Code:
    # Max recipients for each message
    SMTP_MAX_RCPTS = 10
    
    # Max messages sent in each SMTP connection
    SMTP_MAX_SESSIONS_PER_CONNECTION = 10
    This way Mailman will be compatible with Exim limit.

    Enjoy!
    After add that rules, do i need to restart mailman ?
    If yes, how to restart mailman from shell ?
    It's me ...... It's me ......

  6. #6
    Member
    Join Date
    Aug 2006
    Posts
    5

    Default start mailman

    You can start mailman by running the following script :

    /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl start


  7. #7
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Thanks to ispro and tuxguroo

    Also for [Mute] that start this thread
    It's me ...... It's me ......

Similar Threads & Tags
Similar threads

  1. exim queue limit
    By cygus in forum E-mail Discussions
    Replies: 9
    Last Post: 02-27-2012, 04:22 AM
  2. Exim Queue Manager w/Bcc's
    By jman_ in forum E-mail Discussions
    Replies: 1
    Last Post: 11-18-2009, 12:49 PM
  3. BCC does not work on exim
    By abubin in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 08-15-2005, 02:45 AM
  4. How to limit exim users by IP?
    By sepehr in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-27-2005, 03:51 AM
  5. CC - BCC Limit
    By d4rkl0rd in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 09-24-2004, 02:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube