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

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
  #1 (permalink)  
Old 03-05-2007, 07:24 AM
Elite Member
 
Posts: 250
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!
Reply With Quote
  #2 (permalink)  
Old 03-14-2007, 04:35 AM
Intermediate Member
 
Posts: 17
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
Reply With Quote
  #3 (permalink)  
Old 03-14-2007, 05:10 AM
Elite Member
 
Posts: 250
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
Reply With Quote
  #4 (permalink)  
Old 03-14-2007, 08:28 AM
Elite Member
 
Posts: 250
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
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.