From: Patrick Chemla on 22 Mar 2010 04:49 Hi, I would like to relay messages to specific MX servers according to sender domain, not recipient domain. I saw the primitive sender_dependent_relayhost_maps but I don't know how to use it. Should I create a list and postmap it and set a line in my main.cf like : sender_dependent_relayhost_maps = hash:/etc/postfix/senderdomainroutes ? Thanks for help Patrick * *
From: Robert Schetterer on 22 Mar 2010 05:13 Am 22.03.2010 09:49, schrieb Patrick Chemla: > Hi, > > I would like to relay messages to specific MX servers according to > sender domain, not recipient domain. > > I saw the primitive sender_dependent_relayhost_maps but I don't know how > to use it. > > Should I create a list and postmap it and set a line in my main.cf like : > > sender_dependent_relayhost_maps = hash:/etc/postfix/senderdomainroutes ? > > Thanks for help > > Patrick > * > * > i.e sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps /etc/postfix/relaymaps #postmap hash:/etc/postfix/relaymaps @domain1.de host.relay1.de:port @domain2.org ip.add.re.ss:port @domain3.org host.relay3.com i think ip adress should work too ( but i am not sure look at doks ) better dns name, if no port give,25 should be default ( i am not sure look at doks dont forget to postmap and restart your postfix -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
|
Pages: 1 Prev: strange fatal error in postfix 2.7.0 Next: Greylist server recommendations? |