[exim] ACL question

Góra strony
Delete this message
Reply to this message
Autor: Jean Respen
Data:  
Dla: Exim-users
Temat: [exim] ACL question
Hello all,

I've a question, I'm trying to set an acl (for acl_not_smtp) to do two things:

1. Check if a user is in a file, if it is the case it means that the
user is blacklisted and he should not be able to send
2. limite the rate at which a user can send

I did the following:

acl_rate:
        discard
                condition  = ${lookup{$authenticated_sender}lsearch\
                  {CONFDIR/list_users_blacklisted}{$value}fail}
                ratelimit = 15 / 1m / per_mail / $authenticated_sender
                log_message = Rate limit exceeded for
$authenticated_sender: $sender_rate/$sender_rate_period (max
$sender_rate_limit) or sender is blacklisted
        accept


It does work for the ratelimit which limits to 15 mails per minute.
But the first condition is never used, can you help me with that?

Thanks a lot,

Cheers,


--
Jean