06-04-2008 05:45 PM
I have created a Disclaimer Text for our company. I have also set up the outbound listener to add a footer of this disclaimer.
What I would now like to do is be able to check if there is already a disclaimer in the body of the message and if so, not add another disclaimer.
I tested our current settings and everytime I reply, the outbound message gets another disclaimer footer. After several replies there are several disclaimers. :?:
06-04-2008 06:31 PM
I would recommend that you don't do the disclaimer in the listener and instead append disclaimers using the outgoing content filter.
So, disable disclaimer/footer in the listener and then using a combination of outgoing mail policy/outgoing content filter to add the disclaimer. Then you can have an additional content filter that is positioned above the disclaimer content filter that checks if the disclaimer is already there.
Here's a kb article on how to do this using a message filter, but you should be able to do it with a content filter.
How do I stop adding a footer if there has been one already added to the email thread ?
http://tinyurl.com/5gaj24
I have created a Disclaimer Text for our company. I have also set up the outbound listener to add a footer of this disclaimer.
What I would now like to do is be able to check if there is already a disclaimer in the body of the message and if so, not add another disclaimer.
I tested our current settings and everytime I reply, the outbound message gets another disclaimer footer. After several replies there are several disclaimers. :?:
06-04-2008 08:44 PM
I tried that filter, however it didn't completly work.
What was happening was that every message coming in was getting the disclaimer.
Check_for_existing_disclaimer:
if (recv-listener == 'OutboundMail' AND (body-contains('PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER')))
{deliver();}
else
{add-footer('PHS_Disclaimer'); }
Since the inbound message didn't meet the criteria for the IF statement it received the footer.
I ended setting up content filter for outbound messages, but would like to get the filter to work.
What about this.......
Check_for_existing_disclaimer:
if (recv-listener == 'OutboundMail' AND (body-contains('PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER')))
{deliver();}
else if (recv-listener == 'InboundMail' AND (body-contains('PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER')))
{deliver();}
else
{add-footer('PHS_Disclaimer'); }
06-04-2008 11:35 PM
The Ironport system currently doesn't support the "ELSE IF" syntax, but you can do embedded IF / ELSE statements.
if ()
{
if ()
{}
}
06-05-2008 06:04 PM
I tried the latter and since all inbond messages do not contain the disclaimer header the filter applies. Thus email coming from JohnDoe@someplace.com gets the disclaimer applied as the message is processed.
I have been able to do this using Outbound Content filters and it seems to be working fine. I will remembe to keep these content filters as the last in the process.
Thanks
06-05-2008 06:04 PM
I tried the latter and since all inbond messages do not contain the disclaimer header the filter applies. Thus email coming from JohnDoe@someplace.com gets the disclaimer applied as the message is processed.
I have been able to do this using Outbound Content filters and it seems to be working fine. I will remembe to keep these content filters as the last in the process.
Thanks
05-05-2009 02:45 PM
Hi there,
Did someone here succeed in implementing this kind of disclaimer?
I am still unable to perform it correctly.
Everytime I am replying to an email to internet, the disclaimer is added at the end.
I have many domains to manage so any help will be appreciated.
Thank you all in advance.
05-06-2009 10:02 AM
did you remove the disclaimer on the listener and added a content filter?
05-07-2009 02:22 PM
Hi, Yes I did, with no help.
Here how I managed to resolve:
(the need is:
for each outgoing email I need the disclaimer to be added only once.
(If it already exists, don't add a new one))
- I have i.e 5 domains (i.e: "@de.domain.com") for which I need different disclaimers.
For each domain I have an associated Text Resource (Disclaimer) (i.e: "Disclaimer_DE").
I have then created a new outgoing Listener (private) (i.e: "Outgoing_DE").
- I have then created a new filter (CLI) running on this dedicated listener as this:
Disclaimer_DE:
if (recv-listener == 'Outgoing_DE' AND (body-contains('Disclaimer DOMAIN DE')))
{deliver();}
else
{add-footer('Test_Disclaimer_DE');}
This work sperfectly. I am just awaiting for IronPort's recommandation to ensure this respects the best practices.
Hocine M MEROUANE
05-07-2009 02:24 PM
One this imprtant I have forgotten:
You need to ensure all emails coming from @de.domain.com are routed through the appropriated Listener.
05-08-2009 08:49 AM
One this imprtant I have forgotten:
You need to ensure all emails coming from @de.domain.com are routed through the appropriated Listener.
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