How to add mail disclaimer in Zimbra
Enable mail disclaimer, it is the global on/off switch
zmprov mcf zimbraDomainMandatoryMailSignatureEnabled TRUE
Adding disclaimers to a domain takes multiple steps. The first step is to add the disclaimer text into the LDAP server:
- Text Example
zmprov md knowledgelinux.com zimbraAmavisDomainDisclaimerText "text disclamer"
- HTML Example
zmprov md knowledgelinux.com zimbraAmavisDomainDisclaimerHTML "<html><body><h1>HTML Disclaimer</body></html>"
After the disclaimer text is added to the LDAP server, disclaimers for the specific domain must be enabled, and then all MTAs updated to grab the disclaimer text. On the first MTA, as the zimbra user:
On MTA1
./libexec/zmaltermimeconfig -e knowledgelinux.com
NOTE: if you have configured multi LDAP Server on MTA, Use One LDAP Uri for this process only .after completion on this task you can add more LDAP server in your MTA server, it is bug.
zmlocalconfig | grep -i ldap | grep -i url zmlocalconfig -e ldap_url="ldap://Only_first_LDAP:389"
On all additional MTAs:
./libexec/zmaltermimeconfig
To remove a disclaimer from a domain
Removing a disclaimer for a domain that currently has it enabled takes multiple steps.
On the first MTA, as the Zimbra user:
./libexec/zmaltermimeconfig -d knowledgelinux.com
On all additional MTAs:
./libexec/zmaltermimeconfig
Completely disable the disclaimer feature
It is possible to completely remove support for disclaimers by setting the related attribute to FALSE
zmprov mcf zimbraDomainMandatoryMailSignatureEnabled FALSE