Results 1 to 6 of 6

Thread: Run external program on new mail

  1. #1
    Pacific White is offline Starter Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    4

    Default Run external program on new mail

    Good afternoon Zimbra Community,

    this would be my first post here.

    My name is Manuel, I have 12 years of on and off programming experience in various environments. My current job in customer service for a entertainment rental company requires the occasional hack to the software we work on to get the job done better. Keeps me entertained.
    On a scale of 1 to 10 for programming skills I would probably give myself a 3.5, maybe a 4 on a good day. Just to give you an idea of who you are dealing with.

    Here is my challenge:

    Upon arrival of email to a specific mailbox I need to run a program to connect to a database, make some changes, send some confirmation emails, etc.
    I can easily accommodate all that in a php script, which would tie in nicely with some other webbased tools we are deploying.
    What I thus need is to be able to run a wget and pass the message, subject, sender, etc as parameters to the url.
    It has been a long time, but I would swear that I could easily realize that many years ago on a qmail server.
    Unfortunately I could not find any evidence of this being possible in zimbra.

    Any pointers are much appreciated.

    Thanks everybody.
    Manuel

  2. #2
    vmahajan is offline Zimbra Employee
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    5

    Default

    You could implement com.zimbra.cs.lmtpserver.LmtpCallback interface which has a method afterDelivery(), and register the implementation with com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.

    See Extending Zimbra with Server Extensions » Zimbra :: Blog for how you can deploy your custom code on a Zimbra server.

  3. #3
    zmchina is offline Active Member
    Join Date
    Oct 2009
    Location
    China
    Posts
    26
    Rep Power
    5

    Default

    Is there a list for Zimbra's available extension points?

  4. #4
    vmahajan is offline Zimbra Employee
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    5

    Default

    A few extensions points have been mentioned in the blog post but there isn't a list of all officially supported extension points as of now.

  5. #5
    zmchina is offline Active Member
    Join Date
    Oct 2009
    Location
    China
    Posts
    26
    Rep Power
    5

    Default

    ok. thank you.

  6. #6
    Pacific White is offline Starter Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    4

    Default

    Quote Originally Posted by vmahajan View Post
    You could implement com.zimbra.cs.lmtpserver.LmtpCallback interface which has a method afterDelivery(), and register the implementation with com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.

    See Extending Zimbra with Server Extensions » Zimbra :: Blog for how you can deploy your custom code on a Zimbra server.
    Thank you,

    I am looking into this. Will keep you posted.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 06:47 AM
  4. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM
  5. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •