Skip to content

Commit bfc3421

Browse files
committed
qmail-run: further wordsmithery.
1 parent 2fc4367 commit bfc3421

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

mail/qmail-run/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.81 2024/02/06 21:28:51 schmonz Exp $
1+
# $NetBSD: Makefile,v 1.82 2024/02/07 04:55:47 schmonz Exp $
22
#
33

44
DISTNAME= qmail-run-20240206
@@ -58,7 +58,8 @@ CONF_FILES+= ${PREFIX}/${EGDIR}/greylist-${f} \
5858
.endfor
5959

6060
INSTALLATION_DIRS= bin share/doc/qmail-run ${EGDIR}
61-
BUILD_DEFS+= QMAIL_DAEMON_USER QMAIL_LOG_USER QMAIL_SEND_USER
61+
BUILD_DEFS+= QMAIL_DAEMON_USER QMAIL_LOG_USER
62+
BUILD_DEFS+= QMAIL_REMOTE_USER QMAIL_SEND_USER
6263
BUILD_DEFS+= QMAIL_QMAIL_GROUP PKG_SYSCONFBASE
6364
BUILD_DEFS+= UCSPI_SSL_USER UCSPI_SSL_GROUP
6465

@@ -68,7 +69,7 @@ SUBST_FILES.paths= mailer.conf README.pkgsrc
6869
SUBST_FILES.paths+= greylisting-spp-wrapper ofmipd-with-user-cdb
6970
SUBST_FILES.paths+= qmail-isspam-* qmail-procmail qmail-qread-client
7071
SUBST_FILES.paths+= rcptchecks ofmipfilters smtpfilters smtpplugins tcprules-*
71-
SUBST_VARS.paths= PKGNAME PKG_SYSCONFDIR PREFIX RCD_SCRIPTS_DIR
72+
SUBST_VARS.paths= PKGNAME PKG_SYSCONFDIR PREFIX QMAIL_REMOTE_USER RCD_SCRIPTS_DIR
7273
SUBST_VARS.paths+= CAT ECHO GREP SED SH SORT TRUE
7374

7475
post-extract:

mail/qmail-run/files/README.pkgsrc

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Local and outbound delivery:
1111
- Run "@RCD_SCRIPTS_DIR@/qmail start".
1212

1313
Incoming SMTP on port 25:
14-
- Set qmailsmtpd=YES in /etc/rc.conf.
1514
- Add any qmail-rcptcheck programs to control/rcptchecks.
1615
- Add any qmail-qfilter programs to control/smtpfilters.
1716
- Add any qmail-spp programs (such as greylisting) to control/smtpplugins.
17+
- Set qmailsmtpd=YES in /etc/rc.conf.
1818
- Run "@RCD_SCRIPTS_DIR@/qmailsmtpd start".
1919

2020
Authenticated message submission on port 587:
21-
- Set qmailofmipd=YES in /etc/rc.conf.
2221
- Add any qmail-qfilter programs to control/ofmipfilters.
22+
- Set qmailofmipd=YES in /etc/rc.conf.
2323
- Run "@RCD_SCRIPTS_DIR@/qmailofmipd start".
2424

2525
POP3 (for Maildirs only) on port 110:
@@ -44,39 +44,40 @@ SPF (Sender Policy Framework) outbound:
4444
@PREFIX@/share/doc/qmail/README.srs)
4545
so that servers which enforce the forwarded domains' SPF policies will
4646
accept these messages from you.
47-
- Publish a DNS TXT record with your domain's SPF policy.
47+
- Publish your domain's SPF policy as a DNS TXT record.
4848

4949
SPF incoming:
5050
- To greylist SPF-passing incoming messages (assuming greylisting is
5151
enabled), remove SPP_SPF_RESULT_PASS="SGL_WHITELISTED=1" from
5252
control/tcprules/smtp, then run "@RCD_SCRIPTS_DIR@/qmailsmtpd cdb".
53-
By default, such messages are accepted.
54-
- To reject SPF-failing incoming messages (including auto-forwards from
55-
servers that forgot to configure SRS) when the domain's policy is
53+
(By default, such messages are accepted.)
54+
- To reject SPF-failing incoming messages -- including auto-forwards from
55+
servers that forgot to configure SRS -- when the domain's policy is
5656
explicit-fail, add SPP_SPF_RESULT_FAIL="E550 spf_smtp_msg" to
5757
control/tcprules/smtp, then run "@RCD_SCRIPTS_DIR@/qmailsmtpd cdb".
58-
By default, such messages are accepted.
58+
(By default, such messages are accepted.)
5959

6060
DKIM (DomainKeys Identified Mail) outbound:
61-
- Run "mkdir control/domainkeys && chown qmailr control/domainkeys".
62-
- Run "cd control/domainkeys && mkdir yourdomain.com && cd yourdomain.com"
63-
- Generate a DKIM keypair for yourdomain.com:
61+
- Generate a DKIM keypair for yourdom.ain:
62+
mkdir control/domainkeys && chown @QMAIL_REMOTE_USER@ control/domainkeys
63+
cd control/domainkeys && mkdir yourdom.ain && cd yourdom.ain
6464
openssl genrsa -out default 1024 && chmod 640 default
6565
openssl rsa -in default -pubout -out default.pub
66-
- Publish a DNS TXT record for the "default" selector containing your
67-
domain's DKIM policy and public key.
68-
- To turn off signing entirely, set
69-
qmailsend_postenv="QMAILREMOTE=@PREFIX@/bin/qmail-remote"
70-
in /etc/rc.conf.
71-
By default, messages from domains that have DKIM keys will be signed.
66+
- Publish your domain's "default" DKIM policy and public key as a DNS
67+
TXT record.
68+
- To stop signing outbound messages from domains with DKIM keys present,
69+
set qmailsend_postenv="QMAILREMOTE=@PREFIX@/bin/qmail-remote"
70+
in /etc/rc.conf, then run "@RCD_SCRIPTS_DIR@/qmailsend restart".
71+
(By default, such messages are signed.)
7272

7373
DKIM incoming:
74-
- To verify DKIM signatures on incoming messages, read through
75-
@PREFIX@/bin/qmail-dkimverify-queue, set QMAILQUEUE to invoke it, set
76-
DKVERIFY in the environment to enable verification, be prepared to
77-
figure out what's not working, and report your findings to this
78-
package's maintainer. (It might just work; I haven't tried it yet.)
79-
By default, messages are accepted without verifying.
74+
- The package maintainer has not tested this yet. Be prepared to figure
75+
out what's not working, and please report your findings.
76+
- To verify DKIM signatures on incoming messages, add
77+
QMAILQUEUE="@PREFIX@/bin/qmail-dkimverify-queue" to control/tcprules/smtp.
78+
Set DKVERIFY in that script's environment, perhaps in the same tcprules.
79+
Then run "@RCD_SCRIPTS_DIR@/qmailsmtpd cdb".
80+
(By default, no verification is performed.)
8081
- To get useful headers prepended, it's likely you'll need this custom
8182
dkimverify.pl: <URL:https://www.memoryhole.net/qmail/dkimverify.pl>
8283

0 commit comments

Comments
 (0)