Defer SSL_UID and SSL_GID to qmailfoo_enable_tls(). Listen on ":0", the updated dual-stack pseudo-host for ucspi-tcp6 and ucspi-ssl. Bump version.diff -r1.70 -r1.71 pkgsrc/mail/qmail-run/Makefile
(schmonz)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.70 2019/01/18 18:25:33 schmonz Exp $ | 1 | # $NetBSD: Makefile,v 1.71 2019/03/21 15:33:06 schmonz Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= qmail-run-20190118 | 4 | DISTNAME= qmail-run-20190321 | |
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} |
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | #!@RCD_SCRIPTS_SHELL@ | 1 | #!@RCD_SCRIPTS_SHELL@ | |
2 | # | 2 | # | |
3 | # $NetBSD: qmailofmipd.sh,v 1.24 2019/01/18 18:25:34 schmonz Exp $ | 3 | # $NetBSD: qmailofmipd.sh,v 1.25 2019/03/21 15:33:06 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:=""} | |
15 | : ${qmailofmipd_datalimit:="360000000"} | 15 | : ${qmailofmipd_datalimit:="360000000"} | |
16 | : ${qmailofmipd_pretcpserver:=""} | 16 | : ${qmailofmipd_pretcpserver:=""} | |
17 | : ${qmailofmipd_tcpserver:="@PREFIX@/bin/sslserver"} | 17 | : ${qmailofmipd_tcpserver:="@PREFIX@/bin/sslserver"} | |
18 | : ${qmailofmipd_tcpflags:="-ne -vRl0"} | 18 | : ${qmailofmipd_tcpflags:="-ne -vRl0"} | |
19 | : ${qmailofmipd_tcphost:="0"} | 19 | : ${qmailofmipd_tcphost:=":0"} | |
20 | : ${qmailofmipd_tcpport:="587"} | 20 | : ${qmailofmipd_tcpport:="587"} | |
21 | : ${qmailofmipd_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/ofmip"} | 21 | : ${qmailofmipd_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/ofmip"} | |
22 | : ${qmailofmipd_autocdb:="YES"} | 22 | : ${qmailofmipd_autocdb:="YES"} | |
23 | : ${qmailofmipd_precheckpassword:="@PREFIX@/bin/reup -t 5 @PREFIX@/bin/authup smtp"} | 23 | : ${qmailofmipd_precheckpassword:="@PREFIX@/bin/reup -t 5 @PREFIX@/bin/authup smtp"} | |
24 | : ${qmailofmipd_checkpassword:="@PREFIX@/bin/nbcheckpassword"} | 24 | : ${qmailofmipd_checkpassword:="@PREFIX@/bin/nbcheckpassword"} | |
25 | : ${qmailofmipd_preofmipd:="@PREFIX@/bin/checknotroot @PREFIX@/bin/fixsmtpio"} | 25 | : ${qmailofmipd_preofmipd:="@PREFIX@/bin/checknotroot @PREFIX@/bin/fixsmtpio"} | |
26 | : ${qmailofmipd_ofmipdcmd:="@PREFIX@/bin/ofmipd-with-user-cdb"} | 26 | : ${qmailofmipd_ofmipdcmd:="@PREFIX@/bin/ofmipd-with-user-cdb"} | |
27 | : ${qmailofmipd_postofmipd:=""} | 27 | : ${qmailofmipd_postofmipd:=""} | |
28 | : ${qmailofmipd_log:="YES"} | 28 | : ${qmailofmipd_log:="YES"} | |
29 | : ${qmailofmipd_logcmd:="logger -t nbqmail/ofmipd -p mail.info"} | 29 | : ${qmailofmipd_logcmd:="logger -t nbqmail/ofmipd -p mail.info"} | |
30 | : ${qmailofmipd_nologcmd:="@PREFIX@/bin/multilog -*"} | 30 | : ${qmailofmipd_nologcmd:="@PREFIX@/bin/multilog -*"} | |
31 | : ${qmailofmipd_tls:="auto"} | 31 | : ${qmailofmipd_tls:="auto"} | |
32 | : ${qmailofmipd_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"} | 32 | : ${qmailofmipd_tls_dhparams:="@PKG_SYSCONFDIR@/control/dh2048.pem"} | |
@@ -64,26 +64,28 @@ qmailofmipd_configure_tls() { | @@ -64,26 +64,28 @@ qmailofmipd_configure_tls() { | |||
64 | fi | 64 | fi | |
65 | elif [ -f /etc/rc.subr ] && checkyesno qmailofmipd_tls; then | 65 | elif [ -f /etc/rc.subr ] && checkyesno qmailofmipd_tls; then | |
66 | qmailofmipd_enable_tls | 66 | qmailofmipd_enable_tls | |
67 | else | 67 | else | |
68 | qmailofmipd_disable_tls | 68 | qmailofmipd_disable_tls | |
69 | fi | 69 | fi | |
70 | } | 70 | } | |
71 | 71 | |||
72 | qmailofmipd_disable_tls() { | 72 | qmailofmipd_disable_tls() { | |
73 | qmailofmipd_postenv="DISABLETLS=1 ${qmailofmipd_postenv}" | 73 | qmailofmipd_postenv="DISABLETLS=1 ${qmailofmipd_postenv}" | |
74 | } | 74 | } | |
75 | 75 | |||
76 | qmailofmipd_enable_tls() { | 76 | qmailofmipd_enable_tls() { | |
77 | qmailofmipd_postenv="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) ${qmailofmipd_postenv}" | |||
78 | qmailofmipd_postenv="SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@) ${qmailofmipd_postenv}" | |||
77 | qmailofmipd_postenv="DHFILE=${qmailofmipd_tls_dhparams} ${qmailofmipd_postenv}" | 79 | qmailofmipd_postenv="DHFILE=${qmailofmipd_tls_dhparams} ${qmailofmipd_postenv}" | |
78 | qmailofmipd_postenv="CERTFILE=${qmailofmipd_tls_cert} ${qmailofmipd_postenv}" | 80 | qmailofmipd_postenv="CERTFILE=${qmailofmipd_tls_cert} ${qmailofmipd_postenv}" | |
79 | if [ -f "${qmailofmipd_tls_key}" ]; then | 81 | if [ -f "${qmailofmipd_tls_key}" ]; then | |
80 | qmailofmipd_postenv="KEYFILE=${qmailofmipd_tls_key} ${qmailofmipd_postenv}" | 82 | qmailofmipd_postenv="KEYFILE=${qmailofmipd_tls_key} ${qmailofmipd_postenv}" | |
81 | fi | 83 | fi | |
82 | if [ -n "${qmailofmipd_tls_ciphers}" ]; then | 84 | if [ -n "${qmailofmipd_tls_ciphers}" ]; then | |
83 | qmailofmipd_postenv="CIPHERS=${qmailofmipd_tls_ciphers} ${qmailofmipd_postenv}" | 85 | qmailofmipd_postenv="CIPHERS=${qmailofmipd_tls_ciphers} ${qmailofmipd_postenv}" | |
84 | fi | 86 | fi | |
85 | } | 87 | } | |
86 | 88 | |||
87 | qmailofmipd_precmd() { | 89 | qmailofmipd_precmd() { | |
88 | if [ -f /etc/rc.subr ] && ! checkyesno qmailofmipd_log; then | 90 | if [ -f /etc/rc.subr ] && ! checkyesno qmailofmipd_log; then | |
89 | qmailofmipd_logcmd=${qmailofmipd_nologcmd} | 91 | qmailofmipd_logcmd=${qmailofmipd_nologcmd} |
@@ -1,31 +1,31 @@ | @@ -1,31 +1,31 @@ | |||
1 | #!@RCD_SCRIPTS_SHELL@ | 1 | #!@RCD_SCRIPTS_SHELL@ | |
2 | # | 2 | # | |
3 | # $NetBSD: qmailpop3d.sh,v 1.32 2019/01/18 18:25:34 schmonz Exp $ | 3 | # $NetBSD: qmailpop3d.sh,v 1.33 2019/03/21 15:33:06 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:=""} | |
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"} | |
17 | : ${qmailpop3d_tcpflags:="-ne -vRl0"} | 17 | : ${qmailpop3d_tcpflags:="-ne -vRl0"} | |
18 | : ${qmailpop3d_tcphost:="0"} | 18 | : ${qmailpop3d_tcphost:=":0"} | |
19 | : ${qmailpop3d_tcpport:="110"} | 19 | : ${qmailpop3d_tcpport:="110"} | |
20 | : ${qmailpop3d_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/pop3"} | 20 | : ${qmailpop3d_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/pop3"} | |
21 | : ${qmailpop3d_autocdb:="YES"} | 21 | : ${qmailpop3d_autocdb:="YES"} | |
22 | : ${qmailpop3d_precheckpassword:="@PREFIX@/bin/authup pop3"} | 22 | : ${qmailpop3d_precheckpassword:="@PREFIX@/bin/authup pop3"} | |
23 | : ${qmailpop3d_checkpassword:="@PREFIX@/bin/nbcheckpassword"} | 23 | : ${qmailpop3d_checkpassword:="@PREFIX@/bin/nbcheckpassword"} | |
24 | : ${qmailpop3d_prepop3d:="@PREFIX@/bin/checknotroot"} | 24 | : ${qmailpop3d_prepop3d:="@PREFIX@/bin/checknotroot"} | |
25 | : ${qmailpop3d_pop3dcmd:="@PREFIX@/bin/qmail-pop3d"} | 25 | : ${qmailpop3d_pop3dcmd:="@PREFIX@/bin/qmail-pop3d"} | |
26 | : ${qmailpop3d_postpop3d:="Maildir"} | 26 | : ${qmailpop3d_postpop3d:="Maildir"} | |
27 | : ${qmailpop3d_log:="YES"} | 27 | : ${qmailpop3d_log:="YES"} | |
28 | : ${qmailpop3d_logcmd:="logger -t nbqmail/pop3d -p mail.info"} | 28 | : ${qmailpop3d_logcmd:="logger -t nbqmail/pop3d -p mail.info"} | |
29 | : ${qmailpop3d_nologcmd:="@PREFIX@/bin/multilog -*"} | 29 | : ${qmailpop3d_nologcmd:="@PREFIX@/bin/multilog -*"} | |
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"} | |
@@ -61,26 +61,28 @@ qmailpop3d_configure_tls() { | @@ -61,26 +61,28 @@ qmailpop3d_configure_tls() { | |||
61 | fi | 61 | fi | |
62 | elif [ -f /etc/rc.subr ] && checkyesno qmailpop3d_tls; then | 62 | elif [ -f /etc/rc.subr ] && checkyesno qmailpop3d_tls; then | |
63 | qmailpop3d_enable_tls | 63 | qmailpop3d_enable_tls | |
64 | else | 64 | else | |
65 | qmailpop3d_disable_tls | 65 | qmailpop3d_disable_tls | |
66 | fi | 66 | fi | |
67 | } | 67 | } | |
68 | 68 | |||
69 | qmailpop3d_disable_tls() { | 69 | qmailpop3d_disable_tls() { | |
70 | qmailpop3d_postenv="DISABLETLS=1 ${qmailpop3d_postenv}" | 70 | qmailpop3d_postenv="DISABLETLS=1 ${qmailpop3d_postenv}" | |
71 | } | 71 | } | |
72 | 72 | |||
73 | qmailpop3d_enable_tls() { | 73 | qmailpop3d_enable_tls() { | |
74 | qmailpop3d_postenv="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) ${qmailpop3d_postenv}" | |||
75 | qmailpop3d_postenv="SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@) ${qmailpop3d_postenv}" | |||
74 | qmailpop3d_postenv="DHFILE=${qmailpop3d_tls_dhparams} ${qmailpop3d_postenv}" | 76 | qmailpop3d_postenv="DHFILE=${qmailpop3d_tls_dhparams} ${qmailpop3d_postenv}" | |
75 | qmailpop3d_postenv="CERTFILE=${qmailpop3d_tls_cert} ${qmailpop3d_postenv}" | 77 | qmailpop3d_postenv="CERTFILE=${qmailpop3d_tls_cert} ${qmailpop3d_postenv}" | |
76 | if [ -f "${qmailpop3d_tls_key}" ]; then | 78 | if [ -f "${qmailpop3d_tls_key}" ]; then | |
77 | qmailpop3d_postenv="KEYFILE=${qmailpop3d_tls_key} ${qmailpop3d_postenv}" | 79 | qmailpop3d_postenv="KEYFILE=${qmailpop3d_tls_key} ${qmailpop3d_postenv}" | |
78 | fi | 80 | fi | |
79 | if [ -n "${qmailpop3d_tls_ciphers}" ]; then | 81 | if [ -n "${qmailpop3d_tls_ciphers}" ]; then | |
80 | qmailpop3d_postenv="CIPHERS=${qmailpop3d_tls_ciphers} ${qmailpop3d_postenv}" | 82 | qmailpop3d_postenv="CIPHERS=${qmailpop3d_tls_ciphers} ${qmailpop3d_postenv}" | |
81 | fi | 83 | fi | |
82 | } | 84 | } | |
83 | 85 | |||
84 | qmailpop3d_precmd() { | 86 | qmailpop3d_precmd() { | |
85 | if [ -f /etc/rc.subr ] && ! checkyesno qmailpop3d_log; then | 87 | if [ -f /etc/rc.subr ] && ! checkyesno qmailpop3d_log; then | |
86 | qmailpop3d_logcmd=${qmailpop3d_nologcmd} | 88 | qmailpop3d_logcmd=${qmailpop3d_nologcmd} |
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | #!@RCD_SCRIPTS_SHELL@ | 1 | #!@RCD_SCRIPTS_SHELL@ | |
2 | # | 2 | # | |
3 | # $NetBSD: qmailsmtpd.sh,v 1.29 2019/01/18 18:25:34 schmonz Exp $ | 3 | # $NetBSD: qmailsmtpd.sh,v 1.30 2019/03/21 15:33:06 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:=""} | |
15 | : ${qmailsmtpd_datalimit:="540000000"} | 15 | : ${qmailsmtpd_datalimit:="540000000"} | |
16 | : ${qmailsmtpd_pretcpserver:=""} | 16 | : ${qmailsmtpd_pretcpserver:=""} | |
17 | : ${qmailsmtpd_tcpserver:="@PREFIX@/bin/sslserver"} | 17 | : ${qmailsmtpd_tcpserver:="@PREFIX@/bin/sslserver"} | |
18 | : ${qmailsmtpd_tcpflags:="-ne -vRl0"} | 18 | : ${qmailsmtpd_tcpflags:="-ne -vRl0"} | |
19 | : ${qmailsmtpd_tcphost:="0"} | 19 | : ${qmailsmtpd_tcphost:=":0"} | |
20 | : ${qmailsmtpd_tcpport:="25"} | 20 | : ${qmailsmtpd_tcpport:="25"} | |
21 | : ${qmailsmtpd_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/smtp"} | 21 | : ${qmailsmtpd_tcprules:="@PKG_SYSCONFDIR@/control/tcprules/smtp"} | |
22 | : ${qmailsmtpd_autocdb:="YES"} | 22 | : ${qmailsmtpd_autocdb:="YES"} | |
23 | : ${qmailsmtpd_presmtpd:="@PREFIX@/bin/greetdelay -- @PREFIX@/bin/rblsmtpd -r zen.spamhaus.org @PREFIX@/bin/fixsmtpio"} | 23 | : ${qmailsmtpd_presmtpd:="@PREFIX@/bin/greetdelay -- @PREFIX@/bin/rblsmtpd -r zen.spamhaus.org @PREFIX@/bin/fixsmtpio"} | |
24 | : ${qmailsmtpd_smtpdcmd:="@PREFIX@/bin/qmail-smtpd"} | 24 | : ${qmailsmtpd_smtpdcmd:="@PREFIX@/bin/qmail-smtpd"} | |
25 | : ${qmailsmtpd_postsmtpd:=""} | 25 | : ${qmailsmtpd_postsmtpd:=""} | |
26 | : ${qmailsmtpd_log:="YES"} | 26 | : ${qmailsmtpd_log:="YES"} | |
27 | : ${qmailsmtpd_logcmd:="logger -t nbqmail/smtpd -p mail.info"} | 27 | : ${qmailsmtpd_logcmd:="logger -t nbqmail/smtpd -p mail.info"} | |
28 | : ${qmailsmtpd_nologcmd:="@PREFIX@/bin/multilog -*"} | 28 | : ${qmailsmtpd_nologcmd:="@PREFIX@/bin/multilog -*"} | |
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:=""} | |
@@ -60,26 +60,28 @@ qmailsmtpd_configure_tls() { | @@ -60,26 +60,28 @@ qmailsmtpd_configure_tls() { | |||
60 | fi | 60 | fi | |
61 | elif [ -f /etc/rc.subr ] && checkyesno qmailsmtpd_tls; then | 61 | elif [ -f /etc/rc.subr ] && checkyesno qmailsmtpd_tls; then | |
62 | qmailsmtpd_enable_tls | 62 | qmailsmtpd_enable_tls | |
63 | else | 63 | else | |
64 | qmailsmtpd_disable_tls | 64 | qmailsmtpd_disable_tls | |
65 | fi | 65 | fi | |
66 | } | 66 | } | |
67 | 67 | |||
68 | qmailsmtpd_disable_tls() { | 68 | qmailsmtpd_disable_tls() { | |
69 | qmailsmtpd_postenv="DISABLETLS=1 ${qmailsmtpd_postenv}" | 69 | qmailsmtpd_postenv="DISABLETLS=1 ${qmailsmtpd_postenv}" | |
70 | } | 70 | } | |
71 | 71 | |||
72 | qmailsmtpd_enable_tls() { | 72 | qmailsmtpd_enable_tls() { | |
73 | qmailsmtpd_postenv="SSL_UID=$(@ID@ -u @UCSPI_SSL_USER@) ${qmailsmtpd_postenv}" | |||
74 | qmailsmtpd_postenv="SSL_GID=$(@ID@ -g @UCSPI_SSL_GROUP@) ${qmailsmtpd_postenv}" | |||
73 | qmailsmtpd_postenv="DHFILE=${qmailsmtpd_tls_dhparams} ${qmailsmtpd_postenv}" | 75 | qmailsmtpd_postenv="DHFILE=${qmailsmtpd_tls_dhparams} ${qmailsmtpd_postenv}" | |
74 | qmailsmtpd_postenv="CERTFILE=${qmailsmtpd_tls_cert} ${qmailsmtpd_postenv}" | 76 | qmailsmtpd_postenv="CERTFILE=${qmailsmtpd_tls_cert} ${qmailsmtpd_postenv}" | |
75 | if [ -f "${qmailsmtpd_tls_key}" ]; then | 77 | if [ -f "${qmailsmtpd_tls_key}" ]; then | |
76 | qmailsmtpd_postenv="KEYFILE=${qmailsmtpd_tls_key} ${qmailsmtpd_postenv}" | 78 | qmailsmtpd_postenv="KEYFILE=${qmailsmtpd_tls_key} ${qmailsmtpd_postenv}" | |
77 | fi | 79 | fi | |
78 | if [ -n "${qmailsmtpd_tls_ciphers}" ]; then | 80 | if [ -n "${qmailsmtpd_tls_ciphers}" ]; then | |
79 | qmailsmtpd_postenv="CIPHERS=${qmailsmtpd_tls_ciphers} ${qmailsmtpd_postenv}" | 81 | qmailsmtpd_postenv="CIPHERS=${qmailsmtpd_tls_ciphers} ${qmailsmtpd_postenv}" | |
80 | fi | 82 | fi | |
81 | } | 83 | } | |
82 | 84 | |||
83 | qmailsmtpd_precmd() { | 85 | qmailsmtpd_precmd() { | |
84 | if [ -f /etc/rc.subr ] && ! checkyesno qmailsmtpd_log; then | 86 | if [ -f /etc/rc.subr ] && ! checkyesno qmailsmtpd_log; then | |
85 | qmailsmtpd_logcmd=${qmailsmtpd_nologcmd} | 87 | qmailsmtpd_logcmd=${qmailsmtpd_nologcmd} |