On Thu, 8 Oct 2009, Brian Evans - Postfix List wrote:
I will have to use the header_checks regexp directive, but how do I
ONLY
perform this check for a bounce (ie, MAIL FROM: <>) ?
You need a suitable content_filter or milter. No built-in Postfix
feature
checks for the absence of a header, let alone conditions such a check
on the envelope sender address.
I was trying to do something like the following in header_checks
if /^From:.*<>/
!/^X-SEF/ REJECT
endif
The above if is invalid.
You cannot check two different headers at the same time.
Postfix inspects headers one at a time.
In addition, the From header does not mean it will match MAIL FROM.
I know it's invalid, as it's not working :-)
Ok, it was correctly matching 'MAIL FROM: <>' at one point, but couldn't
get it to act upon that result. I guess that's why!
Are you able to point towards some docs as to how I can achieve what I
need, to search for existence of a particular header
Thanks
Duncan