From 74da6ab01ed06ec2b28c615e22cc9a1308048b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 3 May 2024 21:29:13 +0000 Subject: [PATCH] docsrc/setup-postfix: fix for socketmap https://www.postfix.org/socketmap_table.5.html says after socketmap:unix:PATH follow colon and a map name. The map name is sent in the request, as described in the prelude of imap/smmapd.c, but skipped by smmapd. --- docsrc/assets/setup-postfix.rst | 2 +- docsrc/imap/reference/manpages/systemcommands/smmapd.rst | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docsrc/assets/setup-postfix.rst b/docsrc/assets/setup-postfix.rst index 8750ce8d28..9735e4832b 100644 --- a/docsrc/assets/setup-postfix.rst +++ b/docsrc/assets/setup-postfix.rst @@ -31,7 +31,7 @@ server and engineer delivery via LMTP. The following examples show the or, if you have enabled smmapd you can automatically track mailboxes with:: postconf -e "virtual_mailbox_domains=hash:/etc/postfix/virtual_recipient_domains" - postconf -e "virtual_mailbox_maps=socketmap:unix:/run/cyrus/socket/smmap" + postconf -e "virtual_mailbox_maps=socketmap:unix:/run/cyrus/socket/smmap:smmapd" 2. Optional: Set the concurrency and recipient limits for LMTP delivery to the ``virtual`` destination:: diff --git a/docsrc/imap/reference/manpages/systemcommands/smmapd.rst b/docsrc/imap/reference/manpages/systemcommands/smmapd.rst index b03df77f25..428dca8e75 100644 --- a/docsrc/imap/reference/manpages/systemcommands/smmapd.rst +++ b/docsrc/imap/reference/manpages/systemcommands/smmapd.rst @@ -24,7 +24,12 @@ Description a Cyrus mailbox exists, that it is postable and it is under quota. It accepts commands on its standard input and responds on its standard output. It MUST be invoked by :cyrusman:`master(8)` with those -descriptors attached to a remote client connection. +descriptors attached to a remote client connection. The service ignores +the userdeny database. The received queries contain map name followed by +mailbox, **smmapd** ignores the map name. Queries with plus addressing return +*OK* if the user has a mailbox with the name after plus, otherwise the result +is *NOTFOUND*. Match for the mailbox after plus is performed case-sensitive, +for the address before the plus - case-insensitive. **smmapd** |default-conf-text|