Looks pretty good. I would send the output of tcpserver into
multilog, not splogger/syslog.
Ken Jones
John Stile wrote:
>
> Do I have all the steps here?
> I am mainly worried about the syntax of steps 4 and 5 (startup scripts
> syntax).
> ########################
> # 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