aboutsummaryrefslogtreecommitdiffstats
path: root/lists.sr.ht
diff options
context:
space:
mode:
authorÉloi Rivard <eloi.rivard@aquilenet.fr>2021-09-15 09:58:43 +0200
committerDrew DeVault <sir@cmpwn.com>2021-09-15 12:24:50 +0200
commit5d3f6f2f8346fd8c1a681993acee606cab7d7c16 (patch)
tree611669548a88f4ba055a44c0faaca309d3b44826 /lists.sr.ht
parente428716afc4f346f389299f48a04bff0f5952b9f (diff)
downloadsr.ht-docs-5d3f6f2f8346fd8c1a681993acee606cab7d7c16.tar.gz
lists.sr.ht: added OpenSMTPD configuration example
Latest OpenSMTPD version correctly handle the tilde character [1]. Here is a patch of a working piece of configuration. This follows an old discussion [2]. Éloi [1] https://github.com/OpenSMTPD/OpenSMTPD/issues/1026 [2] https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C369e6e3efa0f66b79ff0049fd7c11acdcb9631fd.camel%40aquilenet.fr%3E
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