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. Now I got: ------------------------------------------------------------ main.cf - relayhost = mail.myprovider.com transport_maps = regexp:/etc/postfix/transport ---------------------------------------------------------------------- ---------------------------------------------------------- transport - /^...@pelikan$/ : /^...@pelikan\.intranet\.mydomain\.com$/ : /^...@[^.]*$/ smtp: /^...@[^.]*\.intranet\.mydomain\.com$/ smtp: ---------------------------------------------------------------------- 'pelikan' is the hostname of the local machine. This solution seems to work, just looks very complicated to me. Is there an easier solution? Greetings Josef