* James T. Perry <[EMAIL PROTECTED]> [001108 12:03]:
> It seems like the script called pop3-record is missing
> back-slashes to escape double quotes.
> (actually, it contains no double quotes ;)
> 
>   #!/bin/sh
>   echo "$TCPREMOTEIP:allow,RELAYCLIENT=//" >>/etc/smtp.filter.newer
>   cat /etc/smtp.filter.* | /usr/blah/blah...
> 
> The above should read RELAYCLIENT=\"\""
> You also may need
>   echo -e
> depending on the shell.

Not really. And my users are about to kill me, too ;-)

(root@purgatory):(~)# fetchmail -vvvv
fetchmail: 5.3.8 querying kens.com (protocol POP3) at Wed, 08 Nov 2000
19:47:42 +0100 (CET)
fetchmail: POP3< +OK <[EMAIL PROTECTED]>
fetchmail: POP3> USER rsocha
fetchmail: POP3< +OK 
fetchmail: POP3> PASS *
fetchmail: POP3< /usr/local/bin/pop3-record: 1: Syntax error:
Unterminated quoted string
fetchmail: Unknown login or authentication error on [EMAIL PROTECTED]
fetchmail: POP3> QUIT
fetchmail: POP3< +OK 
fetchmail: client/server protocol error while fetching from kens.com
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Query status=4 (PROTOCOL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 4
fetchmail: Deleting fetchids file.

(root@kens):(/etc/tcprules.d)$ cat /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

HELP!!!1 }:->

Reply via email to