01-03-2008 07:47 AM
I'm still trying to add a Disclaimer to all outgoing mails. Actually, I need some help to add such a Disclaimer to nearly all outgoing mails, excepting some specific domains and for the right syntax:
I know that I can add a message filter with the action 'add-footer' through CLI like this:
if (recv listener == "OutboundMail" AND (not only-body-contains ('some unique text from my company disclaimer'),1)
{add-footer('name of previously in GUI added dislcaimer-text');}
else
{ deliver();}
01-03-2008 06:28 PM
Since you need to apply this policy on a per-recipient basis, this is a job for the Email Security Manager. Use it to define two outgoing policies: a special policy for those domains which are not to have footers added, and a default policy for everyone else. In the default policy, create a content filter that adds your footer. The language used by content filters is the same as the one used by message filters, they're just applied at a later stage in the e-mail pipeline.
Since the Email Security Manager sorts out incoming from outgoing automatically, your script won't need to check the recv-listener. Something like this should do the trick:
if (not only-body-contains('some unique text from my company disclaimer'))
{
add-footer('name of previously in GUI added dislcaimer-text');
}
01-04-2008 07:45 AM
Thank you for your hint. Could you please give me an advice, how I can enter this script? I can't figure out how to add the NOT-command. :oops:
And could you please tell me something to my other questions c), d) and e)?
01-04-2008 04:58 PM
I can't figure out how to add the NOT-command.
And could you please tell me something to my other questions c), d) and e)?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide