How to limit number of sending email / hour on pmg ?

InGenetic

Member
Sep 8, 2020
25
1
23
50
hi,

is there any way to limit pmg send emails /hour , ex : 500 emails / hour, to mitigate if one of email account has been compromised and send spam email to anywhere.
it's happening twice on my pmg, the last happening this morning , there's one email account has been compromised and it already sent 7,700 emails spam.

maybe if i can set limit number of email / hour that pmg can send , it's give me more time to handle this compromised account before they sending more a lot of mails.


Please advice .

Regards,
 
I use this to at least limit the rate of delivery to 1 message per second, rather than full speed ahead. Not quite what you want but helps to mitigate hacked accounts sending spam with minimal side effects. That's a maximum of 3600 per hour total deliveries, so one every 5 seconds would be close to what you want.

Code:
default_destination_rate_delay = 1
default_destination_recipient_limit = 2