Wietse Venema wrote on 2/10/23 08:24:
D. R. Evans:
I have a postfix setup that, for a long time, has done exactly what I want.
But now I have to change something and I have no idea how to make this
particular change:

E-mail from several domains are sourced on my network. Now I need to treat
e-mail with the From: line
    u...@domain1.com
differently from e-mail with the From: line
    otheru...@domain2.com

Until now, both those From: lines have been treated the same -- some
processing, then mostly sent to a relayhost, with some specific destinations
handled via the transport map; but now I need to send all e-mails with the
second From: line to a different relayhost from the one that handles the first
From: line.

There are two features that support sender-dependent routing:

sender_dependent_relayhost_maps

     This looks up a relayhost value that depends on sender.
     Like relayhost, this uses default_transport.
     It is seached with the envelope sender address and @domain.

sender_dependent_default_transport_maps

     This overrides transport and destination.
     It is seached with the envelope sender address and @domain.

In most cases, sender_dependent_relayhost_maps will do the job.

sender_dependent_default_transport_maps can be used to implement
quality of service for different senders.


I've spent far too long trying to get things to work :-( So I'm meekly returning to ask for further assistance.

Some more background:
I want everything EXCEPT e-mail from the domain @arrl.net to be handled the way it currently is handled, because that works.

E-mail from @arrl.net is to be relayed to pobox.com for them to handle.

pobox.com has a page telling how to configure postfix:
  https://www.pobox.help/hc/en-us/articles/1500000193782-Postfix
but of course that assumes that all traffic is going to be sent to pobox, so global parameters are truly global, and not confined to traffic from @arrl.net.

The first thing that the above page tells me to do is:
  smtp_tls_security_level = encrypt

But if I make that single change and then try to send an e-mail (not from @arrl.net), my postfix server says:
  TLS is required, but is not offered by host 127.0.0.1[127.0.0.1]
this makes sense (I think) because the change I made tells postfix to use TLS encryption for all e-mails, which isn't what I want :-(

So... help! Please!

  Doc

PS Basically, this comes down to:
  if sending domain is @arrl.net
    use one configuration (a new one, different from what currently exists)
  else
    use a quite different configuration (that is known to work)

--
Web:  http://enginehousebooks.com/drevans

Reply via email to