aboutsummaryrefslogtreecommitdiffstats
path: root/lists.sr.ht
diff options
context:
space:
mode:
Diffstat (limited to 'lists.sr.ht')
-rw-r--r--lists.sr.ht/configuration.md18
1 files changed, 16 insertions, 2 deletions
diff --git a/lists.sr.ht/configuration.md b/lists.sr.ht/configuration.md
index c63cafe..b90be9a 100644
--- a/lists.sr.ht/configuration.md
+++ b/lists.sr.ht/configuration.md
@@ -22,8 +22,10 @@ to the socket.
# Mail Server
The precise configuration of your mail server is a very subjective matter, and
-we don't have a one-size-fits-all solution to give you. Here's an example of
-forwarding to lists.sr.ht with postfix:
+we don't have a one-size-fits-all solution to give you. Here are examples of
+forwarding to lists.sr.ht with:
+
+### Postfix
# main.cf
local_transport = local:$myhostname
@@ -33,6 +35,18 @@ forwarding to lists.sr.ht with postfix:
lists.sr.ht lmtp:unix:/tmp/lists.sr.ht-lmtp.sock
sr.ht local:sr.ht
+### OpenSMTPD
+
+ # /etc/smtpd/smtpd.conf
+
+ ...
+ action listssrht lmtp "/tmp/lists.sr.ht-lmtp.sock" rcpt-to virtual { "@" = lists }
+ action "relay" relay
+
+ match from any for domain "lists.mydomain.tld" action listssrht
+ match from any auth for any action "relay"
+ match from local for any action "relay"
+
This forwards mail to @lists.sr.ht to the LMTP socket, and processes mail to
@sr.ht to local mailboxes. This is just one part of your setup, however, and
the remainder of your postfix (or other mail server) configuration is left as