Josef G. Bauer: > Hi, > > I have posted this on news:alt.comp.mail.postfix without getting a > reply. > > I really would like to know, if I should use the proposes solution. > > I need to deliver mail to hosts in my domain > (ANY_HOST.intranet.mydomain.com) directly via smtp, elsewhere via a > relayhost.
Using the built-in precedence order of relayhost and transport_maps: /etc/postfix/main.cf: # Deliver ANY_HOST.intranet.mydomain.com directly. transport_maps = hash:/etc/postfix/transport # Deliver other destinations via the provider. relayhost = mail.myprovider.com /etc/postfix/transport: .intranet.mydomain.com : Some things may be easier to express with a procedural language. For that, you could use transport_maps = tcp:host:port or some other programmed solution. Wietse