Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 58

Thread: New Domain disclaimer Admin Extension

  1. #21
    Join Date
    Jun 2006
    Location
    Santiago - Chile
    Posts
    76
    Rep Power
    9

    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

  2. #22
    Join Date
    Jan 2008
    Location
    San Diego, CA
    Posts
    88
    Rep Power
    7

    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.

  3. #23
    Join Date
    Jun 2006
    Location
    Santiago - Chile
    Posts
    76
    Rep Power
    9

    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

  4. #24
    Join Date
    Jan 2008
    Location
    San Diego, CA
    Posts
    88
    Rep Power
    7

    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

  5. #25
    Join Date
    Jun 2006
    Location
    Santiago - Chile
    Posts
    76
    Rep Power
    9

    Default

    Is there any dfilt pipe in your zimbra logs?

    grep dfilt /var/log/zimbra.log
    Daniel Eugenin
    http://www.it-linux.cl

  6. #26
    Join Date
    Jan 2008
    Location
    San Diego, CA
    Posts
    88
    Rep Power
    7

    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)

  7. #27
    Join Date
    Jun 2006
    Location
    Santiago - Chile
    Posts
    76
    Rep Power
    9

    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

  8. #28
    Join Date
    Jan 2008
    Location
    San Diego, CA
    Posts
    88
    Rep Power
    7

    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.

  9. #29
    Join Date
    Jan 2008
    Location
    San Diego, CA
    Posts
    88
    Rep Power
    7

    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:

  10. #30
    Join Date
    Jun 2006
    Location
    Santiago - Chile
    Posts
    76
    Rep Power
    9

    Default

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

Similar Threads

  1. Allow single account to be domain admin over multiple domains
    By peter@mxtoolbox.com in forum Administrators
    Replies: 2
    Last Post: 03-19-2008, 01:36 PM
  2. Admin Extension fail view
    By deugenin in forum Developers
    Replies: 5
    Last Post: 11-22-2007, 03:01 PM
  3. Domain admin soap api access
    By mrfileio in forum Administrators
    Replies: 0
    Last Post: 06-11-2007, 09:07 PM
  4. Domain admin delegation
    By Klug in forum Administrators
    Replies: 0
    Last Post: 11-27-2006, 07:48 AM
  5. Replies: 4
    Last Post: 07-13-2006, 09:55 PM

Posting Permissions

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