#email #smtp #mailer


Set of transports to deliver mail to, notably to SMTP/LMTP, but also maildir

6 releases (3 breaking)

0.13.0 Aug 4, 2021
0.12.0 Feb 6, 2021
0.5.0 Nov 21, 2020
0.4.4 Oct 30, 2020
0.4.4-samotop-dev Oct 28, 2020

#41 in Email

44 downloads per month
Used in 2 crates (via samotop)



samotop-delivery 0.13.0

Mail dispatch abstraction

samotop-delivery is a set of transports to deliver mail to, notably to SMTP/LMTP, but also maildir... It is used in Samotop as a dispatch solution for incoming mail, but you can use it to send mail, too.


  • Do it SMTP style:
    • Speak SMTP
    • Speak LMTP
    • Connect over TCP
    • Connect over Unix sockets
    • Connect to a Child process IO
    • TLS support on all connections
    • Reuse established connections
  • Do it locally:
    • Write mail to a MailDir
    • Write mail to lozizol journal
    • Write mail to an MBox file - contributions welcome
    • Write mail to a single dir - fit for debug only
  • Popular integrations:
    • Send mail with sendmail

LMTP on Unix socket enables wide range of local delivery integrations, dovecot or postfix for instance. Some mail delivery programs speak LMTP, too.


This is a fork of async-smtp from the awesome delta.chat project.

License - MIT OR Apache-2.0

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~101K SLoC