From 5d3f6f2f8346fd8c1a681993acee606cab7d7c16 Mon Sep 17 00:00:00 2001 From: Éloi Rivard Date: Wed, 15 Sep 2021 09:58:43 +0200 Subject: lists.sr.ht: added OpenSMTPD configuration example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lists.sr.ht/configuration.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'lists.sr.ht/configuration.md') 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 -- cgit