1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

mail/nmh*: Change default mail transport method

nmh supports three mail transport methods: smtp, which submits email to
the submission port (587), sendmail/smtp, submitting SMTP to the MTA
through a pipe, and sendmail/pipe, submitting raw email to the MTA where
the MTA extracts the from and to headers from the email itself, using
sendmail -t.

The reason for this change is to support the upcoming 14-CURRENT
switchover from sendmail to dma (DragonflyBSD Mail Agent). The dma agent
only supports SMTP over port 25 and works well using sendmail -t while
all other transport methods do not work.

This change only affects new installs of nmh and nmh-devel.  Users of
existing nmh installations who wish to use the new dma agent will need
to alter ${LOCALBASE}/etc/nmh/mts.conf by hand by changing the mts
statement to mts: sendmail/pipe. The existing file is not altered when
pkg upgrade is invoked. However users of sendmail in base, sendmail
port, postfix, exim, and qmail are not affected by this and may use
their existing mts.conf.

The dma agent is not currently installed by default but users may install
it by enabling MK_DMAGENT in src.conf and building/installing 14-CURRENT
world. This patch allows nmh to work with dma agent when it is installed
and made to be the default MTA in /etc/mail/mailer.conf.
This commit is contained in:
Cy Schubert 2022-02-06 16:46:15 -08:00
parent 76cf00ffc7
commit 726505d2f9
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= nmh
PORTVERSION= ${NMH_COMMIT_DATE}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
PKGNAMESUFFIX= -devel
@ -83,7 +83,7 @@ W3M_DESC= Install dependencies for www/w3m
W3M_BUILD_DEPENDS= w3m>=0:www/w3m
W3M_RUN_DEPENDS= w3m>=0:www/w3m
OPTIONS_DEFAULT= SMTP FLOCK W3M
OPTIONS_DEFAULT= SENDMAIL_PIPE FLOCK W3M
.include <bsd.port.options.mk>

View File

@ -2,7 +2,7 @@
PORTNAME= nmh
PORTVERSION= 1.7.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= SAVANNAH
@ -77,7 +77,7 @@ W3M_DESC= Install dependencies for www/w3m
W3M_BUILD_DEPENDS= w3m>=0:www/w3m
W3M_RUN_DEPENDS= w3m>=0:www/w3m
OPTIONS_DEFAULT= SMTP FLOCK W3M
OPTIONS_DEFAULT= SENDMAIL_PIPE FLOCK W3M
.include <bsd.port.options.mk>