Deliverability consultant and developer Martin Alexander has something cool to share: Inbound Email (SMTP) to Webhook. What this does is sets up an inbound mail server to capture and route inbound messages. This "minimal script" receives emails via SMTP, allows you to parse content and headers, store attachments in Amazon S3, and forward email content via webhook.
This could be super useful if you're looking to build a DMARC report processor, email tester, ticketing system, spamtrap catcher, or anything else where you'll want to receive and programmatically process inbound email messages.
This isn't the only tool in the world that can convert inbound email to webhooks. I'ved used Email Engine, by Andris Reinman, and I'm very much a fan. But that tool has a different focus. Email Engine meant to slurp messages from existing email accounts at an existing mailbox provider (like Gmail or Yahoo Mail) and hand those messages off via webhooks for further processing. Using existing inbox provider mailboxes for that purpose makes sense in some use cases (think deliverability testing), but not all. If you're trying to capture mail on a different scale, and do not want to be subject to mailbox provider storage limits or spam filtering, it'd make more sense to check out Martin's Inbound Email (SMTP) to Webhook tool instead.
Inbound Email (SMTP) to Webhook features:
SMTP server to receive emails concurrently
Parses incoming emails using mailparser
Uploads attachments to Amazon S3
Forwards parsed email content to a specified webhook
Configurable via environment variables
Handles large attachments gracefully
Robust queue system for processing multiple emails and webhook requests simultaneously
Deliverability consultant and developer Martin Alexander has something cool to share: Inbound Email (SMTP) to Webhook. What this does is sets up an inbound mail server to capture and route inbound messages. This "minimal script" receives emails via SMTP, allows you to parse content and headers, store attachments in Amazon S3, and forward email content via webhook.
This could be super useful if you're looking to build a DMARC report processor, email tester, ticketing system, spamtrap catcher, or anything else where you'll want to receive and programmatically process inbound email messages.
This isn't the only tool in the world that can convert inbound email to webhooks. I'ved used Email Engine, by Andris Reinman, and I'm very much a fan. But that tool has a different focus. Email Engine meant to slurp messages from existing email accounts at an existing mailbox provider (like Gmail or Yahoo Mail) and hand those messages off via webhooks for further processing. Using existing inbox provider mailboxes for that purpose makes sense in some use cases (think deliverability testing), but not all. If you're trying to capture mail on a different scale, and do not want to be subject to mailbox provider storage limits or spam filtering, it'd make more sense to check out Martin's Inbound Email (SMTP) to Webhook tool instead.
Inbound Email (SMTP) to Webhook features:
- SMTP server to receive emails concurrently
- Parses incoming emails using mailparser
- Uploads attachments to Amazon S3
- Forwards parsed email content to a specified webhook
- Configurable via environment variables
- Handles large attachments gracefully
- Robust queue system for processing multiple emails and webhook requests simultaneously
This is open source – you can check it out (and download it) here.Comments
Post a Comment
Comments policy: Al is always right. Kidding, mostly. Be polite, please and thank you.