5d3f6f2f8346fd8c1a681993acee606cab7d7c16 — Éloi Rivard 4 days ago e428716 master
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].


 [1] https://github.com/OpenSMTPD/OpenSMTPD/issues/1026
 [2] https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C369e6e3efa0f66b79ff0049fd7c11acdcb9631fd.camel%40aquilenet.fr%3E
1 files changed, 16 insertions(+), 2 deletions(-)

M lists.sr.ht/configuration.md
M lists.sr.ht/configuration.md => lists.sr.ht/configuration.md +16 -2
@@ 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