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.diff -r1.65 -r1.66 pkgsrc/mail/qmail-run/Makefile
(schmonz)
@@ -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 | |||
4 | DISTNAME= qmail-run-20181214 | 4 | DISTNAME= qmail-run-20181215 | |
5 | CATEGORIES= mail | 5 | CATEGORIES= mail | |
6 | MASTER_SITES= # empty | 6 | MASTER_SITES= # empty | |
7 | DISTFILES= # empty | 7 | DISTFILES= # empty | |
8 | 8 | |||
9 | MAINTAINER= schmonz@NetBSD.org | 9 | MAINTAINER= schmonz@NetBSD.org | |
10 | COMMENT= Configures qmail to receive and deliver mail | 10 | COMMENT= Configures qmail to receive and deliver mail | |
11 | LICENSE= 2-clause-bsd | 11 | LICENSE= 2-clause-bsd | |
12 | 12 | |||
13 | DEPENDS+= greetdelay-[0-9]*:../../mail/greetdelay | 13 | DEPENDS+= greetdelay-[0-9]*:../../mail/greetdelay | |
14 | DEPENDS+= greylisting-spp-[0-9]*:../../mail/greylisting-spp | 14 | DEPENDS+= greylisting-spp-[0-9]*:../../mail/greylisting-spp | |
15 | DEPENDS+= pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives | 15 | DEPENDS+= pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives | |
16 | DEPENDS_QMAIL= qmail>=1.03nb42:../../mail/qmail | 16 | DEPENDS_QMAIL= qmail>=1.03nb42:../../mail/qmail | |
17 | DEPENDS+= ${DEPENDS_QMAIL} | 17 | DEPENDS+= ${DEPENDS_QMAIL} |
@@ -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 | |||
28 | Authenticated message submission on port 587: | 28 | Authenticated 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 | |||
33 | POP3 (for Maildirs only) on port 110: | 33 | POP3 (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 | |||
37 | TLS encryption for SMTP, submission, POP3, and remote delivery: | 37 | TLS 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 | |||
41 | Sender Policy Framework: | 41 | Sender 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 |
@@ -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 | |||
11 | name="qmailofmipd" | 11 | name="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 | |||
36 | if [ -f /etc/rc.subr ]; then | 36 | if [ -f /etc/rc.subr ]; then | |
37 | . /etc/rc.subr | 37 | . /etc/rc.subr | |
38 | fi | 38 | fi | |
39 | 39 | |||
40 | rcvar=${name} | 40 | rcvar=${name} | |
41 | required_files="@PKG_SYSCONFDIR@/control/me" | 41 | required_files="@PKG_SYSCONFDIR@/control/me" | |
42 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencysubmission" | 42 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencysubmission" | |
43 | required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" | 43 | required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" | |
44 | required_files="${required_files} @PKG_SYSCONFDIR@/control/smtpcapabilities" | 44 | required_files="${required_files} @PKG_SYSCONFDIR@/control/smtpcapabilities" | |
45 | required_files="${required_files} @PKG_SYSCONFDIR@/control/fixsmtpio" | 45 | required_files="${required_files} @PKG_SYSCONFDIR@/control/fixsmtpio" | |
46 | required_files="${required_files} ${qmailofmipd_tcprules}.cdb" | 46 | required_files="${required_files} ${qmailofmipd_tcprules}" | |
47 | command="${qmailofmipd_tcpserver}" | 47 | command="${qmailofmipd_tcpserver}" | |
48 | procname=nb${name} | 48 | procname=nb${name} | |
49 | start_precmd="qmailofmipd_precmd" | 49 | start_precmd="qmailofmipd_precmd" | |
50 | extra_commands="stat pause cont cdb reload" | 50 | extra_commands="stat pause cont cdb reload" | |
51 | stat_cmd="qmailofmipd_stat" | 51 | stat_cmd="qmailofmipd_stat" | |
52 | pause_cmd="qmailofmipd_pause" | 52 | pause_cmd="qmailofmipd_pause" | |
53 | cont_cmd="qmailofmipd_cont" | 53 | cont_cmd="qmailofmipd_cont" | |
54 | cdb_cmd="qmailofmipd_cdb" | 54 | cdb_cmd="qmailofmipd_cdb" | |
55 | reload_cmd=${cdb_cmd} | 55 | reload_cmd=${cdb_cmd} | |
56 | 56 | |||
57 | qmailofmipd_configure_tls() { | 57 | qmailofmipd_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 |
@@ -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 | |||
10 | name="qmailpop3d" | 10 | name="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 | |||
35 | if [ -f /etc/rc.subr ]; then | 35 | if [ -f /etc/rc.subr ]; then | |
36 | . /etc/rc.subr | 36 | . /etc/rc.subr | |
37 | fi | 37 | fi | |
38 | 38 | |||
39 | rcvar=${name} | 39 | rcvar=${name} | |
40 | required_files="@PKG_SYSCONFDIR@/control/me" | 40 | required_files="@PKG_SYSCONFDIR@/control/me" | |
41 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3" | 41 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3" | |
42 | required_files="${required_files} @PKG_SYSCONFDIR@/control/pop3capabilities" | 42 | required_files="${required_files} @PKG_SYSCONFDIR@/control/pop3capabilities" | |
43 | required_files="${required_files} ${qmailpop3d_tcprules}.cdb" | 43 | required_files="${required_files} ${qmailpop3d_tcprules}" | |
44 | command="${qmailpop3d_tcpserver}" | 44 | command="${qmailpop3d_tcpserver}" | |
45 | procname=nb${name} | 45 | procname=nb${name} | |
46 | start_precmd="qmailpop3d_precmd" | 46 | start_precmd="qmailpop3d_precmd" | |
47 | extra_commands="stat pause cont cdb reload" | 47 | extra_commands="stat pause cont cdb reload" | |
48 | stat_cmd="qmailpop3d_stat" | 48 | stat_cmd="qmailpop3d_stat" | |
49 | pause_cmd="qmailpop3d_pause" | 49 | pause_cmd="qmailpop3d_pause" | |
50 | cont_cmd="qmailpop3d_cont" | 50 | cont_cmd="qmailpop3d_cont" | |
51 | cdb_cmd="qmailpop3d_cdb" | 51 | cdb_cmd="qmailpop3d_cdb" | |
52 | reload_cmd=${cdb_cmd} | 52 | reload_cmd=${cdb_cmd} | |
53 | 53 | |||
54 | qmailpop3d_configure_tls() { | 54 | qmailpop3d_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 |
@@ -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 | |||
11 | name="qmailsmtpd" | 11 | name="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 | |||
34 | if [ -f /etc/rc.subr ]; then | 34 | if [ -f /etc/rc.subr ]; then | |
35 | . /etc/rc.subr | 35 | . /etc/rc.subr | |
36 | fi | 36 | fi | |
37 | 37 | |||
38 | rcvar=${name} | 38 | rcvar=${name} | |
39 | required_files="@PKG_SYSCONFDIR@/control/me" | 39 | required_files="@PKG_SYSCONFDIR@/control/me" | |
40 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencyincoming" | 40 | required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencyincoming" | |
41 | required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" | 41 | required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" | |
42 | required_files="${required_files} ${qmailsmtpd_tcprules}.cdb" | 42 | required_files="${required_files} ${qmailsmtpd_tcprules}" | |
43 | command="${qmailsmtpd_tcpserver}" | 43 | command="${qmailsmtpd_tcpserver}" | |
44 | procname=nb${name} | 44 | procname=nb${name} | |
45 | start_precmd="qmailsmtpd_precmd" | 45 | start_precmd="qmailsmtpd_precmd" | |
46 | extra_commands="stat pause cont cdb reload" | 46 | extra_commands="stat pause cont cdb reload" | |
47 | stat_cmd="qmailsmtpd_stat" | 47 | stat_cmd="qmailsmtpd_stat" | |
48 | pause_cmd="qmailsmtpd_pause" | 48 | pause_cmd="qmailsmtpd_pause" | |
49 | cont_cmd="qmailsmtpd_cont" | 49 | cont_cmd="qmailsmtpd_cont" | |
50 | cdb_cmd="qmailsmtpd_cdb" | 50 | cdb_cmd="qmailsmtpd_cdb" | |
51 | reload_cmd=${cdb_cmd} | 51 | reload_cmd=${cdb_cmd} | |
52 | 52 | |||
53 | qmailsmtpd_configure_tls() { | 53 | qmailsmtpd_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 |