1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-16 14:27:01 +00:00

mda-lmtp: Add a very basic MDA that uses LMTP to do the mail delivery.

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
This commit is contained in:
Alberto Bertogli
2017-07-13 21:11:27 +01:00
parent 10427d7f49
commit 82a1e4597f
8 changed files with 253 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ endif
default: chasquid
all: chasquid chasquid-util smtp-check spf-check
all: chasquid chasquid-util smtp-check spf-check mda-lmtp
chasquid:
@@ -30,16 +30,19 @@ smtp-check:
spf-check:
go build ${GOFLAGS} ./cmd/spf-check/
mda-lmtp:
go build ${GOFLAGS} ./cmd/mda-lmtp/
test:
go test ${GOFLAGS} ./...
setsid -w ./test/run.sh
setsid -w ./cmd/chasquid-util/test.sh
setsid -w ./cmd/mda-lmtp/test.sh
install-binaries: chasquid chasquid-util smtp-check
install-binaries: chasquid chasquid-util smtp-check mda-lmtp
mkdir -p /usr/local/bin/
cp -a chasquid chasquid-util smtp-check /usr/local/bin/
cp -a chasquid chasquid-util smtp-check mda-lmtp /usr/local/bin/
install-config-skeleton:
if ! [ -d /etc/chasquid ] ; then cp -arv etc / ; fi
@@ -51,4 +54,4 @@ install-config-skeleton:
fi
.PHONY: chasquid chasquid-util smtp-check spf-check test
.PHONY: chasquid chasquid-util smtp-check spf-check mda-lmtp test