Mailing List Archive

Recipient Ratelimit
I am attempting to setup ratelimit based on recipient. I am unable to
limit the number of emails sent to a specific recipient. This is the
configuration I am using
(/etc/exim4/conf.d/acl/10_exim4-config_smtp_rcpt):

acl_smtp_rcpt:

defer
ratelimit = 2 / 1h / $recipients
message = Rate limit exceeded for $recipients $sender_rate/$sender_rate_period
recipients =mytest@mydomain.com
log_message = Ratelimit: $recipients rate limit / $sender_rate_period DEFFERED

This is the email command I am using on the localhost of the exim server:
mailx -S smtp=172.18.1.35 -r dev@mydomain.com -s Test -v
mytest@mydomain.com < body.txt

Let me know if you have any thoughts or suggestions.

Rich

--
## 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/
Re: Recipient Ratelimit [ In reply to ]
On 28/03/18 15:37, Richard Anderson via Exim-users wrote:
> I am attempting to setup ratelimit based on recipient. I am unable to
> limit the number of emails sent to a specific recipient. This is the
> configuration I am using
> (/etc/exim4/conf.d/acl/10_exim4-config_smtp_rcpt):
>
> acl_smtp_rcpt:
>
> defer
> ratelimit = 2 / 1h / $recipients

Read the docs on $recipients.
You perhaps should use $local_part@$domain

Also think hard about your test method. Will it
result in that ACL being relevant?
--
Cheers,
Jeremy

--
## 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/