Configuring Domain Disclaimer

Configuring Domain Disclaimer#

Enabling and configuring a disclaimer that is automatically added to e-mail can be easily done from the Carbonio Admin Panel, see Sections Global Settings and Disclaimer, respectively.

To carry out the same tasks from the CLI, you can use the following commands.

Enable the functionality
zextras$ carbonio prov modifyConfig zimbraDomainMandatoryMailSignatureEnabled TRUE

Make sure to restart the other involved services by executing on every MTA Node in your infrastructure the commands

zextras$ zmamavisdctl restart && zmconfigdctl restart
Add a plain text Disclaimer
zextras$ carbonio prov modifyDomain example.tld zimbraAmavisDomainDisclaimerText 'Disclaimer text'

Replace ‘Disclaimer text’ with any text you want, for example a confidentiality notice:

This email and any files transmitted with it are confidential and
are for the sole use of the individual or entity to which they are
addressed. If you received this email in error, please notify your
system administrator.
Add a Formatted (HTML) Disclaimer.
zextras$ carbonio prov modifyDomain example.tld \
zimbraAmavisDomainDisclaimerHTML 'Disclaimer in HTML markup'

You can use any HTML tag to surround your text, for example you can add contacts information:

<h2>Contacts</h2>
<p>Company Phone: +00 123 456 7890</p>
<p>Company e-mail: info@example.com</p>
Activate the Disclaimer
zextras$ /opt/zextras/libexec/zmaltermimeconfig

This command activates the disclaimer on all domains. If you manage multiple domains and want to activate the disclaimer only on one domain (e.g., example.com), simply add -e example.com to the command

zextras$ /opt/zextras/libexec/zmaltermimeconfig -e example.com

To complete the activation, run the command run the command without options on every other MTA Node in your infrastructure.

Remove the Disclaimer

Just define the disclaimer as an empty string in either plain text or HTML

zextras$ carbonio prov modifyDomain example.com zimbraAmavisDomainDisclaimerText ''
zextras$ carbonio prov modifyDomain example.com zimbraAmavisDomainDisclaimerHTML ''

Then, follow the steps to activate the disclaimer

Completely disable the functionality
zextras$ carbonio prov modifyConfig zimbraDomainMandatoryMailSignatureEnabled FALSE

Make sure to restart the other involved services by executing on every MTA Node in your infrastructure the commands

zextras$ zmamavisdctl restart && zmconfigdctl restart