Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old 02-21-2008, 12:18 PM
Project Contributor
 
Posts: 71
Default

Hi guys!, i recently finished a hard testing and i have a new version of zimbra_altermime install package (v 0.0.4).

Check new instructions on Zimbra Wiki:
Domain Disclaimer Extension Admin UI - Zimbra :: Wiki


Regards
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #22 (permalink)  
Old 02-21-2008, 02:02 PM
Loyal Member
 
Posts: 88
Default

Well, the install went fine this time and it properly created the disclaimers. In addition, the disclaimers show up in the admin GUI now.

However, they don't work when I tried to send test emails via Mail.app Neither my plain text or HTML test emails had a disclaimer attached to them. My plain text text via Zimbra webmail worked, however it did not work when replying to a message.
Reply With Quote
  #23 (permalink)  
Old 02-21-2008, 03:04 PM
Project Contributor
 
Posts: 71
Default

This problem is about postfix...master.cf
Can you show me your master.cf file?

head -n 20 /opt/zimbra/postfix/conf/master.cf
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #24 (permalink)  
Old 02-21-2008, 04:06 PM
Loyal Member
 
Posts: 88
Default

Code:
smtp	inet	n	-	n	-	-	smtpd
   -o content_filter=dfilt:
dfilt	unix	-	n	n	-	-	pipe
   flags=Rq user=zimbra argv=/opt/zimbra/postfix/conf/disclaimer -f ${sender} -- ${recipient}
#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
#smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#	-o smtpd_client_restrictions=permit_sasl_authenticated,reject
465    inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
Reply With Quote
  #25 (permalink)  
Old 02-22-2008, 01:00 PM
Project Contributor
 
Posts: 71
Default

Is there any dfilt pipe in your zimbra logs?

grep dfilt /var/log/zimbra.log
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #26 (permalink)  
Old 02-22-2008, 01:26 PM
Loyal Member
 
Posts: 88
Default

Quote:
Originally Posted by deugenin View Post
Is there any dfilt pipe in your zimbra logs?

grep dfilt /var/log/zimbra.log
There sure is. All the messages I send show a (delivered via dfilt service). IE:

Code:
Feb 22 12:21:53 smithers postfix/pipe[27982]: B05B46582AA: to=<user@mydomain.com>, relay=dfilt, delay=2.1, delays=0.03/0.01/0/2.1, dsn=2.0.0, status=sent (delivered via dfilt service)
Reply With Quote
  #27 (permalink)  
Old 02-22-2008, 01:35 PM
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
  #28 (permalink)  
Old 02-22-2008, 01:39 PM
Loyal Member
 
Posts: 88
Default

I forgot to mention... this is running on 'Release 5.0.1_GA_1902.RHEL5_64_20080109190819 CentOS5_64 NETWORK edition' and not the FOSS version I was testing before. I do have a FOSS setup I can test as well.
Reply With Quote
  #29 (permalink)  
Old 02-22-2008, 01:47 PM
Loyal Member
 
Posts: 88
Default

Quote:
Originally Posted by deugenin View Post
You can do some troubleshooting in your /opt/zimbra/postfix/conf/disclaimer script:
The two users I sent two, then replied back to are user@buscema.org and user@gmail.com

Code:
Domain FROM: smithers.lambesis.com
Signature is enabled for domain smithers.lambesis.com: TRUE
My disclaimer file for domain smithers.lambesis.com is: ---------------------------------------------------
disclaimer 1
Domain FROM: buscema.org
Signature is enabled for domain buscema.org: 
Domain FROM: smithers.lambesis.com
buscema.org
Signature is enabled for domain smithers.lambesis.com
buscema.org: 
Domain FROM: smithers.lambesis.com
Signature is enabled for domain smithers.lambesis.com: TRUE
My disclaimer file for domain smithers.lambesis.com is: ---------------------------------------------------
disclaimer 1
Domain FROM: smithers.lambesis.com
Signature is enabled for domain smithers.lambesis.com: TRUE
My disclaimer file for domain smithers.lambesis.com is: ---------------------------------------------------
disclaimer 1
Domain FROM: gmail.com
Signature is enabled for domain gmail.com:
Reply With Quote
  #30 (permalink)  
Old 02-22-2008, 01:48 PM
Project Contributor
 
Posts: 71
Default

OK, and test it for 5.0.2 version of Zimbra....
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.