Ask HN: Scriptable IMAP/SMTP servers?

3 points by ceejayoz ↗ HN
I'm looking to build a mail system that can be accessed via normal IMAP/SMTP clients (mobile devices, Apple Mail/Thunderbird/Outlook, etc.) but with a decent scripting ability. The goal is to have inbound and outbound emails to be reviewed by a third party before they're delivered. Googling has revealed a number of dead tries at making a Node IMAP server, a long-dead Lua-scriptable IMAP server, but nothing particularly usable.

5 comments

[ 2.9 ms ] story [ 22.7 ms ] thread
I remember http://lamsonproject.org/ being a python SMTP server library thing. It may be possible to piece together something based on it. That covers the SMTP part.

Mind you, the git repo looks dead, with the last commit being over two years old.

Why reinvent the wheel. Setup mail delivery routing so mail goes to a different mail handling system first, if it's approved send it on to the final recipient.