On Tue, Apr 22, 2014 at 12:14:39PM +0300, Georgi Petrov wrote: > The first rate limit rule works fine (the emails indeed come from > 127.0.0.1). The problem is that the local emails also hit the second > ruleset and eventually 127.0.0.1 gets greylisted if the combined amount of > local emails is over the limit. The second ruleset should work for > everything except 127.0.0.1 but I didn't find a way to invert the logic > there. have a not addr 127.0.0.1 clause in the second ACL, or add a "racl whitelist addr 127.0.0.1" between the two ACLs. > ratelimit "virtualmin_limit_local" rcpt 3 / 10m key "%f%i" > > is the logic AND or is it OR? From what I see it is just string comparison > so the logic is AND. Is there a way to achieve logic OR? For example either > the first value is the same or the second? The key value, can it take > regular expression? Define two ratelimit and use two ACL, that makesa OR. -- Emmanuel Dreyfus manu@...
Message
Re: [milter-greylist] Basic rate limit filter
2014-04-22 by Emmanuel Dreyfus
Attachments
- No local attachments were found for this message.