On Mon, 22 Nov 2004 13:34:31 -0800, Tom Collins wrote: > On Nov 22, 2004, at 12:01 PM, Steve wrote: >> Please could someone tell me exactly what is the use of the >> disable_smtp & no_smtp gid flag ? I ask that because I use qmail >> + vpopmail (5.4.7) + smtp-auth, and the above settings don't have >> any effect when I connect with an authenticated user to my smtp >> server... I can still send emails even with the "no_smtp" bit >> flag set. >> > > It's supposed to work. > > If you look at the user with vuserinfo, does it show the flag set? > > Are you running on a port other than 25 (such that vchkpw might not > know it's being used for SMTP AUTH)? >
Yes, vuserinfo does show the right flag set, nothing wrong with that. The server runs on standard port 25. I have used the patch from http://www.mcmilk.de/qmail/ , perhaps does it cause some incompatibility with vchkpw ?? Or do I need to specify a special env. variable in my startup script ? So if I understand well, in my case vchkpw cannot retrieve the TCPLOCALPORT env. variable from tcpserver, am I right ? I give you my startup script for the SMTP server, perhaps you could find something buggy ! #!/bin/sh # # chkconfig: 345 80 30 # description: SMTP # Qmail smtp Startup # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting: " env - PATH="/var/qmail/bin:/usr/local/bin" \ /var/qmail/bin/qmail-start ./Maildir/ | /usr/local/bin/tai64n \ | /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog s1000000 n20 /var/log/qmail & echo "Qmail running ( Pid : "$! " )" env - PATH="/var/qmail/bin:/usr/local/bin" \ tcpserver -v -H -R -x /etc/tcp.smtp.cdb -c70 -u 89 -g 89 0 smtp \ /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1 | /usr/local/bin/multilog t \ '-*S: 250-*' '-*S: 250 8BIT*' '-*tcpserver: status: 0*' '-*tcpserver: ok*' '+*S: 250-tesaweb2*' s1000000 n20 /var/log/smtpd & pidsmtp=`ps -aefww | egrep "(tcpserver)+.+(smtp)" | grep -v grep | awk '{print $2}'` echo $pidsmtp > /var/run/smtp.pid echo "SMTP running ( Pid : "$pidsmtp " )" echo OK ;; stop) echo "Stopping Qmail SMTP server" killproc qmail-send kill `cat /var/run/smtp.pid` rm -f /var/run/smtp.pid echo Stopped ;; restart) $0 stop $0 start ;; status) status qmail-send echo -n "Pid of SMTP server : " echo `cat /var/run/smtp.pid` ;; *) echo "Usage: qmail {start|stop|restart|status}" exit 1 esac exit 0 Thank you very much for your help ! Cordially, Steve