Inside our Go SMTP server: how authentication works without a database lookup
Mailclutch's sandbox is a purpose-built SMTP server written in Go. This is how it listens, negotiates TLS, authenticates a client with PLAIN or LOGIN, and rejects a forged credential at the socket — at HMAC cost, with no round trip to the application.