This is the first time I post on this forum, but since I have found a few leads on my problem I am hoping that I will find a solution.
I think what I want to do is very simple.
I have a web server running exim4 and I want to limit the total amount of mail that exim can send.
I have added the following acl definitions to the main config file:
acl_check_not_smtp:
warn ratelimit = 0 / 1h / strict / $sender_address_local_part
log_message = Sender rate $sender_rate / $sender_rate_period
acl_not_smtp:
deny message = Sender rate overlimit - $sender_rate / $sender_rate_period
ratelimit = 1 / 30m / strict
#System-wide rate limit
defer message = Sorry, too busy right now.
ratelimit = 10 / 1h / $primary_hostname
accept
But as soon as I add acl_not_smtp = acl_not_smtp I get the following error:
Stopping MTA for restart:2014-11-13 22:12:47 Exim configuration error in line 433 of /var/lib/exim4/config.autogenerated.tmp:
error in ACL: unknown ACL condition/modifier in "acl_not_smtp = acl_not_smtp"
I have read and searched but something is eluding me, your help will be greatly appreciated.
Thanks