Right now I run inetd for qmail-smtpd and qmail-pop3d with hosts.allow for smtp relay controlling. All the stuff I have read says to move to tcpserver, but I have some questions. 1. When tcpserver is setup, do I remove the hosts.allow RELAYCLIENT line, or is it ignored? 2. Does the /var/qmail/users/cdb have anything to do with the /home/vpopmail/etc/tcp.smtp.cdb? 3. Once pop and smtp are handled by tcpserver, how do I control access to Courier-IMAP? 4. Many people have posted problems with tcpserver setup. I am trying to make sense of it, and make it simple, and make a how-to. Are these the correct steps for smtp and pop3 with qmail+vpopmail? Why don't the setup instructions cover this better? ######################## # 1. Install tcpserver # gunzip ucspi-tcp-0.88.tar tar -xf ucspi-tcp-0.88.tar cd ucspi-tcp-0.88 make su make setup check ########################## # 2. Make the rules file # cat <<- EOT >> /home/vpopmail/etc/tcp.smtp.txt 127.0.0.1:allow,RELAYCLIENT="" # local can relay 192.168.:allow,RELAYCLIENT="" # private net can relay netzero.com:allow,RELAYCLIENT="" # netzero.com can relay [EMAIL PROTECTED]:allow,RELAYCLIENT="" # mail from jstile can relay :deny # deny all others EOT ############################################ # 3. Make the database, fix perms, checkit # cat /etc/tcp.smtp | tcprules /home/vpopmail/etc/.smtp.cdb /home/vpopmail/etc/tcp.smtp.txt chmod 644 /home/vpopmail/etc/.smtp.cdb tcprulescheck /home/vpopmail/etc/.smtp.cdb ############################################# # 4. Make the smtp startup script for linux # # my qmaild uid=508, gid=509 cat <<- EOT >> /etc/rc.d/init.d/smtp #!/bin/sh env - PATH="/var/qmail/bin:/usr/local/bin" \ tcpserver -H -R \ -x /home/vpopmail/etc/tcp.smtp.cdb \ -v -u 509 -g 508 0 \ smtp \ /var/qmail/bin/qmail-smtpd \ 2>&1 | /var/qmail/bin/splogger smtpd 3 & exit 0 EOT chmod 700 /etc/rc.d/init.d/smtp ########################################## # 5. make the pop3 startup script for linux # cat <<- EOT >> /etc/rc.d/init.d/pop3 #!/bin/sh env - PATH="/var/qmail/bin:/usr/local/bin" \ tcpserver -H -R 0 pop3 \ /var/qmail/bin/qmail-popup \ stilen.com \ /home/vpopmail/bin/vchkpw \ /var/qmail/bin/qmail-pop3d Maildir \ /var/qmail/bin/splogger pop3d & exit 0 EOT chmod 700 /etc/rc.d/init.d/pop3 ############################################ # 6. comment out lines from inetd, and HUP-it # sed 's/^pop/#pop/' /etc/inetd.conf > /tmp/inetd.conf sed 's/^smtp/#smtp/' /tmp/inetd.conf > /etc/inetd.conf ##########################################3 # 7. startup tcpserver /etc/rc.d/init.d/smtp /etc/rc.d/init.d/pop3