cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Domain Exception in Message Filter

338
Views
0
Helpful
0
Comments

Question

We are using one message filter to block incoming emails that contains macros files. We required to provide an exception to one entire domain (abc@XYZ.com) from following message filter.

==================================

Macros-Filter: if (attachment-filename == "(?i)\\.(xls|doc|ppt|docm)$") AND (((attachment-binary-contains("[Vv][Bb][Aa]")) OR (attachment-filename ==
"(?i)\\.(xlsm|potm|ppsm|sldm|ppam|pptm|docm|dotm|xltm|xlsm)$")) AND (NOT (sendergroup == "RELAYLIST"))) {
edit-header-text("Subject", "^", "NOTICE! [May Contain a Macros file]");
duplicate-quarantine("Policy");
bcc ("test_email_ID@ourDOMAIN.com", "Subject");
drop-attachments-by-name(".*");
notify ("$EnvelopeSender, $EnvelopeRecipients");
drop();
}

==========================================

Answer