mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
mda-lmtp is a very basic MDA that uses LMTP to do the mail delivery. It takes command line arguments similar to maildrop or procmail, reads an email via standard input, and sends it over the given LMTP server. Supports connecting to LMTP servers over UNIX sockets and TCP. Since chasquid does not support direct LMTP local delivery, this can be used as a workaround instead. Example of use: $ mda-lmtp --addr localhost:1234 -f juan@casa -d jose < email
32 lines
438 B
Plaintext
32 lines
438 B
Plaintext
|
|
nc unix_listen .test-sock
|
|
|
|
mda = ./mda-lmtp --addr=.test-sock --addr_network=unix \
|
|
-f from -d to < .data
|
|
|
|
nc -> 220 Hola desde expect
|
|
|
|
nc <~ LHLO .*
|
|
nc -> 250-Bienvenido!
|
|
nc -> 250 Contame...
|
|
|
|
nc <- MAIL FROM:<from>
|
|
nc -> 250 Aja
|
|
|
|
nc <- RCPT TO:<to>
|
|
nc -> 250 Aja
|
|
|
|
nc <- DATA
|
|
nc -> 354 Dale
|
|
|
|
nc <- Subject: test
|
|
nc <-
|
|
nc <- This is a test.
|
|
nc <- .
|
|
|
|
nc -> 452 Nananana
|
|
|
|
mda <- Delivery failed remotely: 452 Nananana
|
|
mda wait 75
|
|
|