Setting up the TLS Service on port 587 is not absolutely necessary but a lot of apple devices require this. The folders and run files are in place so all we need to do is setup the IP and then setup the service. I have also created a new qmailctl script that can handle the TLS service.
# cd /var/qmail/supervise/qmail-smtpd-tls
# vi run
You should set the following value:
IP=126.96.36.199 Substitute your own IP address. Do not leave this set to 0 without a good reason.
Save and then create the TLS Service by running the following command:
# ln -s /var/qmail/supervise/qmail-smtpd-tls /service/
Then check the service
# svstat /service/qmail-smtpd-tls/ /service/qmail-smtpd-tls/log/
/service/qmail-smtpd-tls/: up (pid 37035) 9 seconds
/service/qmail-smtpd-tls/log/: up (pid 37036) 9 seconds
it is important to note that if you use Microsoft Outlook to send mail via TLS you set the port to 587 but then under the section "Use the following type of encrypted connecttion" set this to AUTO.
If you want the qmailctl file to handle the TLS service copy this file:
# cd /var/qmail/bin
# cp qmailctl_tls qmailctl
When you run qmailctl it should now show the tls service.