On Mon, Mar 4, 2013 at 8:39 AM, Robin Williams r...@attacktech.co.uk wrote:
Hoping someone can shed some light.
I want to configure an ACL to rate limit incoming emails (from localhost) on
a per receiver address basis (so localhost can only send, say, 5 emails to
specificaddr...@example.com per day).
I believe I can achieve this with a 'ratelimit' acl, something like:
warn (*eventually will be deny)
ratelimit = 5 / 1d / per_rcpt / strict / $sender_address
log_message = SENDER RATE: $sender_rate
Am I correct in this assertion? When I've tried to apply this config to my
ACL file I'm not noticing anything being logged. Could this be related to
me sending from localhost rather than another host?
Two things:
1) You put $sender_address above. You specifically said you want it
to be the recipient, so you need to use $local_part@$domain.
2) *HOW* are you sending it locally? If you're connecting to
localhost port 25 and using SMTP, then that is going to be one of the
smtp ACL's. Make sure there isn't one before your warn addition that
is blindly accepting from localhost. If you're piping to
/usr/sbin/{sendmail,exim}, then you'll need to use one of the not-smtp
ACLs.
...Todd
--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/