A NetBSD rc.d
start script for running qmail-smtpd with sslserver.
This script is useful for the approximately two other people on this planet that run qmail from pkgsrc
on NetBSD
and need to have a second instance of qmail-smtpd
running with ssl support on port 465
.
- ./net/ucspi-ssl provides sslserver binary
- ./mail/qmail-run provides qmailsend and other scripts needed to run qmail on netbsd
- copy script into
/etc/rc.d/
- add
qmailsmtpssld=YES
to/etc/rc.conf
- provide ssl cert. script assumes
/var/qmail/control/servercert.pem
as location - run
/etc/rc.d/qmailsmtpssld start
to start
New qmail instance should be available on port 465
qmailsmtpssld_postenv
: PointCERTFILE
to the location of your cert. Default value isQMAILQUEUE=/usr/pkg/bin/qmail-queue CERTFILE=/var/qmail/control/servercert.pem KEYFILE= DHFILE= "
.qmailsmtpssld_tcpport
: Sets the port for sslserver to use. Default value is465
I do not pretend to understand exactly how the NetBSD rc.d
System is working. I do not take any responsibility if this script kills your system or mauls a loved one.