Zimbra disclaimer on multiple domains for Rockman Zimbra Server
Zimbra disclaimer on multiple domains for Rockman Zimbra Server[edit]
Global Zimbra Disclaimer[edit]
Created by
By these commands below
To create a system wide mandatory signature, enter the following:
zmprov mcf zimbraDomainMandatoryMailSignatureEnabled TRUE zmprov mcf zimbraDomainMandatoryMailSignatureText <some text> zmprov mcf zimbraDomainMandatoryMailSignatureHTML "<html><body>some html text</body></html>"
Restart amavis to apply the configuration and write out the global signature files used by altermime. Type:
/opt/zimbra/bin/zmamavisdctl restart
To Check the Disclaimer[edit]
zmprov gcf zimbraDomainMandatoryMailSignatureEnabled zimbraDomainMandatoryMailSignatureEnabled: TRUE
zmprov gcf zimbraDomainMandatoryMailSignatureText zimbraDomainMandatoryMailSignatureText: Disclaimer: The information in this e-mail, and any attachments therein, is privileged and confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. If you have received this communication in error, please be informed that any review, dissemination, distribution, or copying of this message is strictly prohibited. The sender confirms that Rockman Industries shall not be responsible if this email message is used for any indecent, unsolicited or illegal purposes, which are in violation of any existing laws and the same shall solely be the responsibility of the sender and that Rockman Industries shall at all times be indemnified of any civil and/ or criminal liabilities or consequences thereof. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
zmprov gcf zimbraDomainMandatoryMailSignatureHTML zimbraDomainMandatoryMailSignatureHTML: <html><body> Disclaimer: The information in this e-mail, and any attachments therein, is privileged and confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. If you have received this communication in error , please be informed that any review, dissemination, distribution, or copying of this message is strictly prohibited. The sender confirms that Rockman Industries shall not be responsible if this email message is used for any indecent, unsolicited or illegal purposes, which are in violation of any existing laws and the same shall solely be the responsibility of the sender and that Rockman Industries shall at all times be indemnified of any civil and/ or criminal liabilities or consequences thereof. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.</body><html>
To Activate Multiple disclaimer Domain Specific[edit]
Reference http://www.zimbra.com/forums/administrators/36479-domain-disclaimer-external-mails-only.html
modify - /opt/zimbra/conf/amavisd.conf.in
From
@disclaimer_options_bysender_maps = (
{ '.' => 'global-default' },
);
to
@disclaimer_options_bysender_maps = (
{ '.rockmanindustries.com' => 'rockmanindustries' },
{ '.rockman.in' => 'rockman-in'},
{ '.' => 'global-default' },
);
Create disclaimer files in /opt/zimbra/data/altermime
global-default.html global-default.txt rockman-in.html rockman-in.txt rockmanindustries.html rockmanindustries.txt
Restart amavis
zmamavisdctl restart
Testing[edit]
Send mails via diffent doinms of the hosted zimbra Server
Disclaimer only on Outgoing mails to external Domain[edit]
No Disclaimer on mails send to local users
Disclaimer is on only on mails to external domains .
http://www.scribd.com/doc/145716890/SOLVED-Domain-Disclaimer-for-Zimbra-7-1
In the 7.2.0 release, the change is at line 11129 in the file /opt/zimbra/amavisd/sbin/amavisd - but the line number will obviously changefrom release to release.
1. As Root , Save a copy of the original amavisd,
2. As root , Edit amavisd and search for "will not add disclaimer, originator not local" with the quotes. In 7.2.0 this will be line 11128.
if (!grep { defined($_) && $_ ne &&
lookup2(0,$_, ca('local_domains_maps')) }
unique_list( (!$rf ? () : @$rf), (!$rs ? () : @$rs),
@rfc2822_from, $rfc2822_sender, $sender)) {
$to_be_mangled = 0; # not for foreign 'Sender:' or 'From:'
do_log(5,"will not add disclaimer, originator not local");
}
The change required is to insert 2 lines
else {
$to_be_mangled = 0 if $r->recip_is_local;
}
The final Code should look as below
if (!grep { defined($_) && $_ ne &&
lookup2(0,$_, ca('local_domains_maps')) }
unique_list( (!$rf ? () : @$rf), (!$rs ? () : @$rs),
@rfc2822_from, $rfc2822_sender, $sender)) {
$to_be_mangled = 0; # not for foreign 'Sender:' or 'From:'
do_log(5,"will not add disclaimer, originator not local");
} else {
$to_be_mangled = 0 if $r->recip_is_local;
}
Once Saved , zmamavisdctl restart
Testing to local email address and external address needs to be done .