pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/qmail-run
Module Name: pkgsrc
Committed By: schmonz
Date: Wed Nov 14 16:46:59 UTC 2018
Modified Files:
pkgsrc/mail/qmail-run: DESCR INSTALL MESSAGE Makefile PLIST
pkgsrc/mail/qmail-run/files: fixsmtpio mailer.conf smtpplugins
Added Files:
pkgsrc/mail/qmail-run/files: rcptchecks smtpfilters
Log Message:
On second thought, greylisting isn't a sensible default. Comment it out
in control/smtpplugins. Extract a "Greylisting" stanza in MESSAGE. Merge
"Local non-root users to see the queue" into previous section (and
provide qmail-qread-client in example mailer.conf to begin with).
Mention port numbers where applicable.
Enable defaults that are sensible: realrcptto in control/rcptchecks and
viruscan in control/smtpfilters.
Add fixsmtpio rules to make greylisting-spp's tempfails look more like
qmail's other messages.
Bump dependency on qmail for config-fast-pkgsrc, which is like
config-fast but lets us simulate CONF_FILES-like behavior. As before, we
install these minimal config files, and won't deinstall them. (But the
updated qmail package will.)
Bump version.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/mail/qmail-run/DESCR \
pkgsrc/mail/qmail-run/INSTALL
cvs rdiff -u -r1.13 -r1.14 pkgsrc/mail/qmail-run/MESSAGE
cvs rdiff -u -r1.57 -r1.58 pkgsrc/mail/qmail-run/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/mail/qmail-run/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mail/qmail-run/files/fixsmtpio \
pkgsrc/mail/qmail-run/files/smtpplugins
cvs rdiff -u -r1.5 -r1.6 pkgsrc/mail/qmail-run/files/mailer.conf
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/qmail-run/files/rcptchecks \
pkgsrc/mail/qmail-run/files/smtpfilters
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/qmail-run/DESCR
diff -u pkgsrc/mail/qmail-run/DESCR:1.7 pkgsrc/mail/qmail-run/DESCR:1.8
--- pkgsrc/mail/qmail-run/DESCR:1.7 Sat Oct 27 19:16:16 2018
+++ pkgsrc/mail/qmail-run/DESCR Wed Nov 14 16:46:58 2018
@@ -1,3 +1,3 @@
-This package creates all the needed config files to run qmail, provides
-wrappers for procmail, spamassassin, and rspamd and an example
-mailer.conf, and installs NetBSD-style rc.d scripts.
+This package creates the config files and NetBSD-style rc.d scripts
+needed to run qmail, and provides convenient wrappers for procmail,
+spamassassin, and rspamd.
Index: pkgsrc/mail/qmail-run/INSTALL
diff -u pkgsrc/mail/qmail-run/INSTALL:1.7 pkgsrc/mail/qmail-run/INSTALL:1.8
--- pkgsrc/mail/qmail-run/INSTALL:1.7 Sat Oct 27 19:16:16 2018
+++ pkgsrc/mail/qmail-run/INSTALL Wed Nov 14 16:46:58 2018
@@ -6,11 +6,17 @@ psmsg='#
case ${STAGE} in
POST-INSTALL)
- cd ${PREFIX}/share/qmail/setup && ./config-fast `./hostname`
+ cd ${PREFIX}/share/qmail/setup && ./config-fast-pkgsrc `./hostname`
- cd ${PKG_SYSCONFDIR}/control
+ cd ${PKG_SYSCONFDIR}/.pkgsrc-defaults-do-not-edit
for i in locals rcpthosts; do
- ${SORT} -u ${i} > ${i}.tmp && mv ${i}.tmp ${i}
+ ${SORT} -u ${i} > ${i}.tmp && ${MV} ${i}.tmp ${i}
+ done
+
+ cd ${PKG_SYSCONFDIR}
+ for i in defaultdomain locals me plusdomain rcpthosts; do
+ [ -f control/${i} ] \
+ || ${CP} .pkgsrc-defaults-do-not-edit/${i} control
done
cd ${PKG_SYSCONFDIR}/alias
Index: pkgsrc/mail/qmail-run/MESSAGE
diff -u pkgsrc/mail/qmail-run/MESSAGE:1.13 pkgsrc/mail/qmail-run/MESSAGE:1.14
--- pkgsrc/mail/qmail-run/MESSAGE:1.13 Tue Nov 13 16:34:58 2018
+++ pkgsrc/mail/qmail-run/MESSAGE Wed Nov 14 16:46:58 2018
@@ -1,35 +1,34 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.13 2018/11/13 16:34:58 schmonz Exp $
+$NetBSD: MESSAGE,v 1.14 2018/11/14 16:46:58 schmonz Exp $
Please read ${PREFIX}/share/doc/qmail-run/README.pkgsrc.
Assuming NetBSD-style mailwrapper(8) and rc(8), to enable qmail for...
-Local and outgoing deliveries:
+Local and outbound delivery:
- Check configuration in ${PKG_SYSCONFDIR} (especially alias/.qmail-*).
- Copy ${PREFIX}/share/examples/qmail-run/mailer.conf to /etc/mailer.conf.
-- Set qmailsend=YES in /etc/rc.conf.
+- Set qmailsend=YES and qmailqread=YES in /etc/rc.conf.
-Local non-root users to see the queue:
-- Change the mailq entry in /etc/mailer.conf to qmail-qread-client.
-- Set qmailqread=YES in /etc/rc.conf.
-
-Incoming SMTP deliveries:
-- Set qmailsmtpd=YES in /etc/rc.conf.
+Incoming SMTP on port 25:
- Add any qmail-rcptcheck programs to control/rcptchecks.
- Add any qmail-qfilter programs to control/smtpfilters.
-- Add any qmail-spp programs to control/smtpplugins.
-- Add any domains exempt from greylisting to control/greylist/exemptrcpthosts.
-- Add any addresses exempt from greylisting to control/greylist/exemptrcpts.
+- Add any qmail-spp programs (such as greylisting) to control/smtpplugins.
+- Set qmailsmtpd=YES in /etc/rc.conf.
-Outgoing authentication-only submission:
-- Set qmailofmipd=YES in /etc/rc.conf.
+Greylisting:
+- Add any exempt recipient addresses to control/greylist/exemptrcpts.
+- Add any exempt recipient domains to control/greylist/exemptrcpthosts.
+- Uncomment "greylisting-spp-with-exemptions" in control/smtpplugins.
+
+Authenticated submission on port 587:
- Add any qmail-qfilter programs to control/ofmipfilters.
+- Set qmailofmipd=YES in /etc/rc.conf.
-Fetching Maildirs via POP3:
+POP3 (for Maildirs only) on port 110:
- Set qmailpop3d=YES in /etc/rc.conf.
-TLS for incoming and outgoing SMTP, submission, and POP3:
+TLS encryption everywhere applicable:
- Create cert and DH params as instructed by the qmail package.
===========================================================================
Index: pkgsrc/mail/qmail-run/Makefile
diff -u pkgsrc/mail/qmail-run/Makefile:1.57 pkgsrc/mail/qmail-run/Makefile:1.58
--- pkgsrc/mail/qmail-run/Makefile:1.57 Tue Nov 13 16:34:58 2018
+++ pkgsrc/mail/qmail-run/Makefile Wed Nov 14 16:46:58 2018
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.57 2018/11/13 16:34:58 schmonz Exp $
+# $NetBSD: Makefile,v 1.58 2018/11/14 16:46:58 schmonz Exp $
#
-DISTNAME= qmail-run-20181113
+DISTNAME= qmail-run-20181114
CATEGORIES= mail
MASTER_SITES= # empty
DISTFILES= # empty
@@ -13,7 +13,7 @@ LICENSE= 2-clause-bsd
DEPENDS+= greetdelay-[0-9]*:../../mail/greetdelay
DEPENDS+= greylisting-spp-[0-9]*:../../mail/greylisting-spp
DEPENDS+= pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives
-DEPENDS_QMAIL= qmail>=1.03nb40:../../mail/qmail
+DEPENDS_QMAIL= qmail>=1.03nb41:../../mail/qmail
DEPENDS+= ${DEPENDS_QMAIL}
DEPENDS+= qmail-acceptutils>=20181108:../../mail/qmail-acceptutils
DEPENDS+= qmail-qfilter>1.5nb1:../../mail/qmail-qfilter
@@ -34,7 +34,7 @@ MESSAGE_SUBST+= PKG_SYSCONFBASE=${PKG_S
RCD_SCRIPTS= qmail qmailofmipd qmailpop3d qmailqread qmailsend qmailsmtpd
EGDIR= share/examples/qmail-run
-.for f in defaultdelivery fixsmtpio signatures \
+.for f in defaultdelivery fixsmtpio signatures rcptchecks smtpfilters \
pop3capabilities smtpcapabilities smtpplugins \
concurrencyincoming concurrencypop3 concurrencysubmission
CONF_FILES+= ${PREFIX}/${EGDIR}/${f} \
@@ -77,13 +77,13 @@ SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= mailer.conf
SUBST_FILES.paths+= greylisting-spp-with-exemptions ofmipd-with-user-cdb
SUBST_FILES.paths+= qmail-isspam-* qmail-procmail qmail-qread-client
-SUBST_FILES.paths+= smtpplugins tcp.*
+SUBST_FILES.paths+= rcptchecks smtpfilters smtpplugins tcp.*
SUBST_VARS.paths= PKGNAME PKG_SYSCONFDIR PREFIX
SUBST_VARS.paths+= CAT ECHO GREP SED SH SORT TRUE
post-extract:
for f in README.pkgsrc mailer.conf \
- defaultdelivery fixsmtpio signatures \
+ defaultdelivery fixsmtpio signatures rcptchecks smtpfilters \
pop3capabilities smtpcapabilities smtpplugins \
concurrencyincoming concurrencypop3 concurrencysubmission \
tcp.ofmip tcp.pop3 tcp.smtp; do \
@@ -103,7 +103,7 @@ do-install:
done
${INSTALL_DATA} ${WRKDIR}/README.pkgsrc \
${DESTDIR}${PREFIX}/share/doc/qmail-run
- for f in defaultdelivery fixsmtpio signatures \
+ for f in defaultdelivery fixsmtpio signatures rcptchecks smtpfilters \
pop3capabilities smtpcapabilities smtpplugins \
concurrencyincoming concurrencypop3 concurrencysubmission \
tcp.ofmip tcp.pop3 tcp.smtp; do \
Index: pkgsrc/mail/qmail-run/PLIST
diff -u pkgsrc/mail/qmail-run/PLIST:1.16 pkgsrc/mail/qmail-run/PLIST:1.17
--- pkgsrc/mail/qmail-run/PLIST:1.16 Tue Nov 13 16:34:58 2018
+++ pkgsrc/mail/qmail-run/PLIST Wed Nov 14 16:46:58 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2018/11/13 16:34:58 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.17 2018/11/14 16:46:58 schmonz Exp $
bin/greylisting-spp-with-exemptions
bin/ofmipd-with-user-cdb
bin/qmail-isspam-rspamd
@@ -16,8 +16,10 @@ share/examples/qmail-run/greylist-exempt
share/examples/qmail-run/greylist-exemptrcpts
share/examples/qmail-run/mailer.conf
share/examples/qmail-run/pop3capabilities
+share/examples/qmail-run/rcptchecks
share/examples/qmail-run/signatures
share/examples/qmail-run/smtpcapabilities
+share/examples/qmail-run/smtpfilters
share/examples/qmail-run/smtpplugins
share/examples/qmail-run/tcp.ofmip
share/examples/qmail-run/tcp.pop3
Index: pkgsrc/mail/qmail-run/files/fixsmtpio
diff -u pkgsrc/mail/qmail-run/files/fixsmtpio:1.2 pkgsrc/mail/qmail-run/files/fixsmtpio:1.3
--- pkgsrc/mail/qmail-run/files/fixsmtpio:1.2 Thu Nov 8 20:57:28 2018
+++ pkgsrc/mail/qmail-run/files/fixsmtpio Wed Nov 14 16:46:59 2018
@@ -13,6 +13,10 @@
# Replace hostname in QUIT response
:quit::2*::&fixsmtpio_fixup
+# Adjust greylisting-spp messages to look more qmail-ish
+:rcpt::451 GL - temporary*::451 greylisted, retry later (#4.7.1)
+:data::451 GL - temporary*::451 greylisted, retry later (#4.7.1)
+
########################################################################
### For users authenticated via authup(8):
Index: pkgsrc/mail/qmail-run/files/smtpplugins
diff -u pkgsrc/mail/qmail-run/files/smtpplugins:1.2 pkgsrc/mail/qmail-run/files/smtpplugins:1.3
--- pkgsrc/mail/qmail-run/files/smtpplugins:1.2 Tue Nov 13 16:34:58 2018
+++ pkgsrc/mail/qmail-run/files/smtpplugins Wed Nov 14 16:46:59 2018
@@ -12,7 +12,7 @@
# plugins to execute on RCPT command
[rcpt]
@PREFIX@/bin/qmail-rcptcheck
-@PREFIX@/bin/greylisting-spp-with-exemptions
+#@PREFIX@/bin/greylisting-spp-with-exemptions
# plugins to execute on DATA command
[data]
Index: pkgsrc/mail/qmail-run/files/mailer.conf
diff -u pkgsrc/mail/qmail-run/files/mailer.conf:1.5 pkgsrc/mail/qmail-run/files/mailer.conf:1.6
--- pkgsrc/mail/qmail-run/files/mailer.conf:1.5 Wed Nov 25 12:51:30 2015
+++ pkgsrc/mail/qmail-run/files/mailer.conf Wed Nov 14 16:46:59 2018
@@ -1,10 +1,10 @@
-# $NetBSD: mailer.conf,v 1.5 2015/11/25 12:51:30 jperkin Exp $
+# $NetBSD: mailer.conf,v 1.6 2018/11/14 16:46:59 schmonz Exp $
#
# Use qmail as the system mailer.
#
sendmail @PREFIX@/bin/sendmail
send-mail @PREFIX@/bin/sendmail
-mailq @PREFIX@/bin/qmail-qread
+mailq @PREFIX@/bin/qmail-qread-client
newaliases @PREFIX@/bin/newaliases
hoststat @PREFIX@/bin/qmail-tcpto
purgestat @PREFIX@/bin/qmail-tcpok
Added files:
Index: pkgsrc/mail/qmail-run/files/rcptchecks
diff -u /dev/null pkgsrc/mail/qmail-run/files/rcptchecks:1.1
--- /dev/null Wed Nov 14 16:46:59 2018
+++ pkgsrc/mail/qmail-run/files/rcptchecks Wed Nov 14 16:46:59 2018
@@ -0,0 +1 @@
+@PREFIX@/bin/qmail-rcptcheck-realrcptto
Index: pkgsrc/mail/qmail-run/files/smtpfilters
diff -u /dev/null pkgsrc/mail/qmail-run/files/smtpfilters:1.1
--- /dev/null Wed Nov 14 16:46:59 2018
+++ pkgsrc/mail/qmail-run/files/smtpfilters Wed Nov 14 16:46:59 2018
@@ -0,0 +1 @@
+@PREFIX@/bin/qmail-qfilter-viruscan
Home |
Main Index |
Thread Index |
Old Index