summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorjmelo <jmelo@FreeBSD.org>2006-09-08 19:15:59 +0000
committerjmelo <jmelo@FreeBSD.org>2006-09-08 19:15:59 +0000
commit14b58a799cbdb16c51311fdb04945d3135419390 (patch)
treecaf3de4f0cceb9a4bc1561aae890eea38447282f /mail
parentce0633a67fde9b939b841a7c6ec3846d58e2cbf9 (diff)
downloadFreeBSD-ports-14b58a799cbdb16c51311fdb04945d3135419390.zip
FreeBSD-ports-14b58a799cbdb16c51311fdb04945d3135419390.tar.gz
- Fix postfix MAIL_GID.
- Add message to users who uses postfix, should add SMTPHOST entry in mm_cfg.py. Submitted by: Adam Weinberger <adamw@FreeBSD.org> (via email)
Diffstat (limited to 'mail')
-rw-r--r--mail/mailman/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile
index 6903e59..b5fbd8a 100644
--- a/mail/mailman/Makefile
+++ b/mail/mailman/Makefile
@@ -87,7 +87,7 @@ MAIL_GID?= mail
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4)
BROKEN= choose only one MTA integration
.endif
-MAIL_GID?= nobody
+MAIL_GID?= mailman
.endif
.if defined(WITH_CHINESE)
@@ -109,7 +109,7 @@ PLIST_SUB+= SUB_HTDIG="@comment "
pre-fetch:
@${ECHO} ""
- @${ECHO} "You may change the following build options:"
+ @${ECHO} "You may change the following build options:"
@${ECHO} "MM_USERNAME=mailman The username of the Mailman user."
@${ECHO} "MM_USERID=91 The user ID of the Mailman user."
@${ECHO} "MM_GROUPNAME=mailman The group to which the Mailman user will belong."
@@ -166,5 +166,15 @@ post-install:
.endif
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
+.if defined(WITH_POSTFIX)
+ @if [ "x`${PREFIX}/sbin/postconf -h myhostname`" != "xlocalhost" ]; then \
+ ${ECHO_CMD} ""; \
+ ${ECHO_CMD} "Your Postfix hostname is non-default."; \
+ ${ECHO_CMD} -n "You must add \"\$$SMTPHOST = "; \
+ ${ECHO_CMD} -n `${PREFIX}/sbin/postconf -h myhostname`; \
+ ${ECHO_CMD} "\" to the bottom of mm_cfg.py."; \
+ ${ECHO_CMD} ""; \
+ fi
+.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud