Re: checkcdb-0.53 + single pop user setup
Chris Johnson <[email protected]> Mon, 2 Dec 2002 14:57:37 -0500
| Newsgroups | gmane.comp.djb.checkpassword,gmane.comp.djb.cdb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Dec 02, 2002 at 09:28:01PM +0200, [email protected] wrote: > It works perfectly now, after removing the -u and -g tcpserver args. > > ---- <snip:/service/qmail-pop3d/run> ---- > exec softlimit -m 2000000 tcpserver -v -R -H -l 0 -x \ > /etc/tcprules/pop3.cdb -c "$MAXPOP3" 0 110 /var/qmail/bin/qmail-popup \ > localhost /usr/bin/checkcdb /var/qmail/bin/qmail-pop3d inbox 2>&1 > ---- </snip:/service/qmail-pop3d/run> ---- > > I was misled by Paul Gregg's qmail-single-uid-pop3d-howto.html which > uses the -u and -g switch for tcpserver, but I see in checkcdb.c that it > switches to the uid specified in poppasswd (actually poppasswd.cdb), > which as you pointed out requires qmail-popup/checkcdb to run as root. I guess since he runs all of his POP accounts with a single uid, he doesn't need to worry about switching uids. checkcdb lets you have real as well as virtual users with as many different uids as you like. Chris