Run it with the vpopmail user/group permissions instead of root. I use "-u
vpopmail -g vchkpw".
You need to change the permissions so it can poke around in the vpopmail
domains, and qmaild doesn't have permissions to do that.
----- Original Message -----
From: "Tom Walsh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 4:39 PM
Subject: [vchkpw] qmail-smtpd-chkusr Patch Problem
> I have patched my qmail to use the qmail-smtpd-chkusr functionality (on
> to: check to see if a user exists on the mail server and if the user
> send a 550).
> I have tested the functionality of qmail-smtpd (compiled with this patch
> a couple others) and it works when I run it from the command line.
> My problem is when I run it from the tcpserver/supervise script the
> functionality doesn't work.
> I have managed to get it working by altering the -u and -g on the
> command line to be root. When I do that it works flawlessly. It also works
> if I set the uid to root and set the gid to qmaild.
> My question (and I suppose directed at tonix):
> How can I get this to run with the proper user and group permissions of
> Here are some of the details of my installation.
> /usr/bin/id -g qmaild
> cat /etc/group |grep 81
> export PATH
> #QMAILUID=`/usr/bin/id -u qmaild`
> NOFILESGID=`/usr/bin/id -g qmaild`
> exec softlimit -m 8000000 tcpserver -v -c 384 -p -R -x
> /usr/home/vpopmail/etc/tcp.smtp.cdb -u $QMAILUID -g $NOFILESGID 0 25
> rblsmtpd -b -r relays.osirusoft.com -r relays.ordb.org fixcrio qmail-smtpd
> mail.ala.net /usr/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
> permissions on qmail-smtpd:
> -rwxr-xr-x 1 root qmail 128528 Jun 5 16:26 qmail-smtpd
> I am assuming it has something to do with the setuid that the patch does,
> but I am unsure.
> Any pointers?
> Tom Walsh
> Network Admin