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 10-19-2010, 01:16 AM
Junior Member
 
Posts: 7
Default Scan messages in store?

I know the AV/AS program can hook to postfix to perform real-time message scan, but is there any API exposed for other program to scan messages in the message store and take appropriate actions?
Reply With Quote
  #2 (permalink)  
Old 10-19-2010, 02:54 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by hydra View Post
I know the AV/AS program can hook to postfix to perform real-time message scan, but is there any API exposed for other program to scan messages in the message store and take appropriate actions?
They are just file on a HD and are easily accessible but you really don't want to scan and/or modify them do you? Perhaps it might help if you gave details of what you're trying to do.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-19-2010, 03:23 AM
Active Member
 
Posts: 35
Default

I hope i am not confescating your topic, but i am interested in the same thing. I would like to share my email (or contacts or tasks for that matter) from zimbra to an external application. This could be achieved by scanning the mails but preferably we would like zimbra to send a notification on change of the contacts. Without the user logging in to the webclient. Is this possible and if so, what would be the best way to achieve this?
Reply With Quote
  #4 (permalink)  
Old 10-19-2010, 04:12 AM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by phoenix View Post
They are just file on a HD and are easily accessible but you really don't want to scan and/or modify them do you? Perhaps it might help if you gave details of what you're trying to do.
Yes, I can scan the files directly, but if I take action on the file (like tag, quarantine, delete, etc), it will be inconsistent with its meta data that stored in db.
I'm evaluating zimbra to see if it's possible to develop a scan program for zimbra, which will include the functionality to scan messages in the store, so I would like to know if zimbra has any API that allow 3rd party program to take action on the messages in the store, just like the VSAPI in MS Exchange.
Reply With Quote
  #5 (permalink)  
Old 10-19-2010, 06:29 AM
Intermediate Member
 
Posts: 22
Default

What about using REST (ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki , never used it) or using IMAP (e.g. via perl and Mail::IMAPClient, which I know to work)
Reply With Quote
  #6 (permalink)  
Old 10-19-2010, 07:19 PM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by mfvm View Post
What about using REST (ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki , never used it) or using IMAP (e.g. via perl and Mail::IMAPClient, which I know to work)
It seems that both the REST API and SOAP API need authentication, i don't think it's suitable for a server-side message scanning program
Reply With Quote
  #7 (permalink)  
Old 10-20-2010, 12:21 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by hydra View Post
It seems that both the REST API and SOAP API need authentication, i don't think it's suitable for a server-side message scanning program
You may create a special admin user for that purpose and use SASL PLAIN Auth with IMAP - that works and is IMHO suitable for a server application.
Reply With Quote
  #8 (permalink)  
Old 10-20-2010, 12:42 AM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by mfvm View Post
You may create a special admin user for that purpose and use SASL PLAIN Auth with IMAP - that works and is IMHO suitable for a server application.
Do you mean I can use that special admin user to scan/modify messages in other users' mailbox?
Reply With Quote
  #9 (permalink)  
Old 10-20-2010, 12:45 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by hydra View Post
Do you mean I can use that special admin user to scan/modify messages in other users' mailbox?
Yes, yuo can. This is by the way the thing you are doing if you import users from another IMAP server via imapsync.
Reply With Quote
  #10 (permalink)  
Old 10-20-2010, 01:52 AM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by mfvm View Post
Yes, yuo can. This is by the way the thing you are doing if you import users from another IMAP server via imapsync.
How special is the admin user? And as I know, imapsync also needs the passwords to import user from other IMAP server, see the following command I copied from zimbra wiki:

perl imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates \
--host1 kerio.host.com --user1 user@host.com --password1 keriopasswd --sep1 "/" --prefix1 "" \
--host2 zimbra.host.com --user2 user@host.com --password2 zimbrapasswd
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.