From: Mirko Zeibig To: qmail@list.cr.yp.to Subject: Re: Russ Nelson's open-smtp patch Date: Thu, 16 Sep 1999 03:12:00 +0200 On Wed, Sep 15, 1999 at 01:46:34PM -0400, Russell Nelson wrote: > Michael writes: > > checkpassword.patch > > checkpassword.patch~ > > Would anyone mind explaining the patch process? (Russ :) ?) > > Unpack open-smtp3.tar.gz > Unpack checkpassword-0.81.tar.gz (found on koobera). > cd into checkpassword-0.81 > Issue the following command: patch <../open-smtp/checkpassword.patch > Make checkpassword as per usual. Here is a slightly improved script for /usr/local/bin/pop3-record: #!/bin/sh TCPDIR=/etc/tcprules.d SMTPRULES=$TCPDIR/qmail-smtpd PATH=$PATH:/usr/local/bin/ # First see if $TCPREMOTEIP is handled by existing rules tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \ grep RELAYCLIENT > /dev/null && exit 0 echo ``$TCPREMOTEIP''':allow,RELAYCLIENT=''''' >> $TCPDIR/smtp.filter.newer cat $TCPDIR/smtp.filter.* > $SMTPRULES tcprules $SMTPRULES.cdb $SMTPRULES.tmp < $SMTPRULES In /etc/tcrules.d you may include a file called smtp.filter.zintern for internal networks you always trust (chose .zintern to make sure this is read last). Regards Mirko