[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
mutuku
Advanced member
Advanced member
Posts: 54
Joined: Sat Sep 13, 2014 12:29 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby mutuku » Thu Jun 14, 2012 2:21 am

Is there a way of attaching the signature only to outgoing mail?


liverpoolfcfan
Outstanding Member
Outstanding Member
Posts: 921
Joined: Sat Sep 13, 2014 12:47 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby liverpoolfcfan » Fri Jun 15, 2012 4:22 am

[quote user="mutuku"]Is there a way of attaching the signature only to outgoing mail?[/QUOTE]
There is - but it requires manually editing the amavisd script. And, the change needs to be re-introduced after every zimbra upgrade.
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 change from release to release.
1. Save a copy of the original amavisd,

2. Edit amavisd and search for "will not add disclaimer, originator not local" with the quotes. In 7.2.0 this will be line 11128.
You should find the following lines

              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;

before the closing brace so that the code looks like the following.
              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;

}


The else - $to_be_mangled ... is the part that skips the disclaimer for local recipients.
Credit for this technique goes to a forum member - cvidal - I found this about 2 years ago during an exhaustive search of the internet for the same purpose. http://www.zimbra.com/forums/administrators/36479-domain-disclaimer-external-mails-only.html
mutuku
Advanced member
Advanced member
Posts: 54
Joined: Sat Sep 13, 2014 12:29 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby mutuku » Thu Jun 21, 2012 8:19 am

This worked for me
Is there a way of limiting the discalimer to cetain zimbra domains. I have 3 domains and same disclaimer is being added in all of them
liverpoolfcfan
Outstanding Member
Outstanding Member
Posts: 921
Joined: Sat Sep 13, 2014 12:47 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby liverpoolfcfan » Thu Jun 21, 2012 8:26 am

Vote here ... Bug 41872 – expand disclaimer support from single, global to per-domain ... and hope for the best :-)
yasanthau
Advanced member
Advanced member
Posts: 57
Joined: Sat Sep 13, 2014 12:52 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby yasanthau » Tue Jan 28, 2014 11:58 pm

Above steps are working on Zimbra 8 as well. But is there any way that we can have separate disclaimers for separate domains hosted on the same Zimbra server?
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 609
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby ccelis5215 » Wed Jan 29, 2014 7:19 pm

yasanthau
Advanced member
Advanced member
Posts: 57
Joined: Sat Sep 13, 2014 12:52 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby yasanthau » Thu Jan 30, 2014 3:43 am

Please let us know the steps to configure it on ZCS 8.0.5. The commands given by them do not work on 8.0.5
[zimbra@mydomain ~]$ zmcontrol -v

Release 8.0.5_GA_5839.RHEL6_64_20130910123908 RHEL6_64 FOSS edition.



[zimbra@mydomain ~]$ zmprov md mydomain.com zimbraAmavisDomainDisclaimerHTML "HTML disclaimer"

ERROR: account.INVALID_ATTR_NAME (invalid attr name: invalid attr name - unable to modify attributes: zimbraAmavisDomainDisclaimerHTML: attribute type undefined)
liverpoolfcfan
Outstanding Member
Outstanding Member
Posts: 921
Joined: Sat Sep 13, 2014 12:47 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby liverpoolfcfan » Thu Jan 30, 2014 4:03 am

It is to be available in 8.5.0 - not 8.0.5 - You will have to wait a while longer
chetanlad
Posts: 1
Joined: Sat Sep 13, 2014 3:56 am

[SOLVED] Domain Disclaimer for Zimbra 7.1.0

Postby chetanlad » Wed Aug 06, 2014 11:29 am

[quote user="Krishopper"]https://www.zimbra.com/docs/ne/7.0.0/administration_guide/wwhelp/wwhimpl/common/html/wwhelp.htm#href=NE_Admin_Guide_7_0.Setting%20System-wide%20Signatures.html&single=true
Setting
System-wide Signatures
* zimbraDomainMandatoryMailSignatureEnabled (TRUE/FALSE) TRUE enables this feature.

* zimbraDomainMandatoryMailSignatureText. This creates the plain text version.

* zimbraDomainMandatoryMailSignatureHTML. This creates the HTML version.
1. To create a system wide mandatory signature, enter the following:

zmprov mcf zimbraDomainMandatoryMailSignatureEnabled TRUE

zmprov mcf zimbraDomainMandatoryMailSignatureText

zmprov mcf zimbraDomainMandatoryMailSignatureHTML "some html text”
2. Restart Amavis to apply the configuration and global signature files. Type:



/opt/zimbra/bin/zmamavisdctl restart
The global signature is not visible when an email is composed, but displays in the recipientÂ’s email message. age.[/QUOTE]
Dear Friends,
I followed the steps provided above, I'm getting Text Disclaimer but not getting logos uploaded thru html file. /opt/zimbra/data/altermime/global-default.html show my html code but when the recipients receive email they get only text based disclaimer and no logos are displayed.
Please help as I'm new to Zimbra.
Regards,
Chetan D. Lad

Return to “Administrators”

Who is online

Users browsing this forum: itgroup2019 and 11 guests