From: Patrick Chemla on
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
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