Sat Dec 15 06:31:35 2018 UTC ()
Fix previous: required_files the tcprules, not the cdb (which gets
autogenerated if it doesn't exist). Point more actionably at SRS and TLS
setup docs. Bump version.


(schmonz)
diff -r1.65 -r1.66 pkgsrc/mail/qmail-run/Makefile
diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/README.pkgsrc
diff -r1.21 -r1.22 pkgsrc/mail/qmail-run/files/qmailofmipd.sh
diff -r1.29 -r1.30 pkgsrc/mail/qmail-run/files/qmailpop3d.sh
diff -r1.26 -r1.27 pkgsrc/mail/qmail-run/files/qmailsmtpd.sh

cvs diff -r1.65 -r1.66 pkgsrc/mail/qmail-run/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/Makefile 2018/12/14 06:49:30 1.65
+++ pkgsrc/mail/qmail-run/Makefile 2018/12/15 06:31:34 1.66
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.65 2018/12/14 06:49:30 schmonz Exp $ 1# $NetBSD: Makefile,v 1.66 2018/12/15 06:31:34 schmonz Exp $
2# 2#
3 3
4DISTNAME= qmail-run-20181214 4DISTNAME= qmail-run-20181215
5CATEGORIES= mail 5CATEGORIES= mail
6MASTER_SITES= # empty 6MASTER_SITES= # empty
7DISTFILES= # empty 7DISTFILES= # empty
8 8
9MAINTAINER= schmonz@NetBSD.org 9MAINTAINER= schmonz@NetBSD.org
10COMMENT= Configures qmail to receive and deliver mail 10COMMENT= Configures qmail to receive and deliver mail
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13DEPENDS+= greetdelay-[0-9]*:../../mail/greetdelay 13DEPENDS+= greetdelay-[0-9]*:../../mail/greetdelay
14DEPENDS+= greylisting-spp-[0-9]*:../../mail/greylisting-spp 14DEPENDS+= greylisting-spp-[0-9]*:../../mail/greylisting-spp
15DEPENDS+= pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives 15DEPENDS+= pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives
16DEPENDS_QMAIL= qmail>=1.03nb42:../../mail/qmail 16DEPENDS_QMAIL= qmail>=1.03nb42:../../mail/qmail
17DEPENDS+= ${DEPENDS_QMAIL} 17DEPENDS+= ${DEPENDS_QMAIL}

cvs diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/README.pkgsrc (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/README.pkgsrc 2018/12/14 06:49:31 1.6
+++ pkgsrc/mail/qmail-run/files/README.pkgsrc 2018/12/15 06:31:34 1.7
@@ -25,31 +25,31 @@ Greylisting: @@ -25,31 +25,31 @@ Greylisting:
25 then run "/etc/rc.d/qmailsmtpd cdb". 25 then run "/etc/rc.d/qmailsmtpd cdb".
26- Uncomment "greylisting-spp-wrapper" in control/smtpplugins. 26- Uncomment "greylisting-spp-wrapper" in control/smtpplugins.
27 27
28Authenticated message submission on port 587: 28Authenticated message submission on port 587:
29- Set qmailofmipd=YES in /etc/rc.conf. 29- Set qmailofmipd=YES in /etc/rc.conf.
30- Add any qmail-qfilter programs to control/ofmipfilters. 30- Add any qmail-qfilter programs to control/ofmipfilters.
31- Run "/etc/rc.d/qmailofmipd start". 31- Run "/etc/rc.d/qmailofmipd start".
32 32
33POP3 (for Maildirs only) on port 110: 33POP3 (for Maildirs only) on port 110:
34- Set qmailpop3d=YES in /etc/rc.conf. 34- Set qmailpop3d=YES in /etc/rc.conf.
35- Run "/etc/rc.d/qmailpop3d start". 35- Run "/etc/rc.d/qmailpop3d start".
36 36
37TLS encryption for SMTP, submission, POP3, and remote delivery: 37TLS encryption for SMTP, submission, POP3, and remote delivery:
38- Create cert and DH params (as instructed by the qmail package). 38- Create cert and DH params (follow steps in `pkg_info -qD qmail`).
39- Run "/etc/rc.d/qmail restart". 39- Run "/etc/rc.d/qmail restart".
40 40
41Sender Policy Framework: 41Sender Policy Framework:
42- Configure Sender Rewriting Scheme (as instructed by the qmail package) 42- Configure Sender Rewriting Scheme (see ${PREFIX}/share/doc/qmail/README.srs)
43 so your auto-forwarded messages will reach servers that choose to 43 so your auto-forwarded messages will reach servers that choose to
44 enforce the forwarded domains' SPF policies. 44 enforce the forwarded domains' SPF policies.
45- Publish a DNS TXT record with your desired policy. 45- Publish a DNS TXT record with your desired policy.
46- Incoming messages that explicit-fail published policy are nonetheless 46- Incoming messages that explicit-fail published policy are nonetheless
47 accepted. To reject -- including rejecting auto-forwarded messages 47 accepted. To reject -- including rejecting auto-forwarded messages
48 from servers that haven't configured SRS -- add 48 from servers that haven't configured SRS -- add
49 SPP_SPF_RESULT_FAIL="E550 spf_smtp_msg" to control/tcprules/smtp, 49 SPP_SPF_RESULT_FAIL="E550 spf_smtp_msg" to control/tcprules/smtp,
50 then run "/etc/rc.d/qmailsmtpd cdb". 50 then run "/etc/rc.d/qmailsmtpd cdb".
51- Messages that explicit-pass are not greylisted. To remove the 51- Messages that explicit-pass are not greylisted. To remove the
52 exemption, remove SPP_SPF_RESULT_PASS="SGL_WHITELISTED=1" from 52 exemption, remove SPP_SPF_RESULT_PASS="SGL_WHITELISTED=1" from
53 control/tcprules/smtp, then run "/etc/rc.d/qmailsmtpd cdb". 53 control/tcprules/smtp, then run "/etc/rc.d/qmailsmtpd cdb".
54 54
55 55

cvs diff -r1.21 -r1.22 pkgsrc/mail/qmail-run/files/qmailofmipd.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailofmipd.sh 2018/12/14 06:55:07 1.21
+++ pkgsrc/mail/qmail-run/files/qmailofmipd.sh 2018/12/15 06:31:34 1.22
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailofmipd.sh,v 1.21 2018/12/14 06:55:07 schmonz Exp $ 3# $NetBSD: qmailofmipd.sh,v 1.22 2018/12/15 06:31:34 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control ofmipd (SMTP submission service). 5# @PKGNAME@ script to control ofmipd (SMTP submission service).
6# 6#
7 7
8# PROVIDE: qmailofmipd mail 8# PROVIDE: qmailofmipd mail
9# REQUIRE: qmailsend 9# REQUIRE: qmailsend
10 10
11name="qmailofmipd" 11name="qmailofmipd"
12 12
13# User-settable rc.conf variables and their default values: 13# User-settable rc.conf variables and their default values:
14: ${qmailofmipd_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"} 14: ${qmailofmipd_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"}
15: ${qmailofmipd_datalimit:="360000000"} 15: ${qmailofmipd_datalimit:="360000000"}
16: ${qmailofmipd_pretcpserver:=""} 16: ${qmailofmipd_pretcpserver:=""}
@@ -33,27 +33,27 @@ name="qmailofmipd" @@ -33,27 +33,27 @@ name="qmailofmipd"
33: ${qmailofmipd_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"} 33: ${qmailofmipd_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"}
34: ${qmailofmipd_tls_key:=""} 34: ${qmailofmipd_tls_key:=""}
35 35
36if [ -f /etc/rc.subr ]; then 36if [ -f /etc/rc.subr ]; then
37 . /etc/rc.subr 37 . /etc/rc.subr
38fi 38fi
39 39
40rcvar=${name} 40rcvar=${name}
41required_files="@PKG_SYSCONFDIR@/control/me" 41required_files="@PKG_SYSCONFDIR@/control/me"
42required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencysubmission" 42required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencysubmission"
43required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" 43required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
44required_files="${required_files} @PKG_SYSCONFDIR@/control/smtpcapabilities" 44required_files="${required_files} @PKG_SYSCONFDIR@/control/smtpcapabilities"
45required_files="${required_files} @PKG_SYSCONFDIR@/control/fixsmtpio" 45required_files="${required_files} @PKG_SYSCONFDIR@/control/fixsmtpio"
46required_files="${required_files} ${qmailofmipd_tcprules}.cdb" 46required_files="${required_files} ${qmailofmipd_tcprules}"
47command="${qmailofmipd_tcpserver}" 47command="${qmailofmipd_tcpserver}"
48procname=nb${name} 48procname=nb${name}
49start_precmd="qmailofmipd_precmd" 49start_precmd="qmailofmipd_precmd"
50extra_commands="stat pause cont cdb reload" 50extra_commands="stat pause cont cdb reload"
51stat_cmd="qmailofmipd_stat" 51stat_cmd="qmailofmipd_stat"
52pause_cmd="qmailofmipd_pause" 52pause_cmd="qmailofmipd_pause"
53cont_cmd="qmailofmipd_cont" 53cont_cmd="qmailofmipd_cont"
54cdb_cmd="qmailofmipd_cdb" 54cdb_cmd="qmailofmipd_cdb"
55reload_cmd=${cdb_cmd} 55reload_cmd=${cdb_cmd}
56 56
57qmailofmipd_configure_tls() { 57qmailofmipd_configure_tls() {
58 if [ "auto" = "${qmailofmipd_tls}" ]; then 58 if [ "auto" = "${qmailofmipd_tls}" ]; then
59 if [ -f "${qmailofmipd_tls_dhparams}" ] && [ -f "${qmailofmipd_tls_cert}" ]; then 59 if [ -f "${qmailofmipd_tls_dhparams}" ] && [ -f "${qmailofmipd_tls_cert}" ]; then

cvs diff -r1.29 -r1.30 pkgsrc/mail/qmail-run/files/qmailpop3d.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailpop3d.sh 2018/12/14 06:55:07 1.29
+++ pkgsrc/mail/qmail-run/files/qmailpop3d.sh 2018/12/15 06:31:34 1.30
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailpop3d.sh,v 1.29 2018/12/14 06:55:07 schmonz Exp $ 3# $NetBSD: qmailpop3d.sh,v 1.30 2018/12/15 06:31:34 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs). 5# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs).
6# 6#
7 7
8# PROVIDE: qmailpop3d mail 8# PROVIDE: qmailpop3d mail
9 9
10name="qmailpop3d" 10name="qmailpop3d"
11 11
12# User-settable rc.conf variables and their default values: 12# User-settable rc.conf variables and their default values:
13: ${qmailpop3d_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"} 13: ${qmailpop3d_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"}
14: ${qmailpop3d_datalimit:="180000000"} 14: ${qmailpop3d_datalimit:="180000000"}
15: ${qmailpop3d_pretcpserver:=""} 15: ${qmailpop3d_pretcpserver:=""}
16: ${qmailpop3d_tcpserver:="@PREFIX@/bin/sslserver"} 16: ${qmailpop3d_tcpserver:="@PREFIX@/bin/sslserver"}
@@ -30,27 +30,27 @@ name="qmailpop3d" @@ -30,27 +30,27 @@ name="qmailpop3d"
30: ${qmailpop3d_tls:="auto"} 30: ${qmailpop3d_tls:="auto"}
31: ${qmailpop3d_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"} 31: ${qmailpop3d_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"}
32: ${qmailpop3d_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"} 32: ${qmailpop3d_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"}
33: ${qmailpop3d_tls_key:=""} 33: ${qmailpop3d_tls_key:=""}
34 34
35if [ -f /etc/rc.subr ]; then 35if [ -f /etc/rc.subr ]; then
36 . /etc/rc.subr 36 . /etc/rc.subr
37fi 37fi
38 38
39rcvar=${name} 39rcvar=${name}
40required_files="@PKG_SYSCONFDIR@/control/me" 40required_files="@PKG_SYSCONFDIR@/control/me"
41required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3" 41required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3"
42required_files="${required_files} @PKG_SYSCONFDIR@/control/pop3capabilities" 42required_files="${required_files} @PKG_SYSCONFDIR@/control/pop3capabilities"
43required_files="${required_files} ${qmailpop3d_tcprules}.cdb" 43required_files="${required_files} ${qmailpop3d_tcprules}"
44command="${qmailpop3d_tcpserver}" 44command="${qmailpop3d_tcpserver}"
45procname=nb${name} 45procname=nb${name}
46start_precmd="qmailpop3d_precmd" 46start_precmd="qmailpop3d_precmd"
47extra_commands="stat pause cont cdb reload" 47extra_commands="stat pause cont cdb reload"
48stat_cmd="qmailpop3d_stat" 48stat_cmd="qmailpop3d_stat"
49pause_cmd="qmailpop3d_pause" 49pause_cmd="qmailpop3d_pause"
50cont_cmd="qmailpop3d_cont" 50cont_cmd="qmailpop3d_cont"
51cdb_cmd="qmailpop3d_cdb" 51cdb_cmd="qmailpop3d_cdb"
52reload_cmd=${cdb_cmd} 52reload_cmd=${cdb_cmd}
53 53
54qmailpop3d_configure_tls() { 54qmailpop3d_configure_tls() {
55 if [ "auto" = "${qmailpop3d_tls}" ]; then 55 if [ "auto" = "${qmailpop3d_tls}" ]; then
56 if [ -f "${qmailpop3d_tls_dhparams}" ] && [ -f "${qmailpop3d_tls_cert}" ]; then 56 if [ -f "${qmailpop3d_tls_dhparams}" ] && [ -f "${qmailpop3d_tls_cert}" ]; then

cvs diff -r1.26 -r1.27 pkgsrc/mail/qmail-run/files/qmailsmtpd.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailsmtpd.sh 2018/12/14 06:55:07 1.26
+++ pkgsrc/mail/qmail-run/files/qmailsmtpd.sh 2018/12/15 06:31:34 1.27
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailsmtpd.sh,v 1.26 2018/12/14 06:55:07 schmonz Exp $ 3# $NetBSD: qmailsmtpd.sh,v 1.27 2018/12/15 06:31:34 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control qmail-smtpd (SMTP service). 5# @PKGNAME@ script to control qmail-smtpd (SMTP service).
6# 6#
7 7
8# PROVIDE: qmailsmtpd mail 8# PROVIDE: qmailsmtpd mail
9# REQUIRE: qmailsend 9# REQUIRE: qmailsend
10 10
11name="qmailsmtpd" 11name="qmailsmtpd"
12 12
13# User-settable rc.conf variables and their default values: 13# User-settable rc.conf variables and their default values:
14: ${qmailsmtpd_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"} 14: ${qmailsmtpd_postenv:="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@)"}
15: ${qmailsmtpd_datalimit:="540000000"} 15: ${qmailsmtpd_datalimit:="540000000"}
16: ${qmailsmtpd_pretcpserver:=""} 16: ${qmailsmtpd_pretcpserver:=""}
@@ -29,27 +29,27 @@ name="qmailsmtpd" @@ -29,27 +29,27 @@ name="qmailsmtpd"
29: ${qmailsmtpd_tls:="auto"} 29: ${qmailsmtpd_tls:="auto"}
30: ${qmailsmtpd_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"} 30: ${qmailsmtpd_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"}
31: ${qmailsmtpd_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"} 31: ${qmailsmtpd_tls_cert:="@PKG_SYSCONFDIR@/control/servercert.pem"}
32: ${qmailsmtpd_tls_key:=""} 32: ${qmailsmtpd_tls_key:=""}
33 33
34if [ -f /etc/rc.subr ]; then 34if [ -f /etc/rc.subr ]; then
35 . /etc/rc.subr 35 . /etc/rc.subr
36fi 36fi
37 37
38rcvar=${name} 38rcvar=${name}
39required_files="@PKG_SYSCONFDIR@/control/me" 39required_files="@PKG_SYSCONFDIR@/control/me"
40required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencyincoming" 40required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencyincoming"
41required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" 41required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
42required_files="${required_files} ${qmailsmtpd_tcprules}.cdb" 42required_files="${required_files} ${qmailsmtpd_tcprules}"
43command="${qmailsmtpd_tcpserver}" 43command="${qmailsmtpd_tcpserver}"
44procname=nb${name} 44procname=nb${name}
45start_precmd="qmailsmtpd_precmd" 45start_precmd="qmailsmtpd_precmd"
46extra_commands="stat pause cont cdb reload" 46extra_commands="stat pause cont cdb reload"
47stat_cmd="qmailsmtpd_stat" 47stat_cmd="qmailsmtpd_stat"
48pause_cmd="qmailsmtpd_pause" 48pause_cmd="qmailsmtpd_pause"
49cont_cmd="qmailsmtpd_cont" 49cont_cmd="qmailsmtpd_cont"
50cdb_cmd="qmailsmtpd_cdb" 50cdb_cmd="qmailsmtpd_cdb"
51reload_cmd=${cdb_cmd} 51reload_cmd=${cdb_cmd}
52 52
53qmailsmtpd_configure_tls() { 53qmailsmtpd_configure_tls() {
54 if [ "auto" = "${qmailsmtpd_tls}" ]; then 54 if [ "auto" = "${qmailsmtpd_tls}" ]; then
55 if [ -f "${qmailsmtpd_tls_dhparams}" ] && [ -f "${qmailsmtpd_tls_cert}" ]; then 55 if [ -f "${qmailsmtpd_tls_dhparams}" ] && [ -f "${qmailsmtpd_tls_cert}" ]; then