aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dma
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2010-10-27 15:59:52 +0800
committerbapt <bapt@FreeBSD.org>2010-10-27 15:59:52 +0800
commit38398883d0cabf157c8c5eeaf0ad2a97420cd3d0 (patch)
tree94b5b54247dee48fd00af2211b022ac67f3af4f6 /mail/dma
parent9fcd6c0c572c292c3070b090ae3451145e8b191b (diff)
downloadfreebsd-ports-gnome-38398883d0cabf157c8c5eeaf0ad2a97420cd3d0.tar.gz
freebsd-ports-gnome-38398883d0cabf157c8c5eeaf0ad2a97420cd3d0.tar.zst
freebsd-ports-gnome-38398883d0cabf157c8c5eeaf0ad2a97420cd3d0.zip
Add rc script to allow to flush queue on startup and shutdown
bump portrevision Submitted by: bz@ (by email)
Diffstat (limited to 'mail/dma')
-rw-r--r--mail/dma/Makefile2
-rw-r--r--mail/dma/files/pkg-message.in11
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/dma/Makefile b/mail/dma/Makefile
index b6ee330bb34d..2cbfb9b96fe2 100644
--- a/mail/dma/Makefile
+++ b/mail/dma/Makefile
@@ -11,6 +11,7 @@
PORTNAME= dma
# commit f54b5114efc65d0e31c7b612bd59cc1b7c8cd8dc
PORTVERSION= 20101004
+PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= LOCAL/bz
@@ -28,6 +29,7 @@ MAN8= dma.8
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
+USE_RC_SUBR= dma_flushq
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
diff --git a/mail/dma/files/pkg-message.in b/mail/dma/files/pkg-message.in
index 84f9ec179a51..222e93c2a2ad 100644
--- a/mail/dma/files/pkg-message.in
+++ b/mail/dma/files/pkg-message.in
@@ -4,6 +4,7 @@ referring to another MTA with the following:
sendmail %%PREFIX%%/libexec/dma
send-mail %%PREFIX%%/libexec/dma
+mailq %%PREFIX%%/libexec/dma
If you not need sendmail anymore, please add in your rc.conf:
@@ -12,6 +13,16 @@ sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
+if you want anything in your queue to be flushed at on boot or before
+shutdown, add the following to rc.conf as well:
+
+dma_flushq_enable="YES"
+
+you can also add a cronjob to do regular mailq flushes using the following
+command:
+
+%%PREFIX%%/libexec/dma -q
+
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file: