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

Home » Zimbra » Zimbra Tips : How To Disable Disclaimer When Reply and Forward Email
Zimbra No Comments

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)) {
    Amavis::load_policy_bank('OUR-REPLY');
  }
  $self;
}
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,
};

include_config_files('/opt/zimbra/conf/amavisd-reply-fw.conf');

# 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 COMMENT