fork of github.com/chrj/smtpd
Timon Relitzki reported that some systems, for example the Synology DSM Rackstations, will send an extra space character with their SMTP commands. MAIL FROM:<christian@technobabble.dk> Becomes: MAIL FROM: <christian@technobabble.dk> This confused the command parser. In the spirit of the robustness principle if have choosen to improve the command parse to also handle these extra spaces. The command parser has also been extended with some extra unit tests, to demonstrate the problem. |
||
---|---|---|
examples/dkim-proxy | ||
.hgignore | ||
address.go | ||
envelope.go | ||
example_test.go | ||
LICENSE | ||
protocol.go | ||
protocol_test.go | ||
README.md | ||
smtpd.go | ||
smtpd_test.go | ||
wrap.go | ||
wrap_test.go |
Go smtpd 
Package smtpd implements an SMTP server in golang.
Features
- STARTTLS (using
crypto/tls
) - Authentication (PLAIN/LOGIN, only after STARTTLS)
- XCLIENT (for running behind a proxy)
- Connection, HELO, sender and recipient checks for rejecting e-mails using callbacks
- Configurable limits for: connection count, message size and recipient count
- Hands incoming e-mail off to a configured callback function
Feedback
If you end up using this package or have any feedback, I'd very much like to hear about it. You can reach me by email.