Message filters can only be applied to the ESA via command line. So, you will need command line access to the ESA. Log into the ESA via command line. Run the following highlighted commands to apply the message filter to the ESA: ironport.example.com> filters Choose the operation you want to perform: - NEW - Create a new filter. - IMPORT - Import a filter script from a file. []> NEW Enter filter script. Enter '.' on its own line to end. large_spam_no_attachment: if ((body-size > 2097152) AND NOT (attachment-size > 0)) { quarantine("large_spam"); log-entry("*****This is a large message with no attachments*****"); } . 1 filters added.