procmail
[Top] [All Lists]

Re: formail recipe that queries asn.routeviews.org

2014-10-21 15:52:45
On Tue, 2014-10-21 at 20:40 +0200, Mathias Bauer wrote:
* Chris wrote on Mon, 20 Oct 2014, at 21:00 (-0500):

RAW_ASN=`host -W 6 -R 10 -t txt $REVERSE_SENDERIP.asn.routeviews.org |
sed -e 's/.* text //' -e 's/"//g'`

ASN = `echo $RAW_ASN | cut -d ' ' -f 1`

[...]

The problem I'm having is that in my procmaillog I'm seeing
this periodically:

host: '.asn.routeviews.org' is not a legal name (empty label)

The variable REVERSE_SENDERIP is empty.  As it is not a procmail
internal variable you may have a look where its values originate
from.

ASN= From cpollock(_at_)embarqmail(_dot_)com  Mon Oct 20 11:41:44 2014
 Subject: Cron <chris@localhost> fetchmail
--quit; /usr/local/bin/fetchmail -v
  Folder: /home/chris/Maildir/new/1413823304.2785_1.localhost

Regards,
Mathias

Thank you Mathias, I'll take a look and see what I can figure out.

Chris


-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11°N 97.89°W (Elev. 1092 ft)
15:48:11 up 20:20, 1 user, load average: 0.21, 0.38, 0.38
Ubuntu 14.04.1 LTS, kernel 3.13.0-38-generic

Attachment: signature.asc
Description: This is a digitally signed message part

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail