* Viktor Dukhovni <postfix-users@postfix.org>: > On Wed, Jan 11, 2023 at 03:57:28PM +0100, Patrick Ben Koetter wrote: > > > Today I ran into a lookup problem where a sender (!) was using the RFC 5233 > > subaddress schema so send a message e.g. as localpart+subaddress@domainpart > > and lookups with smtpd_sender_login_maps failed because I was unable to come > > up with a LDAP query_filter that would look for localpart@domainpart a ka > > strip the subaddress. > > http://www.postfix.org/postconf.5.html#recipient_delimiter > > The documentation isn't clear on whether extensions are handled in > > http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps > > but they are. You shouldn't need any LDAP-specific support here, > Postfix will automatically generate a query with the extension elided.
Thanks! Makes me wonder why the setup I was testing today failed to behave like you wrote. I'll try to reconstruct this on a test machine as soon as I find time and verify that. p@rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein