aboutsummaryrefslogtreecommitdiff
path: root/mail/dma
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2010-10-27 07:59:52 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2010-10-27 07:59:52 +0000
commite028a2f9bf21023c33f88f5848760acb07c894fb (patch)
treeb09770bf69c2f77442cdfeb5c43c0a3c84cd3319 /mail/dma
parent5ebf3bd3775f7eb52d1b29845f17d7a82fde4c53 (diff)
downloadports-e028a2f9bf21023c33f88f5848760acb07c894fb.tar.gz
ports-e028a2f9bf21023c33f88f5848760acb07c894fb.zip
Add rc script to allow to flush queue on startup and shutdown
bump portrevision Submitted by: bz@ (by email)
Notes
Notes: svn path=/head/; revision=263644
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: