From 0306ab1e234fe1f12e18e4e9cdb2cbc6479fc471 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 2 May 2010 11:41:07 +0000 Subject: Run as group mailnull to assist postfix --- mail/milter-greylist/Makefile | 2 +- mail/milter-greylist/files/milter-greylist.in | 2 +- mail/milter-greylist/files/patch-greylist.conf | 2 +- mail/milter-greylist/pkg-plist | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/milter-greylist/Makefile b/mail/milter-greylist/Makefile index 10916d989a9f..6f93f2c82a17 100644 --- a/mail/milter-greylist/Makefile +++ b/mail/milter-greylist/Makefile @@ -95,7 +95,7 @@ do-install: post-install: @${MKDIR} /var/milter-greylist - @${CHOWN} -R mailnull /var/milter-greylist + @${CHOWN} -R mailnull:mailnull /var/milter-greylist .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} diff --git a/mail/milter-greylist/files/milter-greylist.in b/mail/milter-greylist/files/milter-greylist.in index 72aeb3d65a97..5a6afb472c83 100644 --- a/mail/milter-greylist/files/milter-greylist.in +++ b/mail/milter-greylist/files/milter-greylist.in @@ -24,7 +24,7 @@ command="%%PREFIX%%/libexec/milter-greylist" load_rc_config $name miltergreylist_enable=${miltergreylist_enable-"NO"} -miltergreylist_runas=${miltergreylist_runas-"mailnull"} +miltergreylist_runas=${miltergreylist_runas-"mailnull:mailnull"} miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"} miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"} miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"} diff --git a/mail/milter-greylist/files/patch-greylist.conf b/mail/milter-greylist/files/patch-greylist.conf index 6a0c17360e28..dcb88e3f6618 100644 --- a/mail/milter-greylist/files/patch-greylist.conf +++ b/mail/milter-greylist/files/patch-greylist.conf @@ -5,7 +5,7 @@ dumpfile "/var/milter-greylist/greylist.db" 600 dumpfreq 1 -user "smmsp" -+user "mailnull" ++user "mailnull:mailnull" # Log milter-greylist activity to a file #stat ">>/var/milter-greylist/greylist.log" \ diff --git a/mail/milter-greylist/pkg-plist b/mail/milter-greylist/pkg-plist index 41254f195013..d573f59c5e63 100644 --- a/mail/milter-greylist/pkg-plist +++ b/mail/milter-greylist/pkg-plist @@ -3,7 +3,7 @@ etc/mail/greylist.conf.sample %%PORTDOCS%%%%DOCSDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/greylist.conf @exec /bin/mkdir -p /var/milter-greylist -@exec /usr/sbin/chown -R mailnull /var/milter-greylist +@exec /usr/sbin/chown -R mailnull:mailnull /var/milter-greylist @exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n\n************************************************************\n************************************************************\n** **\n** WARNING **\n** **\n** The default dump file location has changed. **\n** Please move greylist.db from /var/db/milter-greylist/ **\n** to /var/milter-greylist/ and update your greylist.conf **\n** accordingly. **\n** **\n************************************************************\n************************************************************\n' ||true %%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -- cgit