On Thu, Feb 10, 2000 at 04:32:59AM +0000, Robert Sanderson wrote:
> Try adding:
>
> /usr/local/bin/setlock -nx Maildir/.poplock
I extended this idea a little for my site, to allow per-ip limits.
Suppose I only want to allow up to 3 connections from 1.2.3.4, I make a
wrapper around qmail-smtpd, which sequentially attempts to lock:
1.2.3.4.1
1.2.3.4.2
1.2.3.4.3
If any of them succeeds, the qmail-smtpd is allowed. Otherwise, it means
that there are already 3 sessions from 1.2.3.4, and the wrapper prints:
421 too many sessions
And exits. I had posted my shell scripts to the list a couple on months
ago. If anyone's interested, they can search the archives.
--
See complete headers for more info