* Ricardo Cerqueira <[EMAIL PROTECTED]> writes:
> Open 2 backticks, close with 3 quotes, 2 escaped double-quotes and yet
> another double-quote?
Sure ;-) It's all Mirko's fault, anyway:
(root@kens):(/opt1/Qmail)$ cat open-smtp/pop3-record-alternative
From: Mirko Zeibig <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Russ Nelson's open-smtp patch
Date: Thu, 16 Sep 1999 03:12:00 +0200
[...]
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
*sigh* Sorry for the interruption... On with the show. And: THANKS to
all three of you!
--
Robin S. Socha <http://socha.net/>