procmail
[Top] [All Lists]

FINDING RELAY IP

2002-07-06 12:36:36

    Running sendmail 8.8.8 Linux 2.0.38 procmail 3.21

    In the following procmailrc is there an easy way for the
perl script called 'spam' to know the IP number of the
mail server sending the e-mail message (relay IP) without
having to scan headers for it?

     Pointers to documentation are encouraged and welcome.

     Thanks  Homer

MAILDIR = /var/log/spam
PMDIR   = /var/log/spam
LOGFILE = /var/log/spam/log

:0 hw
WHERETO=|/var/log/spam/spam

:0
* WHERETO ?? ^^tag
{
   :0 fhw
   * ^Subject: \/.*
   |/usr/local/bin/formail -i"Subject: [SPAM] $MATCH"
}


------------------------------------------------------------------------
Homer Wilson Smith     I would rather die poor    Lightlink Internet
(607) 277-0959 KC2ITF  than suffer the patronage  Ithaca, NY
homer(_at_)lightlink(_dot_)com    of bigots and pinheads.    www.lightlink.com

_______________________________________________
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>