Solved : Disclaimer show null on Zimbra 8.5

Posted by

Few days ago, i am trying to install Zimbra 8.5 on my lab environment to explore new features on Zimbra 8.5 from this link : http://wiki.zimbra.com/wiki/New_Features_ZCS_8.5. One of features on Zimbra 8.5 is supporting disclaimer perdomain. This disclaimer can be apply with simple command zmaltermimeconfig. I have been following on Zimbra Wiki, but disclaimer not show properly and just appear show null.

i am looking for answer for my problem and get it from Bugzilla at this link : https://bugzilla.zimbra.com/show_bug.cgi?id=95237. If you have same problem with me, you can use some method below

1. Create file html and text manually

If you generate ./libexec/zmaltermimeconfig -e example.com and not generate anything, you can manually create file html and text on folder altermime.

cd /opt/zimbra/data/altermime/
vi .html
vi .txt

On .html, fill disclaimer with format html. On .txt, fill disclaimer with format text. If you wanted to enable disclaimer with single domain, this method can use. But, this method cannot used if you have some domain. This method will overwrite on all domain at Zimbra mail server. But for me, it’s ok because i have single domain on my Zimbra 😀

2. Inject Amavis Schema in LDAP

With second method, you can adding disclaimer options on Amavis schema.

Create file disclaimer.ldif

vi /srv/disclaimer.ldif

fill with this line

dn: cn={5}amavisd,cn=schema,cn=config
changetype: modify
delete: olcObjectClasses
olcObjectClasses: {0}( 1.3.6.1.4.1.15312.2.2.2.1 NAME 'amavisAccount' DESC 'Am
 avisd Account' SUP top AUXILIARY MAY ( amavisVirusLover $ amavisBypassVirusCh
 ecks $ amavisSpamLover $ amavisBypassSpamChecks $ amavisBannedFilesLover $ am
 avisBypassBannedChecks $ amavisBadHeaderLover $ amavisBypassHeaderChecks $ am
 avisSpamTagLevel $ amavisSpamTag2Level $ amavisSpamKillLevel $ amavisWhitelis
 tSender $ amavisBlacklistSender $ amavisSpamQuarantineTo $ amavisVirusQuarant
 ineTo $ amavisBannedQuarantineTo $ amavisBadHeaderQuarantineTo $ amavisArchiv
 eQuarantineTo $ amavisSpamModifiesSubj $ amavisLocal $ amavisMessageSizeLimit
  $ amavisWarnVirusRecip $ amavisWarnBannedRecip $ amavisWarnBadHeaderRecip $
 amavisVirusAdmin $ amavisNewVirusAdmin $ amavisSpamAdmin $ amavisBannedAdmin
 $ amavisBadHeaderAdmin $ amavisBannedRuleNames $ amavisSpamDsnCutoffLevel $ a
 mavisSpamQuarantineCutoffLevel $ amavisSpamSubjectTag $ amavisSpamSubjectTag2
  $ amavisAddrExtensionVirus $ amavisAddrExtensionSpam $ amavisAddrExtensionBa
 nned $ amavisAddrExtensionBadHeader $ amavisSpamTag3Level $ amavisSpamSubject
 Tag3 $ amavisUncheckedQuarantineTo $ amavisCleanQuarantineTo $ amavisUnchecke
 dLover $ amavisForwardMethod $ amavisSaUserConf $ amavisSaUserName $ cn $ des
 cription ) )
-
add: olcObjectClasses
olcObjectClasses: {0}( 1.3.6.1.4.1.15312.2.2.2.1 NAME 'amavisAccount' DESC 'Am
 avisd Account' SUP top AUXILIARY MAY ( amavisVirusLover $ amavisBypassVirusCh
 ecks $ amavisSpamLover $ amavisBypassSpamChecks $ amavisBannedFilesLover $ am
 avisBypassBannedChecks $ amavisBadHeaderLover $ amavisBypassHeaderChecks $ am
 avisSpamTagLevel $ amavisSpamTag2Level $ amavisSpamKillLevel $ amavisWhitelis
 tSender $ amavisBlacklistSender $ amavisSpamQuarantineTo $ amavisVirusQuarant
 ineTo $ amavisBannedQuarantineTo $ amavisBadHeaderQuarantineTo $ amavisArchiv
 eQuarantineTo $ amavisSpamModifiesSubj $ amavisLocal $ amavisMessageSizeLimit
  $ amavisWarnVirusRecip $ amavisWarnBannedRecip $ amavisWarnBadHeaderRecip $
 amavisVirusAdmin $ amavisNewVirusAdmin $ amavisSpamAdmin $ amavisBannedAdmin
 $ amavisBadHeaderAdmin $ amavisBannedRuleNames $ amavisSpamDsnCutoffLevel $ a
 mavisSpamQuarantineCutoffLevel $ amavisSpamSubjectTag $ amavisSpamSubjectTag2
  $ amavisAddrExtensionVirus $ amavisAddrExtensionSpam $ amavisAddrExtensionBa
 nned $ amavisAddrExtensionBadHeader $ amavisSpamTag3Level $ amavisSpamSubject
 Tag3 $ amavisUncheckedQuarantineTo $ amavisCleanQuarantineTo $ amavisUnchecke
 dLover $ amavisForwardMethod $ amavisSaUserConf $ amavisSaUserName $ cn $ des
 cription $ amavisDisclaimerOptions ) )

Looking for password ldap_root_password on Zimbra and inject Amavis schema

su - zimbra
zmlocalconfig -s | grep ldap_root_password
ldapmodify -x -h mail.example.com -p 389  -D "cn=config" -w "ldap_root_password" -f /srv/disclaimer.ldif

With this method, disclaimer can be generated with ./libexec/zmaltermimeconfig and if you have some domain on your Zimbra mail server, this method can be used for apply disclaimer per domain

Good luck and hopefully useful 😀

5 comments

  1. I also have the same problem.

    Error is modifying entry “cn={5}amavisd,cn=schema,cn=config”
    ldap_modify: No such attribute (16)
    additional info: modify/delete: olcObjectClasses: no such value

    1. Hi Swapnil D,

      Please try to check whether olcObjectClasses is there on amavisd schema config. I am recommend you to upgrade your Zimbra to the latest version 😉

  2. Mas iman, apakah saat kita mengirimkan email melalui email client seperti outlook, disclaimer ini akan muncul juga?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.