Results 1 to 4 of 4

Thread: Disclamimer trouble

  1. #1
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default Disclamimer trouble

    Am having trouble getting the disclaimer to work still!

    If I use the basic version, which assigns the disclaimer to both inwards and outwards travelling message I have no trouble. I have setup both a plain text and html version of my disclaimer message and they both work fine.
    However, when I try to use the version which just assigns it to outgoing messages I can not get it to work!

    This is my master.cf going by the Wiki instructions, (192.168.0.28 is the external network address of my Zimbra server);

    # 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)
    # ================================================== ========================
    192.168.0.28:smtp inet n - n - - smtpd
    127.0.0.1:smtp inet n - n - - smtpd
    -o content_filter=dfilt:
    #submission inet n - n - - smtpd
    # -o smtpd_etrn_restrictions=reject
    # -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
    #smtps 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
    # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
    #628 inet n - n - - qmqpd
    pickup fifo n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - n 300 1 oqmgr
    tlsmgr unix - - n 1000? 1 tlsmgr
    rewrite unix - - n - - trivial-rewrite
    bounce unix - - n - 0 bounce
    defer unix - - n - 0 bounce
    trace unix - - n - 0 bounce
    verify unix - - n - 1 verify
    flush unix n - n 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - n - - smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay unix - - n - - smtp
    -o fallback_relay=
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - n - - showq
    error unix - - n - - error
    discard unix - - n - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    scache unix - - n - 1 scache
    dfilt unix - n n - - pipe
    flags=Rq user=filter argv=/opt/zimbra/postfix/conf/disclaimer -f ${sender} -- ${recipient}
    #
    # ================================================== ==================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent. See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ================================================== ==================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    #
    # The Cyrus deliver program has changed incompatibly, multiple times.
    #
    old-cyrus unix - n n - - pipe
    flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    cyrus unix - n n - - pipe
    user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp unix - n n - - pipe
    flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail unix - n n - - pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
    flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    #
    # AMAVISD-NEW
    #
    smtp-amavis unix - - n - 10 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20
    127.0.0.1:10025 inet n - n - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o virtual_mailbox_maps=
    -o virtual_alias_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_ unknown_recipient_checks,no_address_mappings


    This way, no disclaimer is displayed on either out or in mail. If I put the;
    -o content_filter=dfilt:
    line next to the first line like this;

    192.168.0.28:smtp inet n - n - - smtpd
    -o content_filter=dfilt
    :

    Then I get the disclaimer on both in and out mail, I also get this if I put the disclaimer against both lines like this;

    192.168.0.28:smtp inet n - n - - smtpd
    -o content_filter=dfilt:
    127.0.0.1:smtp inet n - n - - smtpd
    -o content_filter=dfi
    lt:

    Because obviously this would be putting it on both in and out mail.

    What am I doing wrong? I have put the dfilt line further down but don't think it matters quite where it is as the disclaimer message does appear sometimes as stated above.

    Any help appreciated as I am getting hassled by my Boss to get this working!

    Russ

    p.s. Spelt Disclaimer wrong at top, what a fool!
    Last edited by russgalleywood; 03-05-2007 at 07:26 AM. Reason: error!

  2. #2
    Join Date
    Feb 2006
    Location
    Newcastle, UK
    Posts
    17
    Rep Power
    9

    Default

    Spotted this on a search for info about disclaimers and thought I'd add what I'd discovered, in case you haven't found a solution and our cases are similar...

    I made the same changes and couldn't get any outgoing disclaimers, then it dawned on my that by using the filter on 127.0.0.1 it'd only run it through alterMime if it was sent via. localhost, in otherwords, the AJAX client. Anything sent using an external client, like Thunderbird, would hit the address of eth0, 192.168.0.28 in your case, and append nothing.

    I followed the advice of the other topic you posted in regarding this, and added another IP - you can use a virtual interface if you need to , I have the luxury of 4 NIC's on this box :-)

    I ended up with the following at the top of my master.cf:

    Code:
    1.1.1.1:smtp    inet  n       -       n       -       -       smtpd   -o content_filter=dfilt:
    1.1.1.2:smtp    inet  n       -       n       -       -       smtpd
    127.0.0.1:smtp    inet  n       -       n       -       -       smtpd   -o content_filter=dfilt:
    ...where 1.1.1.1 is the address my users mail clients point to for SMTP and 1.1.1.2 is where my firewall forwards port 25 to. Works for me.

    Kev

  3. #3
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Thanks Kev.

    I thought about doing that but the post said there no was no longer any need to do it this way so I thought it was just me!

    I have two NIC's in the Server so i'll give it a go later.

    Cheers

    Russ

  4. #4
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    9

    Default

    Can confirm that this works with a Virtual network card address!

    It's a shame that all internal mail still gets the disclaimer but I can live with that!

    Thanks Kev



    Russ

Similar Threads

  1. having some trouble in install to FC6 X 64
    By Max Ma in forum Installation
    Replies: 2
    Last Post: 07-13-2007, 10:46 PM
  2. Trouble Ticket System ?
    By cyberkoa in forum Developers
    Replies: 3
    Last Post: 04-09-2007, 10:57 PM
  3. trouble with installing zimbra on debian sarge
    By b_52globemaster in forum Installation
    Replies: 20
    Last Post: 03-20-2007, 06:03 PM
  4. Osx zmamavisdctl trouble
    By bunam in forum Installation
    Replies: 2
    Last Post: 11-18-2006, 02:01 AM
  5. Trouble sending mail from Outlook/Express
    By emerlyn in forum Users
    Replies: 21
    Last Post: 01-12-2006, 10:32 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
  •