How to Add External Email Warning Message

Create disclaimer-external.conf file

#su - zimbra
$vi /opt/zimbra/conf/disclaimer-external.conf


use strict;

$altermime='/opt/zimbra/common/bin/altermime';
@altermime_args_disclaimer = qw(--verbose --pretext=/opt/zimbra/data/altermime/_OPTION_.txt --pretext-html=/opt/zimbra/data/altermime/_OPTION_.html --force-for-bad-html);
$defang_maps_by_ccat{+CC_CATCHALL} = ['disclaimer'];
$allow_disclaimers = 1;
@local_domains_maps = (["."]);
@disclaimer_options_bysender_maps = ({
        '.' => 'external_domains',

},);

1;

#vi /opt/zimbra/data/altermime/external_domains.txt

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.



#vi /opt/zimbra/data/altermime/external_domains.html

<div style="background-color: #ffeb9c; width: 100%; padding: 2pt; font-size: 10pt; line-height: 12pt; font-family: 'Calibri'; color: black; text-align: left; border: 1pt solid #9C6500;"><span style="color: #9c6500;">CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div>


#vi /opt/zimbra/conf/amavisd.conf.in


include_config_files('/opt/zimbra/conf/disclaimer-external.conf');



#zmamavisdctl restart

Comments

Popular posts from this blog

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Error "Unable to retrive Zimbra GPG key for package validation"