Martijn Brinkers wrote:
If the filter queue size is larger than 500 messages (lower level) wait
some time X in the RCPT handler of the filter and then continue
normally. If size is larger than 1000 (upper level) return 450.
Seems to me something is broken if the filter processing speed is affected by the size if the postfix queue.

I may have not be clear enough. The processing speed of the filter
depends on the size of the message. What I suggest is that I slow down
the message recipient process (add some wait time when the filter
receives RCPT from Postfix) when the queue size of the filter becomes
too large (soft-limit). Currently there is only a hard-limit.

Martijn

That would probably help, but be careful to not trigger a timeout. By default postfix waits 300s for RCPT TO response.

If you can "dynamically" adjust the wait time that would be even better - add 10 seconds at some low level, 60 seconds at some intermediate level, 270 seconds at critical level, alarm at meltdown.

but be aware you're just spraying perfume on the problem.

--
Noel Jones

Reply via email to