> On Tue 29 Oct 2024, at 14:38, Viktor Dukhovni via Postfix-users > <postfix-users@postfix.org> wrote: > > On Tue, Oct 29, 2024 at 01:35:54PM +0000, Ken Gillett via Postfix-users wrote: > > … >> However I am still puzzled that after the latter is not found in >> virtual_users, the address checking continues to check in passwd (or >> OD):- > > Checking the address-class-specific tables is expected when there's no > matching entry in virtual(5), canonical(5) or other possible sources > of address rewrites..
Sorry, the way I added the code messed up the meaning of what I was trying to say which was that I was puzzled why it continued to look for the @myhostname after getting a result looking for user. > This second lookup is unexpected, and clobbers the prior result. Exactly. >> How can I fix that? > > You can't, except (see above) by adding entries to virtual(5). > > Apple's source code (for MacOS) Postfix 2.5.5 appears essencially the > same as upstream: > > > https://github.com/apple-oss-distributions/postfix/blob/postfix-197.7/postfix/src/global/mail_version.h#L24 > > https://github.com/apple-oss-distributions/postfix/blob/postfix-197.7/postfix/src/global/mail_addr_find.c#L123-L156 > > I haven't found Apple source code for a server-specific Postfix. > > It appears, at first blush, that either the Apple server product or its > compiler modified Postfix to produce binaries that behave in ways not > intended by the upstream Postfix C-source, since the localpart lookup > success should short-circuit the "@domain" lookup and its failure. Yes, this was my conclusion. I will have to live with it until setting up the new server. Until then, I will add the appropriate items in virtual_users. I did not want to do that until I knew of any final solution - or not, since that would have eliminated any possibility of further testing the errant behaviour. Thanks for the help. Much appreciated. Ken G i l l e t t _/_/_/_/_/_/_/_/
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org