How To Disable Disclaimer When Reply and Forward Email
# 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
Comments
Post a Comment