Results 1 to 5 of 5

Thread: Disclaimer Question

  1. #1
    Join Date
    Jun 2008
    Posts
    13
    Rep Power
    7

    Default Disclaimer Question

    I've been reading about the available admin add-in that allows for domain level disclaimers that is referred to here: Domain Disclaimer Extension Admin UI - Zimbra :: Wiki and was wondering if this will affect messages sent from a 3rd party mail client (specifically the outlook family). I've been asked to set up some kind of confidentiality notification on our outbound email messages.

    Also, the automatic installer script is specifically geared for RedHat/CentOS; do you know if it would also work on a suse 10.3 install, or would I be better off to just go with the manual install instructions? Thanks,

    --Daniel

  2. #2
    Join Date
    Jun 2008
    Posts
    13
    Rep Power
    7

    Default Getting Closer on Domain Disclaimer

    So I've been tinkering and I think I'm close to getting the domain disclaimer to work on my installation. I've set everything up, and the admin extension appears to be in place. I'm now getting the following error:
    Code:
    pp-colo:/opt/zimbra/postfix/conf # ./check_disclaimers.sh
    Domain: pressaprint.com         TRUE
    Can't call method "bind" on an undefined value at /opt/zimbra/postfix/conf/read_from_ldap.pl line 24, <DATA> line 225.
    Domain: thesqladvantage.com     NONE
    Looks like a problem in the way I've declared my variables in the read_from_ldap.pl script. The relevant lines are:
    Code:
    # Fixed Variables
    my $server="localhost";
    my $user="uid=zimbra,cn=admins,cn=zimbra";
    my $pass="***";
    
    # Variables
    my @domain = split(/\./,$ARGV[0]);
    my $base = "dc=" . join(',dc=', @domain);
    my ($sub,$top) = @domain;
    my $tmpfile = $ARGV[1];
    
    if (!$ARGV[1] || !$ARGV[0]){
            print "\n\tUse: read_from_ldap.pl domain file\n\n";
            exit();
    }
    
    my $ldap = Net::LDAP->new("$server");
    my $mesg = $ldap->bind("$user", password => "$pass");
    I'm not really a Perl expert yet, so I'm not quite sure how to troubleshoot the error here. Can anyone point me in the right direction? Do I have a variable declared wrong, or is it something else?

    Thanks,
    --Dan

  3. #3
    Join Date
    Feb 2006
    Posts
    92
    Rep Power
    9

    Default

    Hi,
    First i suppose you posted only an extract of the read_from_ldap.pl script
    Second, it seems that your $server variable is wrong. You need to check in what IP does Zimbra ldap is running ("netstat -tlpn|grep 389" may help) and use that IP address.
    Patricio Bruna
    http://www.itlinux.cl

  4. #4
    Join Date
    Jun 2008
    Posts
    13
    Rep Power
    7

    Default Domain Disclaimer - Getting Closer

    Thanks for the reply, and yes, you're right that I'd only provided a part of my read_from_ldap.pl script. The rest of it is below. Your suggestion helped me get past that error (not sure why I thought it'd be listening on localhost and not the assigned IP but that's OK).

    Now when I run my check_disclaimers.sh script I get the following:
    Code:
    pp-colo:/opt/zimbra/postfix/conf/disclaimers # ../check_disclaimers.sh
    Domain: pressaprint.com         TRUE
    No signature
    No HTML signature
    cp: cannot stat `/opt/zimbra/postfix/conf/disclaimers/pressaprint.com': No such file or directory
    Domain: thesqladvantage.com     NONE
    I've looked through the read_from_ldap.pl script which is generating that output and I think the relevant lines are these ones:
    Code:
    $mesg = $ldap->search (
            base => $base,
            filter => "(&(objectClass=zimbraDomain) (dc=$sub))",
            attrs => ['zimbraDomainPrefMailSignature']
    );
    
    foreach ($mesg->entries) {
            my @result= $_->{'asn'}->{'attributes'};
            if($result[0][0]{'vals'}[0]){
                    open (TMPFILE,">$tmpfile");
                    print TMPFILE "---------------------------------------------------\n";
                    print TMPFILE "$result[0][0]{'vals'}[0]\n";
            }
            else {
                    print "No signature\n"
            }
    };
    
    $mesg = $ldap->search (
            base => "$base",
            filter => "(&(objectClass=zimbraDomain) (dc=$sub))",
            attrs => ['zimbraDomainPrefMailSignatureHTML']
    );
    
    
    foreach ($mesg->entries) {
            my @result= $_->{'asn'}->{'attributes'};
            if($result[0][0]{'vals'}[0]){
                    open (TMPFILE2,">$tmpfile.html");
                    print TMPFILE2 "---------------------------------------------------\n";
                    print TMPFILE2 "$result[0][0]{'vals'}[0]\n";
            }
            else {
                    print "No HTML signature\n";
                    system ("cp -f $tmpfile $tmpfile.html");
            }
    };
    I'm pretty sure that's where it's trying to determine the values for my signatures. I've checked my domain via 'zmprov gd pressaprint.com' and I get the following:
    Code:
    ...
    zimbraDomainName: pressaprint.com
    zimbraDomainPrefMailSignature: This email is confidential.
    zimbraDomainPrefMailSignatureEnabled: TRUE
    zimbraDomainPrefMailSignatureHTML: This email is confidential.
    ...
    So I do have those properties and values, but it's either not able to read them or it's not able to create the files where they should be put. I've checked that the disclaimers directory can be written to, but that didn't seem to have any effect. Thanks again for the help!

    --Dan

  5. #5
    Join Date
    Jun 2008
    Posts
    13
    Rep Power
    7

    Default

    Well, I made some more headway and I'm almost where I want to be. I remember seeing a post that mentioned having to create the disclaimer files manually.

    As my read_from_ldap.pl script isn't getting the values like it should, I decided to try that and it worked (sort of). My disclaimer is added to all new outbound messages, but not to any replies or forwards.

    I'm investigating, but if anyone knows of a setting to control that I'd be much appreciative.

    --Dan

Similar Threads

  1. Replies: 7
    Last Post: 06-08-2008, 02:54 PM
  2. [SOLVED] Disclaimer on Messages
    By danny.sierra@omtech.net in forum Administrators
    Replies: 1
    Last Post: 06-02-2008, 08:35 AM
  3. Disclaimer
    By jpbuse in forum Installation
    Replies: 7
    Last Post: 02-21-2008, 12:21 PM
  4. server configuration question
    By burnmage in forum Installation
    Replies: 0
    Last Post: 11-08-2007, 04:27 PM
  5. Multiple Domains Question
    By kristiaan_d in forum Administrators
    Replies: 2
    Last Post: 03-14-2007, 05:38 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
  •