mda-lmtp(1)

πŸ“¦
version 1.18.0 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’Œ mda-lmtp β€” the manual, but make it make sense

okay bestie, gather round, because we're talking about mda-lmtp from the mda-lmtp(1) manual, and honestly? it's giving "small tool, big job" energy. πŸ’…


✨ NAME ✨

mda-lmtp β€” an MDA that uses LMTP to do the mail delivery πŸ¦‹

(an MDA is a Mail Delivery Agent, iykyk, and this one's whole personality is "I hand your mail to LMTP and I do it well") πŸ’–


✨ SYNOPSIS ✨

mda-lmtp [-addr_network net] -addr addr -d recipient -f from

that's the whole vibe check right there. one line, four-ish flags, no drama. πŸ‘‘


✨ DESCRIPTION ✨

so. mda-lmtp is a very basic MDA that uses LMTP to do the mail delivery. lowkey humble, highkey useful. πŸŽ€

it takes command line arguments similar to maildrop or procmail, reads an email via standard input, and sends it over the given LMTP server. and the way it's flexible?? it supports connecting to LMTP servers over UNIX sockets and TCP. versatile queen. 🌈

it can be used when your mail server does not support LMTP directly. literally the friend who shows up when the group chat can't figure it out. 🫢


✨ EXAMPLE ✨

here's what it looks like in the wild, and yes it ate:

mda-lmtp --addr=localhost:1234 -f juan@casa -d jose < email

juan@casa is sending, jose is receiving, localhost:1234 is the LMTP server, and email gets piped in through stdin. main character pipeline behaviour, no cap. πŸ’«


✨ OPTIONS ✨

one bullet per flag, bestie, because we do NOT skip options in this house πŸ πŸ’•

  • -addr address β€” the LMTP server address you want to connect to. that's it, that's the whole thing. πŸ“¬
  • -addr_network network β€” the network of the LMTP address (e.g. unix or tcp). if it's not present, it will be autodetected from the address itself. she's self-sufficient, we love that. ✨
  • -d recipient β€” the recipient. who's getting the mail. the lucky one. 🎁
  • -f from β€” whom the message is from. the sender. the origin story. πŸ’Œ

✨ RETURN VALUES ✨

exit codes matter, bestie, they're how your scripts know what happened πŸ‘€

  • 0 β€” success. we love a happy ending. πŸ₯³
  • 75 β€” temporary failure. not today, but maybe tomorrow. πŸ™ˆ
  • other β€” permanent failures (usually indicate misconfiguration). and yeah, that's the usually indicate misconfiguration one, so check your flags before you spiral. 😭

✨ SEE ALSO ✨


ngl bestie, if your mail server refuses to speak LMTP directly, this is your girl. treat her right and she'll deliver. 🌸

that's the whole page, fr fr. this was mda-lmtp(1) from the mda-lmtp manual, dated 2018-04-02 β€” yes, she's been iconic since 2018 and she's still slaying. πŸŽ€πŸ’–βœ¨ periodt.

πŸ“¦ where this page comes from