Hello, 

I have been working to create a pcre-based filter for a header containing a 
certain hostname string for our postfix system. I've been able to create a 
header filter that matches correctly based on the sender address to make sure 
the config file is being picked up and it is. I'm running into trouble getting 
the Received: filter to properly kick in and am hoping I may be able to get 
some help here. 

The header I am looking to filter is is: 

Received: from foo.domain 

foo.domain represents a specific host and domain combo and after the name there 
typically are other characters including the IP address. Those don't matter in 
the filter. In my header filter config I'm using the following filter: 

/^Received:from foo.domain/ WARN smtp test #spam rule SMTP test 

The message is not being tagged / identified. When I change this to reflect 
From:someuser@domain the filter does trigger so I'm guessing there is something 
simple with the syntax I am missing. 

Would anyone have some tips on something else to try to help? Thank you very 
much! 


Randy Saeks 
District Network Manager 
Glencoe School District 35 
twitter: @rsaeks 

Reply via email to