As far as I know, you can do that by creating a Java class which implemnts com.zimbra.cs.lmtpserver.LmtpCallback interface's afterDelivery method
and adding that to com.zimbra.cs.lmtpserver.ZimbraLmtpBackend with addCallback method.
So that every time Zimbra Store receives an email with lmtp from ZimbraMTA, the afterDelivery method is called.
Actually there are two lmtpcallback implematations already included in Zimbra Source Code.
One is com.zimbra.cs.mailbox.Notification. The other is com.zimbra.cs.mailbox.QuotaWarning. (I think both Class names tell you what those are for.)
Those must be some guide for you to do implementation.
I think I wrote about this some months ago.
Maybe I better write about this on Wiki.
Anyway, I hope it will help you. |