1
0
Fork
You've already forked mda
0
Simple mail delivery program that ships the message read from standard input to a preconfigured relay just like sendmail -i. Minimal implementation. No dependencies.
  • C++ 85.6%
  • Roff 11.7%
  • Makefile 2.3%
  • Shell 0.4%
Find a file
2020年10月05日 23:03:13 +00:00
src mda.cc: handle group addresses 2020年09月29日 22:20:37 +00:00
.gitignore .gitignore: add tmp/ 2020年09月29日 19:57:31 +00:00
Makefile Next version 2020年10月05日 23:02:54 +00:00
mda.conf New config file parameter: error mode 2020年07月18日 19:06:08 +00:00
mkman The man page 2020年07月11日 22:31:49 +00:00
README.md Documentation 2020年07月18日 23:11:30 +00:00

mda – relay only replacement for /usr/bin/sendmail

This program is a sendmail compatible replacement for the system mailer. It reads a message from standard input and forwards it to a predefined relay server. It does not handle mailboxes, not even for local delivery. It does not accept any mail from the outside world either.

If you need richer functionality (authentication, multiple personalities) you might want to try the esmtp program.

Compiling

A C++ compiler and make are needed to build the binary. Normally it is sufficient to execute make. This should compile the program in the bin/ directory and the manual page in the man/ directory.

The default compiler choice may be overriden with the CC and CXX parameters, i.e. make CC=gcc CXX=g++.

To change the location of the configuration file use the CONFIG_FILE parameter like make CONFIG_FILE=/var/etc/mda.conf.

Examples

Send a simple message to multiple recipients:

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

Send a text file setting the sender name as well as the subject. The return path is empty inhibiting automatic replies.

mda -i -F 'Feliĉa Co.' -f '' -S 'Mangó Sales' < mango_report

Author

Matt Latusek, matlib@matlibhax.com

GitLab project: https://gitlab.com/Matlib/mda