On 6 Jun 2017, at 3:20, rolelael wrote:

I understand , but ..

/^route_gcgw: BE/  WARN Test

is triggered now.....

And is there any way with header_checks I can accomplish my if .. end if
somehow .

No. The utility of the 'if...endif' construct in header_checks is that it lets you optimize performance and protect special cases from broad generic rules. For example, I reject very long Subject headers except for one special-needs sender who helpfully uses their name in their Subjects:

# eBay uses very long Subject lines. Everyone else gets berated & rejected
if !/^Subject: .* eBay /i
/^Subject: (.{250,})$/ REJECT 5.7.1 Subjects should be short not long like "$1"
endif


Or is it really limited and not suitable for what I'm looking to do ?

Yes. The documentation is accurate.

All forms of header_checks and body_checks operate on exactly one line of text at a time in total isolation from all other lines of the message.

Reply via email to