Re: Header_Checks non-exsiting field check

2017-09-15 Thread Wietse Venema
Robby Van Mieghem: > Can there be more lines after the if .. endif Yes. Please RTFM: http://www.postfix.org/header_checks.5.html Wietse > meaning I have 3 other checks to do ( not conditional ) , just a check if a > field contains spec word 1, word2 or 3, depending on that FILTER smtp : > >

Re: Header_Checks non-exsiting field check

2017-09-14 Thread Robby Van Mieghem
Can there be more lines after the if .. endif meaning I have 3 other checks to do ( not conditional ) , just a check if a field contains spec word 1, word2 or 3, depending on that FILTER smtp : so if /^X-MS-Exchange-CrossTenant-id:/ !/^X-MS-Exchange-CrossTenant-id: / REJECT TenantID-InCorrec

Re: Header_Checks non-exsiting field check

2017-09-14 Thread Noel Jones
On 9/14/2017 7:18 AM, Robby Van Mieghem wrote: > OK tx > > Small other questions. Seems not to works also : assuming tenantid = > > > I have one line in header checks > > !/^X-MS-Exchange-CrossTenant-id: / REJECT Tenant-ID In-Correct > > So I want a reject whenever the X--Cross

Re: Header_Checks non-exsiting field check

2017-09-14 Thread Robby Van Mieghem
OK tx Small other questions. Seems not to works also : assuming tenantid = I have one line in header checks !/^X-MS-Exchange-CrossTenant-id: / REJECT Tenant-ID In-Correct So I want a reject whenever the X--CrossTenantID is not ... He seems to ignire th '!' How can I say c

Re: Header_Checks non-exsiting field check

2017-09-13 Thread Noel Jones
On 9/13/2017 9:02 AM, Robby Van Mieghem wrote: > Hi > > is there a way with header_checks to check if a field does not exist ? > > We want to reject mails that do not include the field > X-MS-Exchange-CrossTenant-id No, header_checks cannot check for a missing header. It examines each header in

Header_Checks non-exsiting field check

2017-09-13 Thread Robby Van Mieghem
Hi is there a way with header_checks to check if a field does not exist ? We want to reject mails that do not include the field X-MS-Exchange-CrossTenant-id But unable to find it ... Any hekp pls tx R