Exim Ratelimit

hci

Verified User
Joined
Jun 15, 2004
Messages
355
I have some email users still using popb4smtp for email relaying. Due to compromised email passwords I have implemented daily email limits on email users.

http://www.directadmin.com/features.php?id=1373

I would like to set a very low email limit for users still using the popb4smtp feature to encourage them to move to smtp authentication on port 587. I am sure I can do this somehow with exim but not sure how.

http://www.exim.org/exim-html-curre...ch-access_control_lists.html#SECTratelimiting

Does anyone know how to limit an IP to 10 non local recipients per hour if not using smtp authentication?

# Slow down fast senders; note the need to truncate $sender_rate
# at the decimal point.
warn ratelimit = 100 / 1h / per_rcpt / strict
delay = ${eval: ${sg{$sender_rate}{[.].*}{}} - $sender_rate_limit }s

Something like above to not block but slow down.
 
Back
Top