[Smtpauth] The way of configuring qmail+vpopmail+smtp-auth 

Ismail YENIGUL smtpauth@list.elysium.pl 
Fri, 26 Apr 2002 20:10:07 +0000 

       Previous message: [Smtpauth] redirecting e-mails generated by the server 
       Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 

Hi 
I've spent two days to give smtp-auth support to qmail+vpopmail
I want to share my experience, if you want to install smtp-auth patch, 
please apply the following instructions step by step:

1- Download qmail-1.03, vpopmail 5.2 and smtp-auth patch from 
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.30.tar.gz  

2- Read the README.auth to patch qmail with smtp-auth patch
3- Compile qmail  normaly
4- Compile vpopmail as you need
5- # chmod 4755 ~vpopmail/bin/vchkpw
   # chown root.root ~vpopmail/bin/vchkpw

6- You can run qmail-smtpd from inetd or tcpserver 
   I recommend you to use tcpserver,
If you are using tcpserver, use following command to start qmail-smtpd (Note!! all of them are in a single line !)

exec /usr/local/bin/softlimit -m 4000000 tcpserver -H -l0 -R -c 512 -x /home/vpopmail/etc/tcp.smtp.cdb -u VPOPMAILUID -g VPOPMAILGUID 0 smtp /var/qmail/bin/qmail-smtpd  your.qmail.server.name /home/vpopmail/bin/vchkpw /bin/true &

change following parameters  depend of your system configuration

 -x /home/vpopmail/etc/tcp.smtp.cdb   //change this with your tcp.smtpd.cdb file path
VPOPMAILUID is your vpopmail user id
VPOPMAILGUID is your vpopmail group id
your.qmail.server.name is your fully qualified server name
/home/vpopmail/bin/vchkpw is your vchkpw file path
/bin/true is your  true command path (this is /usr/bin/true in FreeBSD)

if you do NOT add your .qmail.server.name parameter after /var/qmail/bin/qmail-smtpd , your smtp-auth gives fake authentication. It returns true for  any username and password  

if you are using inetd, add following lines to inetd.conf and send kill -HUP to inetd

smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env \
/var/qmail/bin/qmail-smtpd your.qmail.server.name /home/vpopmail/bin/vchkpw /bin/true


that's all

Regards

you can find this mail at http://www.enderunix.org/documents/en/smtp-auth/index.html
if you want to use smtp-auth patch with SPAMCONTROL patch  read 
http://www.enderunix.org/documents/en/smtp-auth/qmail_smtp_auth_SPAMCONTROL/index.html
-- Earth is a beta site Ismail YENIGUL ismail@EnderUNIX.ORG www.EnderUNIX.ORG