Zimbra Tips : How To Disable Disclaimer When Reply and Forward Email

When you configure disclaimer on Zimbra, disclaimer will display on every email that you sent, reply or forward. Yes, you can configure disclaimer only for outgoing email. However, If you correspond with the same person, disclaimer still display on every email that you sent, reply or forward.

For some users, the disclaimer annoying enough. You can disable disclaimer when reply and forward email. If disclaimer not show formerly when you reply email, disclaimer will display. But, if disclaimer have been there, disclaimer will not display

The following are step by step to custom disclaimer

# Create amavis custom

vi /opt/zimbra/conf/amavisd-reply-fw.conf

Fill with the following line

package Amavis::Custom;
use strict;
sub new {
  my($class,$conn,$msginfo) = @_;
  my($self) = bless {}, $class;
  my($subj) = $msginfo->get_header_field_body('subject');
  my($refs) = $msginfo->get_header_field_body('references');
  my($inre) = $msginfo->get_header_field_body('in-reply-to');
  if ($msginfo->originating &&
      (defined $refs || defined $inre || $subj =~ /^\s*re:/i)) {
1;  # insure a defined return

# Save and edit amavisd.conf.in

cp /opt/zimbra/conf/amavisd.conf.in /opt/zimbra/conf/amavisd.conf.in-backup
vi /opt/zimbra/conf/amavisd.conf.in

Add the following line before $policy_bank{‘ORIGINATING_POST’}.

$policy_bank{'OUR-REPLY'} = {
  allow_disclaimers => 0,


# Save and restart Amavis

zmamavisdctl restart

Please try to send and reply email

Good luck and hopefully useful 🙂

Source : https://sourceforge.net/p/amavis/mailman/message/24129901/


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.