diff options
-rw-r--r-- | mail/dma/Makefile | 2 | ||||
-rw-r--r-- | mail/dma/files/pkg-message.in | 11 |
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: |