mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 17:05:14 -04:00
dma accepts mail from a local Mail User Agent (MUA) and delivers it locally or to a smarthost for delivery. dma does not accept inbound mail (i.e., it does not listen on port 25) and is not intended to provide the same functionality as a full MTA like postfix or sendmail. It is intended for use cases such as delivering cron(8) mail. which is the default configuration and usage of sendmail in the default setup of the base system. In order to switch the default from sendmail to dma, we teach mailwrapper to fallback on dma directly if the mailer.conf file cannot be opened. We install by default a mailer.conf file which points at dma We install a mailer.conf file for sendmail in the examples. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D37035
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.if ${MK_MAILWRAPPER} != "no"
|
|
PROG= mailwrapper
|
|
MAN= mailwrapper.8
|
|
|
|
LIBADD= util
|
|
.endif
|
|
|
|
.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} != "no"
|
|
SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \
|
|
../sbin/mailwrapper /usr/bin/newaliases \
|
|
mailwrapper /usr/sbin/hoststat \
|
|
mailwrapper /usr/sbin/purgestat \
|
|
mailwrapper /usr/sbin/sendmail
|
|
|
|
.if ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} != "no"
|
|
SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper
|
|
.elif ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} == "no" && ${MK_SENDMAIL} != "no"
|
|
SYMLINKS+= ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no"
|
|
SYMLINKS+= ..${BINDIR}/mailwrapper /bin/rmail
|
|
.endif
|
|
|
|
.if ${MK_SENDMAIL} != "no"
|
|
FILES= ${SRCTOP}/etc/mail/mailer.conf
|
|
FILESDIR= ${SHAREDIR}/examples/sendmail
|
|
.endif
|
|
|
|
.if ${MK_MAILWRAPPER} != "no"
|
|
# We install here if either dma(8) is enabled, or sendmail(8) isn't. In the
|
|
# latter scenario, we take care of the possibility that neither sendmail(8) nor
|
|
# dma(8) are installed and simply provide a default that can be changed for an
|
|
# alternative in ports.
|
|
.if ${MK_DMAGENT} != "no" || ${MK_SENDMAIL} == "no"
|
|
CONFS= ${SRCTOP}/libexec/dma/dmagent/mailer.conf
|
|
.else
|
|
CONFS= ${SRCTOP}/etc/mail/mailer.conf
|
|
.endif
|
|
CONFSDIR= /etc/mail
|
|
CONFSMODE= 644
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|