Hello Emmanuel,
Thanks a lot for your advice! It indeed worked. The rules are now:
ratelimit "virtualmin_limit_local" rcpt 3 / 10m key "%f"
racl greylist addr 127.0.0.1 ratelimit "virtualmin_limit_local" delay 11m autowhite 0m msg "Message quota exceeded"
ratelimit "virtualmin_limit" rcpt 3 / 10m key "%i"
racl greylist not addr 127.0.0.1 ratelimit "virtualmin_limit" delay 11m autowhite 0m msg "Message quota exceeded"
racl whitelist default
I think it should be fine like this.
I will try to read a little more and invent some way of automated outgoing spam checking and blacklisting.
Thanks again!
Georgi
On Tue, Apr 22, 2014 at 9:47 PM, Emmanuel Dreyfus <manu@...> wrote:
On Tue, Apr 22, 2014 at 12:14:39PM +0300, Georgi Petrov wrote:have a not addr 127.0.0.1 clause in the second ACL, or add a
> 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.
"racl whitelist addr 127.0.0.1" between the two ACLs.Define two ratelimit and use two ACL, that makesa OR.
> 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?
--
Emmanuel Dreyfus
manu@...