On Sat, Nov 23, 2024 at 11:11:11AM -0800, Randy Bush via Postfix-users wrote:
> >> did the trick, along with a specific transport > >> > >> s...@m0.rg.net local:/var/mail/spam > > > > You've still not quite internalised my explanation of local(8) nexthops. > > There's no good reason to set the nexthop explicitly here, and the value > > chosen no significance. When the mail is delivered depends only on > > the recipient address, and your aliases(5) file, passwd(5) file, > > .forward file for the user, ... See local(8) for details. > > part of my problem is i miss playing `sendmail -bt` adventure to see > what the mta is gonna do and why. e.g. from an exim system You can use "sendmail -bv", which isn't quite the same of course, ... > on mx0.rg.net there is a local userid spam. but without that explicit > transport it sends it off to a host where users with 42 j random domains > hide due to the last line in transport > > * smtp:[psg.com] > > putting it in virtual works i guess > > s...@m0.rg.net spam I wasn't suggesting not defining a transport entry, I was merely suggesting you should drop the "nexthop". transport: s...@m0.rg.net local Though, I do in fact generally prefer per-user rewriting over per-user transport tables, so using virtual(5) to rewrite to a local address is here better aligned with my view of best practice. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org