mda

mda; V 3; 2020-10-03; relay-only replacement for /usr/sbin/sendmail

Synopsis and description

mda [-d0.1] [-v] [-i] [-t] [-Fsender-name] [-fsender-address] [-Ggateway] [-Ssubject] [-Xlog-file] [-Ooption=value] recipient ...

The mda (mail delivery agent) is a sendmail(8) like program that reads a message from standard input and delivers it to a mail relay. It also replaces all line endings with the carriage return-newline sequence as required by RFC 821. The Bcc: header is removed from the message if there is one.

Downloading and compiling

GitLab: gitlab.com/Matlib/mda
Git clone: https://gitlab.com/Matlib/mda.git

Direct download links: Requirements:
  • none
Compiling and installing:

Launching just make is sufficient for GNU and FreeBSD. On Solaris you probably need to change the non-existing default compiler to gcc with make CC=gcc CXX=g++.

If you want to change the location of the configuration file, you have to modify the CONFIG_FILE variable with make CONFIG_FILE=path.

make help shows the defaults.

Examples

( echo -n 'To: <alice@bobs.company>
Bcc: <archive@bobs.company>
Subject: New files ';
date; echo; find . -mtime -1 ) | mda -ti