Am 19.12.2009 00:07, schrieb Dasza Seyda: > If I add a "relayhost" to main.cf: > > relayhost = relayhost.example.com > > all main will be delivered through relayhost.example.com. > > > > Now, I would like to deliver mail i.e. for @mylocaldomain directly, > not through relayhost - how should I do it? > > I tried sender_dependent_relayhost_maps, but I'm not sure what syntax > I should use if I would like to deliver mail directly for some senders. > > > If you set mylocaldomain in mydestination or virtual_mailbox_domains of your main.cf then Postfix should not relay the mail. If you want that Postfix smtp client sends emails based on sender to different relay servers then http://www.postfix.org/SASL_README.html would be something for you
Cheers tobi