This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] lists.sr.ht: added OpenSMTPD configuration example

Message ID
DKIM signature
Download raw message
Patch: +16 -2
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].


 [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(-)

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
Message ID
<20210915075842.20211-1-eloi.rivard@aquilenet.fr> (view parent)
DKIM signature
Download raw message
DKIM signature: fail

To git@git.sr.ht:~sircmpwn/sr.ht-docs
   5d3f6f2..e428716  master -> master
Reply to thread Export thread (mbox)