code: fqa.9front.org

Download patch

ref: 2d6b233a8fdd23ae389152c3232fa774d41d1587
parent: 3adcd10436353b0185a749988974521a59355791
author: sl <sl@9front>
date: Wed Sep 14 22:09:39 EDT 2022

fqa.ms, fqa7.ms: add 7.7.0 - tcp25 (thanks, chris)

--- a/fqa.ms
+++ b/fqa.ms
@@ -1057,6 +1057,10 @@
 7.7 - Mail server configuration and maintenance
 .ihtml a
 
+.ihtml a <a href="fqa7.html#7.7.0">
+7.7.0 - tcp25
+.ihtml a
+
 .ihtml a <a href="fqa7.html#7.7.1">
 7.7.1 - smtpd.conf
 .ihtml a
--- a/fqa7.ms
+++ b/fqa7.ms
@@ -1491,6 +1491,15 @@
 as well as write permissions for any mailboxes where mail will be delivered.
 
 .B Note:
+That user is often user
+.CW none ,
+because
+.CW upas
+hardcodes becoming
+.CW none
+in some of its sub-programs.
+
+.B Note:
 Be sure to configure proper DNS entries for your domains. If Plan 9 will host your DNS, see:
 .ihtml a <a href="fqa6.html#6.2.5.2">
 .I
@@ -1510,6 +1519,22 @@
 
 The following sections describe configuration of basic Internet mail services.
 
+.html - <a name="7.7.0" />
+.ihtml h3 <h3>
+.SH
+7.7.0 - tcp25
+.R
+.ihtml h3
+
+Port 25 is disabled by default. Enable it by creating the file
+.CW /rc/bin/service/tcp25 :
+.P1
+#!/bin/rc
+user=`{cat /dev/user}
+exec /bin/upas/smtpd -s -e -n $3
+# to use with listen1, change $3 to $net
+.P2
+
 .html - <a name="7.7.1" />
 .ihtml h3 <h3>
 .SH
@@ -1576,7 +1601,7 @@
 \el!(.*)\ alias\ \e1
 (ttr|9front.org|bell-labs.co|cat-v.org)!(.*)	alias\ \e2
 [^!@]+\ translate\ "/bin/upas/aliasmail \'&\'"
-local!(.*)\ >>\ /mail/box/\\1/mbox
+local!(.*)\ >>\ /mail/box/\e1/mbox
 
 # we can be just as complicated as BSD sendmail...
 # convert source domain address to a chain a@b@c@d...
@@ -1588,7 +1613,7 @@
 ([^@]+)@([^@]+)\ alias\ \e2!\e1
 
 # /mail/lib/remotemail will take care of gating to systems we don't know
-([^!]*)!(.*)\ |\ "/mail/lib/qmail \'\e\es\' \'net!\e1\'" "\'\e2\'"
+([^!]*)!(.*)\ |\ "/mail/lib/qmail \'\es\' \'net!\e1\'" "\'\e2\'"
 .P2
 .html - Example file: <a href="http://plan9.stanleylieber.com/mail/lib/rewrite">rewrite</a>
 Read:
@@ -1664,7 +1689,7 @@
 .P1
 #!/bin/rc
 user=`{cat /dev/user}
-exec /bin/upas/smtpd -c /sys/lib/tls/cert -n $3
+exec /bin/upas/smtpd -e -c /sys/lib/tls/cert -n $3
 # to use with listen1, change $3 to $net
 .P2