Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Ratelimit User per_rcpt

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


hansklose at gmx

Aug 14, 2009, 1:42 AM

Post #1 of 1 (469 views)
Permalink
Ratelimit User per_rcpt

Hi i want to ratelimit some of our Users. I want that they only can send mails to 20
recipients total in one hour. So they can 20 single mails or 2 mail with 10 recipients.
I have a perl function wich make a LDAP lookup for a specific value and if it is not set
the ratlimit should be done for that user and the function returns "false". This is working.
When i delete the ratelimit the user can't send an i see the message in the log.

I tried this configuration but it seems to do nothing.

########################################

acl_smtp_predata = check_max_recients

check_max_recients:

deny condition = ${if eq{${perl{ldap_check_ratelimit}{$sender_address}}}{false}{yes}{no}}
ratelimit = 20 / 1h / per_rcpt / $sender_address
message = RATELIMIT EXCEEDED $sender_rate / $sender_rate_period!


########################################

What is wrong with my configuration?

Regards
Hans
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

--
## List details at http://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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.