procmail
[Top] [All Lists]

howto make shure to get the right Received header

2005-07-28 00:08:48
Hallo

to prevent varius procmail check on email 
originating from local host or beeing already 
checked and resend by a receipe with a action line like 
!target what results in  "sendmail -oi target" 

i use

:0
* $ ^Received:[$WS]*[^$WS]from[$WS]\/[^$WS]*
* $ MATCH ?? [\(_at_)]\/.*[^\)]
* $ MATCH ?? localhost
{ X_IS_LOCAL=$TRUE }

:0
* $ X_IS_LOCAL ?? !$TRUE
{
INCLUDERC=/etc/admin/procmail/black.rc
 [some more code]
}

but i am afraid that a external email 
containing already a "Received:" header with 
@local got detected as originating from local.

a additional custom header field like X-Loop: can be faked , or ? 

what is a save way to proof only  the top  Received:

or howto prevent local loops / check's other than with X-Loop: 
or howto make shure procmail know / dont know this email already
in a way who cant be forced from a malicius email with false headers

i have to use in some receipe the !target action
because the procmail receipe is generated with a webinterface
who use !target to forward the email to a other inbox 
and i have no other alternativ on that level to do that.  

"target" is a example for a inbox name 

the above code is in my /etc/procmail who got used 
every time "sendmail -oi !target" forwards the message 
 

Matthias Haeker
***************




____________________________________________________________
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