![]() |
s/qmail 4.3.14
Next generation secure email transport
|
A) REQUIREMENTS
Optional but very useful:
B) CONFIGURATION
conf-XX
files in this main directory.conf-ucspissl – path to UCSPI-SSL dirs conf-users*) – user names
Configurations labeled with +) need to be treated together.
Depending on your settings, you may need to adjust the following:
a) conf-cc: Perhaps remove the -DIDN2 option if libidn2 is not installed. Other options are: -DHIDEVIRTUALUSER -DDEFERREDBOUNCES -DSHOWLOG b) conf-ld: Adjust architecture of executables. If you use OpenSSL/LibreSSL from sources outside the default, you need to include the link path (-L). In conf-ld you find further samples for other OS.
c) conf-idn2: Include optional path to 'libidn2'.
s/qmail user settings:
a) conf-ids: The UIDs and GIDs b) conf-groups:The s/qmail group names. c) conf-users: The s/qmail user names.
Directories and system interaction:
a) conf-home b) conf-queue c) conf-qlibs d) conf-ssl e) conf-ucspissl f) conf-log g) conf-man h) conf-svcdir
Run-time issues:
a) conf-break b) conf-patrn c) conf-split d) conf-delivery e) conf-instances (still not working yet) f) conf-qmq (still not uptodate jet)
C) INSTALLATION
Upon configuration and verification to meet requirements, simply do
package/install
Detail description of installation steps:
package/dir – sets up the directories package/ids – sets up the s/qmail users package/ucspissl – hooks up the required sources and libs with package ucspi-ssl package/compile – compiles the sources package/upgrade – potentially does the upgrade package/legacy – installs the binaries in the qmail directory package/man – installes the man pages
All done be package/install. Additional (initial) settings:
package/control – populates the mininmal required control files for running package/sslenv – sets up the SSL/TLS environments together with X.509 certs and key files (from ucspi-ssl) package/service – sets up the run script for daemontools' /service and additionally the logging package/scripts setup optional, undocumented and unmaintained scripts package/run – touches qmail/alias/ files and sets default-delivery
Installation on OpenBSD
s/qmail can be placed under /usr/local/sqmail (binaries, contol, and others) and queue at /var/sqmail/(queue) not requiring 'mount -u -o suid /var' any more.
Upgrade from an existing Qmail
s/qmail will keep your current qmail setup (except for the binaries):
In case your qmail installation is out of default, use the conf-* settings (ie. ids). Make sure, that your qmail 'todo' queue and the 'tcpto' table is empty (qmail-tcpto, qmail-tcpok).
You need to change the port separator in the control files from ':' to ';' - if applicable.
Deinstallation and re-do installation
Within s/qmail's installation directory (where this file resides) simply do:
rm -r compile
Alternatively, you can do
cd compile; make clean
To re-install man-pages:
cd man; rm *.gz; make clean
Now you can continue with re-installation.
Additional compile-time options
conf-cc allows you to customize compilation for the following needs:
Delayed bounces: Use -DDEFERREDBOUNCES. Now, qmail-remote will retry mail delivery even for not DNS resolveable host names and IP addresses until queue lifetime expires.
Splitted installation directories
s/qmail can be be splitted up two separate main directories as givin in
Note: The legacy directory is however still '/var/qmail'. Usage of a splitted directory setup is mainly forseen for integrators providing binary packages of s/qmail with the requirement to obey their particular installation paths.
D) DKIM CONFIGURATION
Verification operation: Use qmail-dkverify as paramater in your 'smtpd.tcpd' file: :allow,QMAILQUEUE="bin/qmail-qmail-dkverify" Usually, qmail-dkverify works in annotation mode only, thus simply inlcudes a header for further message processing like this: X-Authentication-Results: piplus.fehcom.de; dkim=pass; bigchief.fehcom.de
If you however set 'DKIM=+' as environment variable, mails failing DKIM verification (wrong signature) will be rejected upon receipt. This is not recommended, since mails may be subject of re-writing by mail-scanning MTAs.
Note: DKIM is inappropriate with QMTP(S) delivery.
E) MISCELLANEOUS
Visit https://www.fehcom.de/sqmail/sqmail.html to access online man-pages and documentation.
Date: September, 5th 2024 (feh)