wm: doc

Download patch

ref: dad3b1de755665fd636045562ee9da4a9702e462
parent: fc1c6f487806d788994ee51cd428b5495f776d8f
author: jrmu <jrmu@cloud9p.org>
date: Wed Sep 25 19:38:17 EDT 2024

Turn on opportunistic TLS when sending

--- a/smtpd.ms
+++ b/smtpd.ms
@@ -53,7 +53,25 @@
 
 You will also want to edit /mail/lib/names.local for the users you want to handle mail for.
 
-Make sure to replace yourdomain.dom in /mail/lib/remotemail to use your actual domain.
+Edit /mail/lib/remotemail to add the -C -s flags to turn on TLS encryption when sending.
+-C is needed in case some certificates don't validate properly:
+
+#!/bin/rc
+shift
+sender=$1
+shift
+addr=$1
+shift
+fd=`{/bin/upas/aliasmail -f $sender}
+switch($fd){
+case *.*
+	;
+case *
+	fd=example.com
+}
+exec /bin/upas/smtp -C -s -h $fd $addr $sender $*
+
+Make sure to replace example.com with your actual domain name.
 
 If you are logged in as a user other than the default hostowner (glenda), you will need to create the user's mailbox: