I’m currently exploring the possibility of setting up a hook trigger that activates whenever our hosted Mailcow server receives an email. The objective is to have this trigger execute a script that sends all relevant information from the received email to a custom URL as a request trigger.

I understand that Mailcow offers IMAP for receiving emails, but I’m seeking a more passive approach, ideally avoiding the need for a cron job to scan the IMAP folder. If anyone has experience or suggestions on implementing such a setup, I would greatly appreciate your guidance.

Thank you in advance for your assistance!

  • Thanks for your answer. I don’t think it’s a good way. Anyway, I found the way, we will use the Sieve filter to inject an executed file and run it with every incoming email through the server

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

13 days later

Thanks for your answer. I don’t think it’s a good way. Anyway, I found the way, we will use the Sieve filter to inject an executed file and run it with every incoming email through the server

  • Minz replied to this.
    a month later

    walter-234
    Can you elaborate on your sieve setup?
    I am currently trying to pipe from sieve to a custom script but can’t quite get it to work.

    No one is typing