On Mon, Mar 30, 2015 at 08:12:38AM -0500, Randy Saeks wrote:
> 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 

Try /^Received:\s+from\s+foo\.domain\b/ ...

Paul.

-- 
Paul Hoffman <p...@flo.org>
Systems Librarian
Fenway Libraries Online
c/o Wentworth Institute of Technology
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384 (FLO main number)

Reply via email to