wm: infra

Download patch

ref: 4124e6fda5da5ceeffa321074fbcbdcc72697c8d
parent: dda3aa357ee82e6d851cd75ef6750acc4956fcb9
author: saeed <saeed@cloud9p.org>
date: Mon Aug 25 18:56:10 IDT 2025

service.upas: import mail configs

--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp110
@@ -1,0 +1,3 @@
+#!/bin/rc
+# pop+starttls
+exec /bin/upas/pop3 -t /sys/lib/tls/acmed/cloud9p.org.crt >>[2] /sys/log/pop3
--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp25
@@ -1,0 +1,14 @@
+#!/bin/rc
+#smtp serv net incalldir user
+# smtp
+
+user=`{cat /dev/user}
+site='cloud9p.org'
+bind /env/site /dev/sysname
+
+# -f don't relay from untrusted networks
+# -r check forward dns
+# -D sleep 15 seconds
+# -h hostname
+# -n netdir
+exec upas/smtpd -frD -c /sys/lib/tls/acmed/cloud9p.org.crt -h $site -n $3
--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp465
@@ -1,0 +1,14 @@
+#!/bin/rc
+# smtp+ssl
+
+user=`{cat /dev/user}
+site='cloud9p.org'
+bind /env/site /dev/sysname
+
+# -f don't relay front untrusted networks
+# -r check forward dns
+# -D sleep 15 seconds
+# -p permit sending password in clear
+# -h hostname
+# -n netdir
+exec tlssrv -c /sys/lib/tls/acmed/cloud9p.org.crt -lsmtpd -r`{cat $3/remote} /bin/upas/smtpd -frDp -h $site -n $3
--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp587
@@ -1,0 +1,15 @@
+#!/bin/rc
+#smtp serv net incalldir user
+# smtp+starttls
+
+user=`{cat /dev/user}
+site='cloud9p.org'
+bind /env/site /dev/sysname
+
+# -f don't relay front untrusted networks
+# -r check forward dns
+# -D sleep 15 seconds
+# -p permit sending password in clear
+# -h hostname
+# -n netdir
+exec /bin/upas/smtpd -frDp -h $site -c /sys/lib/tls/acmed/cloud9p.org.crt -n $3
--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp993
@@ -1,0 +1,8 @@
+#!/bin/rc
+# imap+ssl
+
+site='cloud9p.org'
+
+# -p allow plain text auth
+exec tlssrv -c/sys/lib/tls/acmed/cloud9p.org.crt -limap4d -r`{cat $3/remote} \
+/bin/upas/imap4d -p -r`{cat $3/remote}>[2=1]/sys/log/imap4d
--- /dev/null
+++ b/plan9/cfg/wm/service.upas/tcp995
@@ -1,0 +1,6 @@
+#!/bin/rc
+# pop+ssl
+
+# -p allow plain text auth
+exec tlssrv -lpop3 -c/sys/lib/tls/acmed/cloud9p.org.crt -r`{cat $3/remote} \
+/bin/upas/pop3 -p -r`{cat $3/remote} >[2]/sys/log/pop3
--