←back to thread

297 points mooreds | 1 comments | | HN request time: 0.411s | source
Show context
iruoy ◴[] No.42175560[source]
A tool like this is very useful, but this one isn't being maintained anymore. MailHog isn't either.

MailPit, MailCrab and smtp4dev are modern alternatives.

https://github.com/axllent/mailpit

https://github.com/tweedegolf/mailcrab

https://github.com/rnwood/smtp4dev

replies(17): >>42175787 #>>42175928 #>>42176115 #>>42176725 #>>42176926 #>>42177546 #>>42177804 #>>42178339 #>>42178590 #>>42178720 #>>42179230 #>>42180316 #>>42182891 #>>42183452 #>>42183958 #>>42184126 #>>42187070 #
Onavo ◴[] No.42178720[source]
What’s the easiest way to receive email programmatically without having to resort to a hosted service like SES? Is the SMTP protocol simple enough that it can be implemented in for example a serverless lambda?
replies(4): >>42179103 #>>42179588 #>>42179838 #>>42183360 #
1. aforwardslash ◴[] No.42179588[source]
The easy answer is to use an smtp server; many languages have stable packages to implement that. You can also use postfix with procmail or exim - leave the smtp stuff to tried and true packages, and have your code receive messages either via maildir or direct scripting.

The long answer is: first make sure you don't have a blacklisted IP; ask your cloud provider for permission to enable an MTA (mail transfer agent) and have fun seeing 99% of your email traffic being either brute force auth attempts or spam delivery attempts.