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
  #1 (permalink)  
Old 11-22-2006, 05:44 PM
Advanced Member
 
Posts: 177
Default Where do I start?

First of all I have been playing with Zimbra for 2 days and I love what I see. I think Zimbra is the way we need to go for us and our clients. There is some functionality we wish to add. I have read up on zimlets but I do not think all of what we need to do can be done with a zimlet. For that I have these questions.

1) We currently plan to use/deploy the network version however I see that only the Open Source version is available via SVN. If what I want to change is in the network version am I screwed? If I find I need to extend some code how can I do that to affect the network version?

2) Initially what I need to do is implement a mail attachment policy. Currently attachments are either allowed or the whole message is bounced if the attachments are not allowed. I want to be able to have a policy that strips attachments (saves them off somewhere else) and replaces it with a message or do something else. I have this feeling that a zimlet won't do (well I may be wrong). I would need to apply this policy either when the attachments are selected or when the message is already in route to the MTA for delivery.

So can someone point me in the right direction.

Will I be making a zimlet for this or modifying base code?

Besides staring at the code for hours and hours is there a better way to find out where this type of logic would take place to narrow my focus.

thanks in advance

Doug
Reply With Quote
  #2 (permalink)  
Old 11-22-2006, 09:52 PM
Zimbra Employee
 
Posts: 4,792
Default

1) 99% of the code in in SVN only items like the connectors and extensions are not included. So patches/changes to the SVN tree can almost always be applied to the Network code. If you find that doesn't work for you send us an email (sales@ or support@) and we can talk about specific options

2) This should happen at the MTA layer. So need to add a content policy in postfix. Try searching on policyd as a start.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 11-23-2006, 07:36 AM
Zimbra Employee
 
Posts: 1,434
Default Alternative solution

Quote:
Originally Posted by KevinH View Post
2) This should happen at the MTA layer. So need to add a content policy in postfix. Try searching on policyd as a start.
Doing something with postfix is probably the best solution. If that's not workable for some reason, you may also be able to do this by creating an extension that registers a new MimeVisitor subclass as a message mutator.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 11-23-2006, 08:38 AM
Advanced Member
 
Posts: 177
Default

Thanks for the direction. Is there a WIKI or other posting that covers making an extension as you propose. Is this extension A Zimlet or are there other (documented or not) ways in which to extend Zimbra.

Thanks again and if you are celebrating today have a very Happy and safe Thanksgiving
Reply With Quote
  #5 (permalink)  
Old 11-24-2006, 10:18 PM
Zimbra Employee
 
Posts: 274
Default

http://bugzilla.zimbra.com/show_bug.cgi?id=12463#c1
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 11-26-2006, 05:55 AM
Advanced Member
 
Posts: 177
Default

Not trying to sound dense but the bugzilla link above was not extremely clear to me. Am I to glean from this that a bug was posted concerning the lack of documentation for extending the system? If so was the outcome to be status quo or will there be more docs?

thanks
Reply With Quote
  #7 (permalink)  
Old 11-26-2006, 06:03 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

There's a link in the bug report that points you to a server-side extension documentation page.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 11-26-2006, 06:21 AM
Advanced Member
 
Posts: 177
Default

I see it now. When I read "... documented elsewhere." I did not bother looking at the link as it led me think it was mired deep in some developers offline storage or something.

thanks
Reply With Quote
  #9 (permalink)  
Old 11-26-2006, 10:25 AM
Moderator
 
Posts: 7,928
Default

Take a look at MailScanner http://www.mailscanner.info

It integrates fine with Postfix and will do what you need. All you will need to do is change the main.cf so that all emails go into a hold queue, MailScanner will then process these and pass them back into the inbound queue so that Zimbra can process them.

As suggested earlier, also look at Policyd as you can start to Greylist based on whether the connection is a dialup/adsl user as that will help to reduce spam.

Some links for you :-

PolicyD
Restricted Greylisting
Image SPAM blocking via Spamassassin

Hope this helps.
Reply With Quote
  #10 (permalink)  
Old 11-27-2006, 11:27 AM
Advanced Member
 
Posts: 177
Default

Quote:
Originally Posted by uxbod View Post
Take a look at MailScanner http://www.mailscanner.info
I am looking at it but documentation is bleak. I am not a network engineer or sys admin and it seems to talk directly to that audience so I am lacking in alot of the background.
Quote:
Originally Posted by uxbod View Post
It integrates fine with Postfix and will do what you need. All you will need to do is change the main.cf so that all emails go into a hold queue, MailScanner will then process these and pass them back into the inbound queue so that Zimbra can process them.
This sounds great but how? I looked in the main.cf and I am now combing the postfix site and the only thing I can see is changing the content_filter line which now is set to amavisd-new. I know I do not want to change that setting.

I don't see anything on a holding queue and I am not sure how queues are implemented anyway. How do I make postfix send the mail to a holding queue? I know this is probably not the correct forum for this.

I enjoy learning new things but it pisses me off that I get these tasks that I have little background in that have to be done in 2 weeks. Sorry for the rant GRRRR
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.