Introduction
This document describes how to disable disclaimers when an Email Security Appliance (ESA) stamps outbound email with a disclaimer, even if the email already has one.
How do I stop duplicate disclaimer stamping?
Create a text resource via the Web GUI:
- Log into the Web GUI.
- Mail Policies > Text Resources > Add Text Resource, name the resource: disclaimer_1.
- Select Type: Disclaimer.
- Paste your Disclaimer in the text box.
- Submit and Commit.
Create a message filter to stamp outbound mail and ignored previously stamped mail:
- Log into the CLI of your appliance.
- Issue the filters command.
- Select New from the menu.
- Paste the filter below (please ensure you replace the SNIPPET portion with a short sentence from your disclaimer).
no_duplicate_disclaimer:
if (sendergroup == "RELAYLIST")
{
if not (body-contains("SNIPPET FROM DISCLAIMER", 1))
{
add-footer("disclaimer_1");
}
}
- Press the enter key and return to the main CLI prompt.
- Issue the commit command.
Additional Message Filter Examples
no_duplicate_disclaimer:
if (sendergroup == "RELAYLIST")
{
if ( mail-from == '@domain_1\\.com$' ) {
if not (body-contains("UNIQUE SNIPPET FROM DISCLAIMER_1", 1))
{
add-footer("disclaimer_1");
}
}
if ( mail-from == '@domain_2\\.com$' ) {
if not (body-contains("UNIQUE SNIPPET FROM DISCLAIMER_2", 1)) {
add-footer("disclaimer_2");
}
}
if ( mail-from == '@domain_3\\.com$' ) {
if not (body-contains("UNIQUE SNIPPET FROM DISCLAIMER_3", 1)) {
add-footer("disclaimer_3");
}
}
}
Related Information