OK tx Small other questions. Seems not to works also : assuming tenantid = 8888
I have one line in header checks !/^X-MS-Exchange-CrossTenant-id: 8888/ REJECT Tenant-ID In-Correct So I want a reject whenever the X-********-CrossTenantID is not 8888 ... He seems to ignire th '!' How can I say conditionally if it does not match do that ... Or can I use only : if /^X-MS-Exchange-CrossTenant-id:/ !/^X-MS-Exchange-CrossTenant-id: 8888/ REJECT TenantID-InCorrect /X-MS-Exchange-CrossTenant-id: 8888/ WARN Allowing mail Tenant-ID Correct endif 2017-09-13 18:01 GMT+02:00 Noel Jones <njo...@megan.vbhcs.org>: > 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 individually with no knowledge of other headers. > > You'll need to use a milter or content_filter to check for missing > headers. > > > > -- Noel Jones >