From 38398883d0cabf157c8c5eeaf0ad2a97420cd3d0 Mon Sep 17 00:00:00 2001 From: bapt Date: Wed, 27 Oct 2010 07:59:52 +0000 Subject: Add rc script to allow to flush queue on startup and shutdown bump portrevision Submitted by: bz@ (by email) --- mail/dma/Makefile | 2 ++ mail/dma/files/pkg-message.in | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'mail/dma') diff --git a/mail/dma/Makefile b/mail/dma/Makefile index b6ee330bb34..2cbfb9b96fe 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 diff --git a/mail/dma/files/pkg-message.in b/mail/dma/files/pkg-message.in index 84f9ec179a5..222e93c2a2a 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: -- cgit