Hello,

There is nothing that prevents local_recipient_maps from being used elsewhere. 
The need to do so just hasn't come up.

To be fair, I don’t have any use for this either. It’s just I had a misconfiguration on my side, a user wouldn’t get their mails (well, myself actually, the postmaster), and /usr/sbin/sendmail -bv said all was fine. It don’t think it took me long to find out the issue, though.

As for local_recipient_maps not being checked elsewhere in Postfix:

[…]

Oh! Now I understand your first reply. I was wondering what you meant back then.

You had not mentioned LMTP.

I don’t think I mentioned anything else either 🙂.

mailbox_transport and _maps were originally used to deliver mail for UNIX and [1] non-UNIX accounts to a [2] Dovecot command-line tool. Both [1] and [2] were poor solutions.

Hmm… I was using LMTP through mailbox_transport:

> mailbox_transport = lmtp:unix:private/dovecot-lmtp

Is this bad?

This is why the doc mmentions that local_recipient_maps is used by the SMTP 
daemon.

Indeed, it does. But it doesn’t say it is not used by other processes, or at least I didn’t understand that when reading it.

Anyway, I promised a documentation patch that would make this more explicit, here it is! Sorry it took me a little long to do it, as I have been busy on other issues.

I didn’t see any CONTRIBUTING file with guidelines or how to submit patches, so I hope the attachment on this mail will do it. Also, the "sources" we can download from <https://www.postfix.org/download.html> include the built documentation, so I hope the files I edited under proto/ are the actual documentation sources rather than the result of a first build phase.

Regards,

--
Étienne Miret
https://etienne.miret.io/
diff -ruN -x README_FILES -x .idea -x html -x man 
/var/tmp/postfix-3.8.1/proto/LOCAL_RECIPIENT_README.html 
Documents/Development/postfix-3.8.1/proto/LOCAL_RECIPIENT_README.html
--- /var/tmp/postfix-3.8.1/proto/LOCAL_RECIPIENT_README.html    2023-03-09 
00:35:26
+++ Documents/Development/postfix-3.8.1/proto/LOCAL_RECIPIENT_README.html       
2023-08-28 20:15:41
@@ -57,7 +57,9 @@
 local when its domain matches $mydestination, $inet_interfaces or
 $proxy_interfaces. If a local username or address is not listed in
 $local_recipient_maps, then the Postfix SMTP server will reject
-the address with "User unknown in local recipient table".  </p>
+the address with "User unknown in local recipient table".
+Note that this username may still be able to receive mails from other
+sources (like sendmail(1)). </p>
 
 <p> The default setting, shown below, assumes that you use the
 default Postfix local(8) delivery agent for local delivery, where
diff -ruN -x README_FILES -x .idea -x html -x man 
/var/tmp/postfix-3.8.1/proto/postconf.proto 
Documents/Development/postfix-3.8.1/proto/postconf.proto
--- /var/tmp/postfix-3.8.1/proto/postconf.proto 2023-06-05 21:12:17
+++ Documents/Development/postfix-3.8.1/proto/postconf.proto    2023-08-28 
20:12:58
@@ -2425,6 +2425,9 @@
 <p>
 If this parameter is non-empty (the default), then the Postfix SMTP
 server will reject mail for unknown local users.
+For now, this parameter is ignored by other processes, which means
+a misconfiguration here can lead to a local user receiving mails
+from sendmail(1) but not from SMTP clients.
 </p>
 
 <p>

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to