Try adding:
/usr/local/bin/setlock -nx Maildir/.poplock
between checkpassword and qmail-pop3d in your tcpserver command line. For example:
tcpserver 0 pop-3 qmail-popup your.mail.host /bin/checkpassword /usr/local/bin/setlock
-nx Maildir/.poplock
qmail-pop3d Maildir &
This will limit each POP3 user to only one session at a time.
Marek Narkiewicz wrote:
> I'm sorry if I haven't made myself clear on this occasion.
> I meant that I wish to limit spawnings per remote ip eg if a remote machine is
>logged in to the popserver they
> cannot log in a second time
>
> On Wed, 9 Feb 2000 21:30:08 -0600 (CST), [EMAIL PROTECTED] wrote:
> >Here's what I would do.
> >
> >I'd run a different process on each IP...in bash pseudocode:
> >
> >for i in $(ifconfig | perl -ne '/inet addr:\d+(\.\d+){3}/ && print "$1 "'); do
> > tcpserver opts $i port proggie
> >done
> >
> >I'm sure there are some sed/awk gurus that can run that command a whole
> >lot faster than my 4Mb perl interpreter, but it's quick and dirty, and
> >will grab all of your IPs (including IP aliases).
> >
> >Then you make sure to set concurrency on each tcpserver process.
> >
> >Ain't these tools wonderful?!
> >
> >-Martin
> >
> >--
> >Martin A. Brown --- Wonderfrog Enterprises --- [EMAIL PROTECTED]
> >
> >On Tue, 8 Feb 2000, Marek Narkiewicz wrote:
> >
> >:I am aware of that fact as I have read the man page. But I appreciate the effort.
>:-)
> >:Oh and I am subscribed so I don't need you to add me to the to: list.
> >:
> >:On Wed, 09 Feb 2000 15:44:26 -0500, [EMAIL PROTECTED] wrote:
> >:>> Would it be possible to lmit the number of spawns that
> >:>> tcpserver can make from one ip address concurrently to
> >:>> preven one ip spawning up to the limit of concurrent daemons
> >:>> and denying access to that daemon? I can't think
> >:>> of a way to do it from what i've read of the docs but it
> >:>
> >:>I don't know about the "one-ip" part, but tcpserver DOES
> >:>have a limit on the number of concurrent processes. I
> >:>think it's the "-c" switch. `man tcpserver` is quite
> >:>informative.
> >:>
> >:>
> >:>~Patrick
> >:--
> >:Marek Narkiewicz, Systems Director WelshDragon ltd
> >:[EMAIL PROTECTED]
> >:02/08/2000 at 23:22:36
> >:
> >:
> --
> Marek Narkiewicz, Systems Director WelshDragon ltd
> [EMAIL PROTECTED]
> 02/09/2000 at 03:48:41
--
Robert Sanderson <[EMAIL PROTECTED]>
http://www.ETRN.com