Hmm, maybe you could create something usable by using transactional mails providers (e.g. mailgun) that supports webhooks. When you receive an email, it'll get forwarded into your endpoint via http webhook. Your endpoint could be hosted in some serverless services.