I know, I know, it's offtopic since it'S not entirely postfix per se,
but I am at my wit's end here.

I'm trying to implement a (I think) simple ratelimiting feature:

* during our business hours 400 Mails per sender from internat host
* otherwise 100

Some of my limits work, others don't trigger at all:

id=mass_mailing_exceptions
   &&EXCHANGE
   sender==file:/etc/postfix/mass_mailing_absolute_exceptions
   action=dunno
# these are exceptions for high volume senders. Working OK!

# Arbeitszeit
id=mass_mailing_business_hours
   days=Mon-Fri
   time=09:00:00-17:00:00
   &&EXCHANGE
  action=rcpt(sender/400/43200/450 4.7.1 Recipient limit exceeded)
# Monday to friday, 9 to 5, working as it should

id=mass_mailing_feierabend
   time=17:00:01-23:59:59
   time=00:00:00-08:59:59
   days=Mon-Fri
   &&EXCHANGE
   action=rcpt(sender/100/43200/450 4.7.1 Recipient limit exceeded)
# This is also working, but I feel stupid using these two definitions
# for the periods before and after work!!              

# sonst
id=mass_mailing_wochenende
   time=00:00:00-23:59:59
   days=Sat-Sun
   &&EXCHANGE
   action=rcpt(sender/100/43200/450 4.7.1 Recipient limit exceeded)

# Alas, this is not triggering at all. Dunno why!


-- 
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München
                                           
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Reply via email to