A couple of months ago, I improved our erlang SMTP server code.
* Mon Oct 15: Support callbacks and more of the spec.
Support multiple forward paths. Support callbacks for verification and
delivery. Pass domain as well as mailbox for reverse and forward
paths. Cope with improper line termination. Log failures in delivery/verification
* Wed Oct 17: Split out smtp_util:strip_crlf; be RFC2821-strict about CRLF
git clone git://github.com/tonyg/erlang-smtp