ref: b251de8a2c2ce948fc587796341488f428c18049
parent: db5ac4f95380f44eb3268570160689f57fb5471c
author: jrmu <jrmu@cloud9p.org>
date: Sun Aug 4 19:23:57 EDT 2024
add sample /bin/service/tcp25 and smtpd.conf files
--- a/smtpd.ms
+++ b/smtpd.ms
@@ -1,3 +1,35 @@
Make sure to chmod +x /bin/service/tcp25 or else the mail server won't be able to start
+; cat /bin/service/tcp25
+#!/bin/rc
+#smtp serv net incalldir user
+
+user=`{cat /dev/user}
+exec upas/smtpd -s -e -n $3
+
+Make sure to edit /mail/lib/smtpd.conf:
+
+#
+# sample smtpd configuration options for inside connections
+#
+
+#
+# replace YOURDOM with the name of your domain
+# replace 10.0.0.0 with the IP address range of your networks
+
+defaultdomain example.com
+norelay on
+verifysenderdom off #disable dns verification of sender domain
+saveblockedmsg off #save blocked messages
+
+#
+# if norelay is on, you need to set the
+# networks allowed to relay through
+# as well as the domains to accept mail for
+#
+
+ournets 198.51.100.0/24
+
+ourdomains *.example.com
+