Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: [SOLVED] Domain Disclaimer for Zimbra 7.1.0

  1. #11
    mutuku is offline Active Member
    Join Date
    Jun 2009
    Posts
    49
    Rep Power
    6

    Default

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

  2. #12
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    710
    Rep Power
    6

    Default

    Quote Originally Posted by mutuku View Post
    Is there a way of attaching the signature only to outgoing mail?
    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
    Code:
                  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
    Code:
                  } else {
                    $to_be_mangled = 0  if $r->recip_is_local;
    before the closing brace so that the code looks like the following.

    Code:
                  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. domain disclaimer for external mails only

  3. #13
    mutuku is offline Active Member
    Join Date
    Jun 2009
    Posts
    49
    Rep Power
    6

    Default

    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

  4. #14
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    710
    Rep Power
    6

  5. #15
    yasanthau is offline Active Member
    Join Date
    Nov 2009
    Posts
    37
    Rep Power
    5

    Default

    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?

  6. #16
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    461
    Rep Power
    4

  7. #17
    yasanthau is offline Active Member
    Join Date
    Nov 2009
    Posts
    37
    Rep Power
    5

    Default

    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)

  8. #18
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    710
    Rep Power
    6

    Default

    It is to be available in 8.5.0 - not 8.0.5 - You will have to wait a while longer

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New Domain disclaimer Admin Extension
    By deugenin in forum Administrators
    Replies: 57
    Last Post: 04-06-2012, 10:45 AM
  2. Replies: 1
    Last Post: 11-10-2010, 07:52 AM
  3. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  4. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  5. [SOLVED] Remove main domain!
    By zibra in forum Administrators
    Replies: 11
    Last Post: 09-27-2007, 08:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •