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

Mailing List Archive: exim: users

ratelimit question

 

 

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


v.tolstov at selfip

Nov 18, 2009, 12:10 AM

Post #1 of 3 (603 views)
Permalink
ratelimit question

Hello. I'm using exim to ratelimit local not_smtp messages in this acl:

acl_check_not_smtp:
deny ratelimit = 2000 / 1h / strict / $sender_ident
message = You can only send $sender_rate_limit per
$sender_rate_period
log_message = "RATE: $sender_rate/$sender_rate_period (max
$sender_rate_limit) $sender_ident"

To check this acl i wrote test case:

for x in `echo {1..2000}`;do echo test | /usr/sbin/sendmail -v
fg3758937453749573897539dlgdkfjgkldfjgkldjgkldjglkdjgkljfklgjdklgjdkljkgldjgldjgkljfdlfdgdfgdfgd [at] ya; done

(address not exists - this is right).

After some time i get error says that my ratelimit exceded. 3680 of
2000. How can this do? May be exim counting bounces?
I'm not completely understand, why i can't send 2000 messages..
Please help me...


--
Vasiliy G Tolstov <v.tolstov [at] selfip>
Selfip.Ru


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


dean at iglou

Nov 18, 2009, 4:32 PM

Post #2 of 3 (558 views)
Permalink
Re: ratelimit question [In reply to]

On Wed, Nov 18, 2009 at 11:10:47AM +0300, Vasiliy G Tolstov wrote:
> Hello. I'm using exim to ratelimit local not_smtp messages in this acl:
>
> After some time i get error says that my ratelimit exceded. 3680 of
> 2000. How can this do? May be exim counting bounces?
> I'm not completely understand, why i can't send 2000 messages..

If I recall, bounces are indeed re-injected automatically by Exim
as a local message. You'll need to modify your ACL to:

acl_check_not_smtp:
deny ! senders = :
ratelimit = 2000 / 1h / strict / $sender_ident
message = You can only send $sender_rate_limit per $sender_rate_period
log_message = "RATE: $sender_rate/$sender_rate_period (max
$sender_rate_limit) $sender_ident"

--
Dean Brooks
dean [at] iglou

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


v.tolstov at selfip

Nov 18, 2009, 11:39 PM

Post #3 of 3 (553 views)
Permalink
Re: ratelimit question [In reply to]

В Срд, 18/11/2009 в 19:32 -0500, Dean Brooks пишет:
> On Wed, Nov 18, 2009 at 11:10:47AM +0300, Vasiliy G Tolstov wrote:
> > Hello. I'm using exim to ratelimit local not_smtp messages in this acl:
> >
> > After some time i get error says that my ratelimit exceded. 3680 of
> > 2000. How can this do? May be exim counting bounces?
> > I'm not completely understand, why i can't send 2000 messages..
>
> If I recall, bounces are indeed re-injected automatically by Exim
> as a local message. You'll need to modify your ACL to:
>
> acl_check_not_smtp:
> deny ! senders = :
> ratelimit = 2000 / 1h / strict / $sender_ident
> message = You can only send $sender_rate_limit per $sender_rate_period
> log_message = "RATE: $sender_rate/$sender_rate_period (max
> $sender_rate_limit) $sender_ident"
>
> --
> Dean Brooks
> dean [at] iglou
>


Hmm.. I missed that. Thank's!
--
Vasiliy G Tolstov <v.tolstov [at] selfip>
Selfip.Ru


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