Script on Email

Kia Ora koutou,

I’m looking to run a script on emails that arrive to an address so that I can parse the email contents and update a website. Could anyone point me in the direction of how I might do this on MiAB?

Kia Ora,
Finn

MIAB’s Dovecot installation includes Sieve. This allows you to parse incoming emails and their texts and take actions.

See here for Sieve documentation. Sieve is accessed via port 4190 using STARTTLS

Roundcube provides access to some mail filtering using Sieve but not sufficient for what you need by the sounds of it.

If you do not know how to do Sieve scripting, a easier alternative is to forward your mails to a webhook Setting Up The Inbound Parse Webhook | Twilio