On Thu, Feb 16, 2023 at 01:45:32PM -0500, Viktor Dukhovni wrote: > On Thu, Feb 16, 2023 at 11:33:43AM -0700, D. R. Evans wrote: > > > In a (failed) attempt to get this working, I have added the following to > > main.cf: > > > > sender_dependent_relayhost_maps=hash:/etc/postfix/relayhost_maps > > Note, this affects recipients that would be routed to the *default* > transport and nexthop. > > > @arrl.net [smtp.pobox.com]:587 > > > > I have done the usual > > > > but when I try to send an e-mail from my address n...@arrl.net it is still > > not > > routed to smtp.pobox.com, but to the server designated on the normal > > relayhost= line in the main.cf file. > > What sort of recipient address did you choose? Is the recipient in the > default address class (not local, virtual mailbox, or relay)? Is there a > transport table entry for the recipient domain? ...
On Fri, Feb 17, 2023 at 09:22:18AM -0700, D. R. Evans wrote: > I must be doing something particularly obviously stupid, because doing my > best > to follow the advice from Wietse in the thread "different treatment for > different From: domains", I have tried everything I can think of, and am > unable to get sender_dependent_relayhost_maps to actually change the > relayhost > for mails from a particular domain. As already mentioned, what *recipient* address are you testing with??? Are there any transport mappings for that recipient? What is the recipient's address class (see ADDRESS_CLASS_README). Note also that any explicit nexthop in sender_dependent_default_transport_maps has a higher priority than the the relayhost (sender-dependent or not). You should also share logs that show the queue manager and delivery agent processing of the probe mesage you expected to be sent to pobox. Show unmodified email addresses. -- Viktor.