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 Display Modes
  #21 (permalink)  
Old 11-27-2007, 03:20 AM
Advanced Member
 
Posts: 225
Default

Hi,

I never actually got it working with the one IP address and localhost suggestion.

But, it works perfectly with the ipconfig alias as per deugenin's earlier post

**Add an virtual interface:
For example:

(if your eth0=192.168.0.2)

1) ifconfig eth0:0 192.168.0.3 netmask 255.255.255.0
(this can be done with /etc/sysconfig/network-scripts/ifcfg-eth0:0 file)

2) Modify toy /opt/zimbra/postfix/conf/master.cf file:
127.0.0.1:smtp inet n - n - - smtpd
192.168.0.3:smtp inet n - n - - smtpd
192.168.0.2:smtp inet n - n - - smtpd
-o content_filter=dfilt
dfilt unix - n n - - pipe
flags=Rq user=root argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}

3) restart zimbra mta

And don't forget modify four external firewall to redirect incoming port 25 to 192.168.0.3 instead.**


So I set up 192.168.0.28 as outgoing and 192.168.0.30 as incoming but both on the same network card as an alias. I then set my firewall to send SMTP to 192.168.0.30, this then works perfectly.
I have now added a second network card so one card is now outgoing and one incoming. This also works perfectly.

Just remember the slightly annoying fact that Zimbra will overwrite these settings every time you upgrade!

Hope that helps, please elaborate on your issue if not.

Russ
Reply With Quote
  #22 (permalink)  
Old 11-27-2007, 07:59 AM
Project Contributor
 
Posts: 65
Default

Quote:
Originally Posted by russgalleywood View Post
Hi,

I never actually got it working with the one IP address and localhost suggestion.

But, it works perfectly with the ipconfig alias as per deugenin's earlier post
...
Yes @russgalleywood, if you have only one IP for incoming and outgoing email, all emails (in and out) will have a disclaimer... the solution is two IPs: one for incoming (without "dfilt" filter), and another for outgoing (with "dfilt" filter activated).

Now, I'm working in a new project for add this altermime solution into Zimbra LDAP (that is working now), and admin your domain disclaimers with a Admin Extension for Zimbra (working...)..

Pre-Howto in:
domain_disclaimer_ui [IT-Linux Wiki]

Note: we are working in this project, use it only in testing environments...
When it's working OK, we liberate into Zimbra Wiki...


Regards
Daniel
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #23 (permalink)  
Old 11-27-2007, 08:09 AM
Advanced Member
 
Posts: 225
Default

Thanks Daniel and well done on your good work.

This would be a very welcome feature.
Reply With Quote
  #24 (permalink)  
Old 11-27-2007, 09:54 AM
Active Member
 
Posts: 45
Default

My only problem with using two IPs is that my Zimbra box sits on an external IP and I don't have any more to spare.
Reply With Quote
  #25 (permalink)  
Old 11-27-2007, 09:58 AM
Project Contributor
 
Posts: 65
Default

@jpcaldwell, assume you have your Zimbra box with only one public IP...

you don't have any phisical internal interface for your LAN access?
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #26 (permalink)  
Old 11-27-2007, 10:03 AM
Active Member
 
Posts: 45
Default

Nope, our Zimbra box is hosted offsite
Reply With Quote
  #27 (permalink)  
Old 11-27-2007, 10:09 AM
Project Contributor
 
Posts: 65
Default

In that case, you must to set "dflit" filter to all incomming and outgoing messages, and need to modify your "disclaimer" script for check only "From: @your_domain.com" and set an disclaimer for this email... external emails "From: @another_domains.com" don't set an disclaimer in your "disclaimer" script...
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
  #28 (permalink)  
Old 11-30-2007, 06:39 AM
Project Contributor
 
Posts: 65
Default

There are a new Disclaimer tutorial, integrating domain disclaimers into LDAP schema, and a new Admin Extension for setup domain disclaimers.

Domain Disclaimer Extension Admin UI - Zimbra :: Wiki

/blog/archives/2007/11/domain_disclaimer_extension.html
__________________
Daniel Eugenin
http://www.it-linux.cl

Last edited by mmorse : 11-30-2007 at 12:22 PM.
Reply With Quote
  #29 (permalink)  
Old 12-03-2007, 04:13 AM
Junior Member
 
Posts: 7
Default

I've just tried getting this working on our server, but had a few issues.

I followed the steps line for line, and even tried copying/pasting the information to ensure i'd got it right, but still had the same problem.

I got to the stage where i did su zimbra and:
zmmtactl stop and zmmtactl start.

but after that, the last 3 lines i got were:

postfix/postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.2.9/conf/disclaimers
postfix/postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.2.9/conf/main.cf
postfix/postfix-script: starting the Postfix mail system


I understand the first 2 are only warnings, and are common? so shouldnt be a problem.

I then checked zimbra, did a Get Mail which ran fine(nothing came in).. but then tried sending an email. As soon as i pressed send i got:

a network service error has occured and the mail.log shows fatal: Queue report unavailable - mail system is down so im assuming postfix hasnt restarted.

I've tried this in simple form, and with the extra content "To ensure disclaimer is added only to outbound mail" and still get the same problem.

Any help is appreciated
Reply With Quote
  #30 (permalink)  
Old 12-03-2007, 05:40 AM
Project Contributor
 
Posts: 65
Default

RJones, there is my file permissions:

-rwxr-xr-x 1 root root 1468 Nov 27 18:21 check_disclaimers.sh
-rwxr-xr-x 1 root root 1451 Nov 29 14:43 disclaimer
drwxr-x--- 2 root zimbra 4096 Nov 30 10:01 disclaimers
-rw-r--r-- 1 zimbra zimbra 1725 Nov 30 09:31 main.cf
-rw-r--r-- 1 root zimbra 5291 Nov 28 18:06 master.cf


About the "network service error has occured...", check your master.cf configuration...

For the other side: your LDAP schemas is OK? as zimbra user:
zmprov gd domain.com | grep Signature
__________________
Daniel Eugenin
http://www.it-linux.cl
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0