Russ Nelson's open-smtp patch
Can anyone explain how to install Russ Nelson's open-smtp patch for qmail? I am interested in patching my qmail installation to allow relaying for POP3 authenticated users. I have downloaded the code, but the README just says to patch checkpassword, but I am unfamilar with patching programs. Additionally, there are 2 checkpassword.patch files in the tar: checkpassword.patch checkpassword.patch~ Would anyone mind explaining the patch process? (Russ :) ?) Thanks, Michael Lundberg
RE: Russ Nelson's open-smtp patch
Vince Vielhaber [mailto:[EMAIL PROTECTED]] wrote: An easier way than patching is to use David Harris' smtp-poplock. I just installed it here and it looks like it's gonna work so I can do the last step in the installation :) http://www.davideous.com/smtp-poplock/ The main advantage of smtp-poplock is that you don't have to patch any of the programs, and it can work with any of the checkpassword variants. There had been some lingering problems with the checkpassword authentication logging tie in, but they were solved in the latest release. There are two tie ins, basically. First to log the POP3 authentication, you just insert lobpopauth-pre and logpopauth-post before and after checkpassword in the (tcpserver or inetd.con) chain of commands. For the second tie in, you just add "relaylock" before qmail-smtpd in your (tcpserver) chain of commands. The "relaylock" program simply sets the RELAYCLIENT environment variable if that host has authenticated with POP3, allowing them to relay mail. - David Harris Principal Engineer, DRH Internet Services
Re: Russ Nelson's open-smtp patch
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