Le 12/09/2010 12:08, Stan Hoeppner a écrit :
mouss put forth on 9/12/2010 3:46 AM:
=== header_checks_submission.pcre:
/^Received:\s*from\s+\S+\s+\(\S+\s+\[192\.168\.1\.\d+\]\)\s+by\s+your\.server\.example\s+\(Postfix\)/
IGNORE
Isn't this a bit heavy mouss? All he really needs to match is the
RFC1918 address, yes?
depends on his mail flow... In general, you don't want to remove headers
inserted by a "foreign" MTA. so I preferred to give a "conservative"
example which can be adjusted, rather than an example that works "too
esily" but may cause trouble...
If OP has many such headers, he should go for the "if/end" statements.
Something like should work shouldn't it?
/^Received: from .*\[10(\.\d{1,3}){3}\]/ IGNORE