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

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 05-12-2006, 02:42 AM
Active Member
 
Posts: 49
Default

I tried this on ZCS 3.1 and am only getting the disclaimer on incoming messages and would like just the opposite. Did I do a step incorrectly? How would I debug? I'm using the original steps posted by Dux T.

It seems that mail does go thru, but add_disclaimer is only being run when mail is received, not sent....

Last edited by cutigersfan; 05-12-2006 at 03:43 AM..
Reply With Quote
  #22 (permalink)  
Old 05-12-2006, 07:16 AM
Active Member
 
Posts: 49
Default More investigation

One more thing to add. I'm not sure if this makes a difference, but I do have "Relay MTA for external delivery" and "Web mail MTA Hostname" to my isp's smtp server. Does this cause add_disclaimer to not get called?
Reply With Quote
  #23 (permalink)  
Old 05-12-2006, 01:29 PM
Intermediate Member
 
Posts: 20
Default

Quote:
Originally Posted by cutigersfan
I tried this on ZCS 3.1 and am only getting the disclaimer on incoming messages and would like just the opposite. Did I do a step incorrectly? How would I debug? I'm using the original steps posted by Dux T.

It seems that mail does go thru, but add_disclaimer is only being run when mail is received, not sent....
Did you replace the example.com in the regex for the middle grep with a list of domains that are internal (pipe seperated)

You should be able to see from the postfix logs the path taken by the message.

It could also be a problem with the content_filter line in your main.cf or master.cf confs.
Reply With Quote
  #24 (permalink)  
Old 05-13-2006, 06:40 PM
Active Member
 
Posts: 49
Default

No I used the original post, not the modified one with the regex expression. I was going to add that in later.
Reply With Quote
  #25 (permalink)  
Old 05-14-2006, 05:57 PM
Active Member
 
Posts: 49
Default

simonellistonball,
I tried watching the logs to see the path mail was taking. To do this I used 'tail -f zimbra.log'. When mail comes in, I see the path and see the disclaimer pipe activated. However, when mail goes out, there is no activity in the log at all. I'm not sure if this is because I do have a relay host defined. Am I looking in the right place. Any other suggestions?

Thanks!
Reply With Quote
  #26 (permalink)  
Old 05-15-2006, 08:43 AM
Active Member
 
Posts: 49
Default

Ok, I figured this out. I had a setting in the "Web mail MTA Hostname". I guess I don't need it set, so removing it caused everything else to come in line. It seems to work now.

The one thing I do need to add is support for an additional domain. Can someone give me an example of how this might be done?

Thanks,
Reply With Quote
  #27 (permalink)  
Old 10-21-2008, 09:21 AM
Active Member
 
Posts: 41
Default

I know this is an old thread, but it is REALLY USEFUL to have that tar file as a working example of filtering emails! Thanks, Dux T!

My only question is, why is "putmail.py" needed? What would be wrong with just using /opt/zimbra/bin/sendmail -i? Is it just that you need something to talk SMTP on a different port (10026)?

We've found that zmlmtpinject doesn't work if you have aliases.
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.