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 04-16-2007, 12:44 PM
Partner (VAR/HSP)
 
Posts: 110
Question Modify Not Junk behavior

We have our ZCS sitting behind an external MTA with Anti-Spam filtering going on before messages hit Zimbra. What I really need to do is figure out a way of modifying the system so that after a message is falsely marked as spam and placed in the Junk folder, when the user corrects the system by hitting "Not Junk" from the UI I need Zimbra to write a header to the message, put the message back in an envelope and re-inject the message back to the MTA for reprocessing. Any ideas out there?

I have thought about trying to create a message filter and setting zimbraMailTransport for the global HAM account, but I'm not sure this would work.
__________________
Peter LeBlond
Product Development Engineer
http://www.mxtoolbox.com

Reply With Quote
  #2 (permalink)  
Old 04-16-2007, 11:40 PM
Moderator
 
Posts: 2,207
Default

Can't you do it the other way round ?

I mean get your antispam gateway to check an IMAP folder on the ZCS server ?
Reply With Quote
  #3 (permalink)  
Old 04-17-2007, 12:21 PM
Partner (VAR/HSP)
 
Posts: 110
Default

The MTA is just that. It talks SMTP. I need Zimbra to send the message back to it via SMTP and then the logic in the MTA can determine if it needs to deliver back to the Zimbra server to be put in the Inbox, or to a different server elsewhere which is waiting for these messages.
__________________
Peter LeBlond
Product Development Engineer
http://www.mxtoolbox.com

Reply With Quote
  #4 (permalink)  
Old 04-17-2007, 08:29 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by peter@mxtoolbox.com View Post
We have our ZCS sitting behind an external MTA with Anti-Spam filtering going on before messages hit Zimbra. What I really need to do is figure out a way of modifying the system so that after a message is falsely marked as spam and placed in the Junk folder, when the user corrects the system by hitting "Not Junk" from the UI I need Zimbra to write a header to the message, put the message back in an envelope and re-inject the message back to the MTA for reprocessing. Any ideas out there?

I have thought about trying to create a message filter and setting zimbraMailTransport for the global HAM account, but I'm not sure this would work.
fetchmail is your friend ;-)

Fetchmail can keep track of what items have been grabbed before. Anything in the HAM folder by definition was misclassified (no header rewrite needed), and you can fetch it off of the server, and then use a tool like formail to do any rewriting, or just shove it back into the smtp queue. You can add a entry in a crontab to force fetchmail to run at a particular interval.

Your smtp filter will have to know not to try and re-deliver ham email messages once they have been sent.
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.