Google Kreme schrieb:
On 17 Oct 2006, at 00:34 , Matthias Häker wrote:
* ^Received:.*\/[^$WS].*
{ X_RECEIVED=$MATCH
:0
* $ MATCH ?? [(]\/$DOTQUAD
{ X_SENDER_IP=$MATCH }
}
X_SENDER_IP will contain the IP
From the FIRST received line that contains an IP. That might not be
the Received line (or IP) you think it will be.
i use this recipe for some time now and with my
sendmail it is always the top most ( first) Received
line who contains the IP of the sender to my Mail Host
but if i forward the Email localy it is not
the original question was with this recipe
:0 # in brackets are a caret, a space, and a tab
* ^Received:.*\/[^ ].*
* ? echo $MATCH | fgrep -isf /tmp/relay
Maildir/
so there he was looking for the FIRST Received Line as well
Matthias
____________________________________________________________
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