View Single Post
  #27 (permalink)  
Old 02-22-2008, 01:35 PM
deugenin deugenin is offline
Project Contributor
 
Posts: 71
Default

You can do some troubleshooting in your /opt/zimbra/postfix/conf/disclaimer script:

For example

Code:
   # obtain domain name From
   domain=`grep "From:" in.$$ | cut -d "@" -f 2 | cut -d ">" -f 1`
   echo "Domain FROM: $domain" >> /tmp/disclaimer.log
   
   # check for attribute "zimbraDomainPrefMailSignatureEnabled"
   enable=`/opt/zimbra/bin/zmprov gd $domain | grep    zimbraDomainPrefMailSignatureEnabled | awk '{print $2}'`
   echo "Signature is enabled for domain $domain: $enable" >> /tmp/disclaimer.log
   
   if [ ! -z $enable ]; then                    # if not empty
        if [ $enable == "TRUE" ]; then          # if value = TRUE
           echo "TRUE"
           # Add a disclaimer to the mail
           /usr/local/bin/altermime --input=in.$$    --disclaimer=$DISCLAIMER_HOME/$domain \
              --disclaimer-html=$DISCLAIMER_HOME/$domain.html \
              --xheader="X-Copyrighted-Material: Please visit    http://www.$domain/privacy.htm" || { echo Message content rejected; exit    $EX_UNAVAILABLE; }
         echo "My disclaimer file for domain $domain is: `cat $DISCLAIMER_HOME/$domain`" >> /tmp/disclaimer.log
        else
                echo "FALSE"                    # value is FALSE
        fi
   else
        echo "NONE"                             # domain doesn't have LDAP attributes
   fi
And check your /tmp/disclaimer.log.....
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote