The main objective of the code is to stop runaway internal accounts from sending out large amount of emails. This has happened 2 or 3 times in the last 6 months because of compromised MS Exchange accounts and mail loops. The 'remote' section is to limit the machine gun type spam and dictionary attacks. The modified code is below. Please note this code is experimental and is designed for testing the water only.
# Local senders rcpt rate limiting 250 per 6 hour (1,000 per day)
warn ratelimit = 250 / 6h / leaky / per_rcpt / $sender_address
senders = ! lsearch;/usr/local/exim/tables/ratelimit_whitelist.txt
hosts = +relay_from_hosts
log_message = Local senders rcpt rate limit ( $sender_address ) exceeds $sender_rate per $sender_rate_period
# Remote IP rate limiting 10 per min (60 per hour)
warn ratelimit = 10 / 1m / strict / per_mail / $sender_host_address
senders = ! lsearch;/usr/local/exim/tables/ratelimit_whitelist.txt
hosts = !+relay_from_hosts
log_message = Remote IP message rate limit ( $sender_address_domain ) exceeds $sender_rate per $sender_rate_period
# exim !
Posté par detail_pratique . En réponse au message limiter l'émission de mail en sortie de queue (attention il y a un piège). Évalué à 2.
Genre ça ; trouvé ici :
# Local senders rcpt rate limiting 250 per 6 hour (1,000 per day)
warn ratelimit = 250 / 6h / leaky / per_rcpt / $sender_address
senders = ! lsearch;/usr/local/exim/tables/ratelimit_whitelist.txt
hosts = +relay_from_hosts
log_message = Local senders rcpt rate limit ( $sender_address ) exceeds $sender_rate per $sender_rate_period
# Remote IP rate limiting 10 per min (60 per hour)
warn ratelimit = 10 / 1m / strict / per_mail / $sender_host_address
senders = ! lsearch;/usr/local/exim/tables/ratelimit_whitelist.txt
hosts = !+relay_from_hosts
log_message = Remote IP message rate limit ( $sender_address_domain ) exceeds $sender_rate per $sender_rate_period
La doc d'Exim
http://www.exim.org/exim-html-current/doc/html/spec_html/index.html
Je pense que tu t'en sortiras sans problème : )