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.

how to limit # of emails that can be sent at one time?

Discussion in 'E-mail Discussions' started by bapline, Jul 27, 2007.

  1. bapline

    bapline Member

    Joined:
    Nov 16, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    We don't want to put a hard limit on our users but rather have them broken up into smaller batches and/or scheduled for off peak delivery instead of instant if it's over a certain number ...how can we do this ???

    Thanks
     
  2. 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
    You mean like letting users send x emails per hour and throttling the rest for later delivery? This can be done in WHM -> Tweak Settings. Under mail, for the option "The maximum each domain can send out per hour" you can set that to a number (typically 100 or 200 in my experience) as you see fit.
     
  3. bapline

    bapline Member

    Joined:
    Nov 16, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Thanks David,

    How does the throttling work.. will it send another set amount the next hour until all are gone? Just need to make sure the rest don't get stuck and if there's a way to schedule the actual time that messages over the limit per hour are reatempted.

    Thanks in advance,
    Rich
     
  4. 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
    Essentially it will wait until the next hour to re-send the messages (only sending up to the number of messages you set in WHM for a domain to be able to send in an hour). This process repeats until the outbound mail queue for that domain is empty. I've had to use this functionality myself in the past and while it may be annoying to wait a few hours to get an email you sent to yourself (I usually like to list myself last on such mailings to ensure the mail went through), I've never experienced mail being lost other than it winding up in someone's spambox or something of that nature.

    I don't believe there's a way to schedule what minute of the hour the message resend is attempted via cPanel or WHM. However, you may want to consult the Exim documentation to see if there's a way to manually handle that.
     
  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
    Not via cPanel/WHM if it is even possible.
     
  6. bhstudios

    bhstudios Member

    Joined:
    Jul 26, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chile - SCL
    Is it possible to do this with different quantitys per account ?
     
  7. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  8. beshoo

    beshoo Member

    Joined:
    Apr 12, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    dear cPanelDavidG , the problem when cpanel reach the number that we set in the setting it will start sending a new mail , that the mail Q reach the number ,

    so the mail Q will have a lot of retuned message !
     
  9. 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
    Are you receiving the message that the mail queue has reached its max for that domain or is your user receiving that message?

    Also, why would this result in returned messages? Is the email address it is sending this to non-functional?
     
  10. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Is this a new feature of v11? In v10.x whenever the hard limit was reached, Exim/Apache would start kicking out errors and all further eMails would be returned to Sender.
     
  11. borealphil

    borealphil Member

    Joined:
    Oct 21, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I use WHM 11.11.0 and I don't want to use the "The maximum each domain can send out per hour" in WHM because it simply discard the emails after the limit reached, and sends a warning to the sender. This is very frustrating and no one of my client would stay with me if I was discarding their email.

    It would be nice if the emails were queued instead of discarded.

    Thanks!
     
  12. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Would be even better if we could choose whether to discard or queue the emails, on a per domain basis...
     
  13. kabam

    kabam Registered

    Joined:
    Oct 28, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Maryland, USA
    Ok... I'm a but of a noob and would like verification from someone as I am having a similar problem...


    borealphil says that if I set my Max E-mails per Hour to 500, number 501+ will get discarded.

    cPanelDavidG says that if I set my Max E-mails per Hour to 500, number 501+ will get queued and sent eventually.


    I have a client that is sending a newsletter to 2000 customers, so it is important to know which behavior this setting actually does so that I can plan, adjust settings, etc. Any information would be appreciated!

    Thanks!
     
  14. 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
    The behavior of excess emails has changed. I believe the current behavior is what borealphil stated.
     
  15. kabam

    kabam Registered

    Joined:
    Oct 28, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Maryland, USA
    Thanks for the information! Would the discard include re-sends in the queue as well?

    For example, if Max E-mails Per Hour is set to 500, and 100 e-mails fail (in queue for resend), and I send another 500 the following hour, does that mean that only 400 of the second batch have the potential to be sucessfull (i.e. 100 of the second batch will automatically be discarded because there are already 100 re-sends in the queue).

    Thanks again!
     
  16. borealphil

    borealphil Member

    Joined:
    Oct 21, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi Kabam,
    there is no queue. So you start back at zero emails at the next hour, and you will only be able to send 400 (as far as I know).

    I had an issue with a client's newsletter after i enabled this option. I also set a max limit of 3 mails per hour on a test account to verify it, and mails are really discarded. You will have logs in exim_mainlog.

    It would be *NICE* if the mails would be queued instead of discarded!

    Thanks!
    Borealphil
     
  17. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    I wouldn't like the mails to be queued by default but having the choice on a per domain basis would be actually very useful :)
     
  18. borealphil

    borealphil Member

    Joined:
    Oct 21, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Yes, so for some people, you queue the emails, if they have verified newsletters, and for spammers, you simply drop the excedded emails. I ask my clients to notify me if they run a newsletter, so I can make sure it is a real legitimate opt-in/opt-out, and not a v*agr4 business!
     
  19. beshoo

    beshoo Member

    Joined:
    Apr 12, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Dear support

    I had set The maximum each domain can send out per hour (0 is unlimited) on 100 email per hour .

    That is fine
    But I have some clients who sent up to 5000 email .
    The scenario will be like this :

    1- We did limit sending to be up to 100 email
    2- User start sending ….. and he reach the limit (100 email)
    3- After reaching the limit , each new sending presses (Cpanel) will stop it I know that , but Cpanel will send Back a notification email to the user telling hem that he reach the limit .
    Now if user send 10000 Email , 100 email will go through , but 9900 notification email Cpanel will send to the client email telling hem that he did reach his limit .

    This behavior is a huge problem , my server load reach 50.3 regarding " uptime "
    And that’s why I said it is a bug , I don’t want this notification to be send to the user email each time he send a new email .
     
  20. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    how does this affects mailman??

    Anybody can confirm if this is still working in such a manner?


    How does this behaviour impacts on newsletters sent via mailman?
    This is VERY IMPORTANT to me since I run two magazine websites with 7000 and 14000 opt-ín users each and I suspect that even the "max email" in that boxes is set to 7000, the other 14000 are never delivered. Is my suspicion true?
     
Loading...

Share This Page