procmail
[Top] [All Lists]

Re: Aloha! A question about STDERR...

2001-02-12 15:21:23
Walter Dnes wrote:
Michael J Wise <mjwise(_at_)kapu(_dot_)net> wrote
 > NSLOOKUP=`nslookup ${REVERSED}.rbl.maps.vix.com 2> /dev/null`

   First of all, that's my old webpage.  I'm surprised that it hasn't
been taken down, since I did cancel that account.  I'll have to check
with the ISP. The zones listed on that page are out of date and will
not work.

Actually, they work just fine. Still. I wasn't complaining that the
message generated was indicating that the filters DIDN'T WORK, but that
the error message generated when it DIDN'T find the host listed was
annoying.   (8-)

But thanks for the tip! Updated.

The new webpage is at http://www.waltdnes.org/email/dnslists

Updated.

   The currently valid zone lookups for the various DNS lists are...

   NSLOOKUP=`nslookup ${REVERSED}.dialups.mail-abuse.org`
   NSLOOKUP=`nslookup ${REVERSED}.inputs.orbs.org`
   NSLOOKUP=`nslookup ${REVERSED}.blackholes.mail-abuse.org`
   NSLOOKUP=`nslookup ${REVERSED}.relays.mail-abuse.org`

Don't use ORBS for "Philosophical" reasons. But the others... Updated.

   Re; getting rid of the error message.  The only thing I can
think of is to turn off logging before the first lookup, and
turning it back on after the last lookup.

Ugly. That would mean doing domething like LOG= and then using
LOG=procmail.log to turn it back, yeah? But if we didn't save the name of
the log file, we're lost. Yuck.

Or is there another way to suspend logging, and then resume it with the
same file as before, I wonder? Must check....

 The logging is doing its job, i.e. noting that "nslookup" failed.

Yes, but I'd think I should have the option of telling procmail what to do
with the logging on a line by line basis. Thus the "2>" as seen above. But
it doesn't work.

This is due to the
fact that "nslookup" wasn't really intended to be used this way.

But nslookup is conforming to convention, and writing the output to the
right place, namely STDERR, while procmail is forcing it back to STDOUT.

Then again, email wasn't intended for sending spam.

        >8-(

Indeed. And I'll say it again, thanks for writing that HUGE recipe. I have
found it ... MOST effective. And BTW, here's a small addition, even though
I'm sure VERY few people still use Smail any more:

        :0E
        * TEST ?? Received: from.*\(.*\[\/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+
                { IPEXTERNAL=${MATCH} }

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
  and Usenet Registration handy..."

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>