Re: recipient MX based routing.

2009-04-23 Thread Marc Jauvin
Victor Duchovni wrote: On Thu, Apr 23, 2009 at 09:38:19PM +0200, Erwan David wrote: > Outside of postfix, how would you apply a fix at the naming level > under Linux? You could use a local dns server which would serve another IP address for this name. It is easy to do with unbound and its lo

Re: recipient MX based routing.

2009-04-23 Thread Victor Duchovni
On Thu, Apr 23, 2009 at 09:38:19PM +0200, Erwan David wrote: > > Outside of postfix, how would you apply a fix at the naming level > > under Linux? > > You could use a local dns server which would serve another IP address > for this name. It is easy to do with unbound and its local_data. Yes, us

Re: recipient MX based routing.

2009-04-23 Thread Erwan David
Le Thu 23/04/2009, Marc Jauvin disait > Victor Duchovni wrote: > >> On Thu, Apr 23, 2009 at 03:15:48PM -0400, Marc Jauvin wrote: >> >>> Note: using iptables to reroute traffic for Godaddy's IP address does work, >>> but it's unlikely to work reliably if they change those IP addresses (or >>> add n

Re: recipient MX based routing.

2009-04-23 Thread Marc Jauvin
Victor Duchovni wrote: On Thu, Apr 23, 2009 at 03:15:48PM -0400, Marc Jauvin wrote: Note: using iptables to reroute traffic for Godaddy's IP address does work, but it's unlikely to work reliably if they change those IP addresses (or add new ones to the mix). Well, how would Postfix know it

Re: recipient MX based routing.

2009-04-23 Thread Victor Duchovni
On Thu, Apr 23, 2009 at 03:15:48PM -0400, Marc Jauvin wrote: > Note: using iptables to reroute traffic for Godaddy's IP address does work, > but it's unlikely to work reliably if they change those IP addresses (or > add new ones to the mix). Well, how would Postfix know it is Godaddy's SMTP ser

Re: recipient MX based routing.

2009-04-23 Thread Marc Jauvin
Wietse Venema wrote: Marc Jauvin: Hi everyone, I'd like to know if there's a way to have different relayhost based on the MX records of the recipient for outgoing mail. I'd like to relay outgoing emails to multiple different domains (all going through a common mail exchange) to a particular r

Re: recipient MX based routing.

2009-04-23 Thread Wietse Venema
Marc Jauvin: > Hi everyone, > > I'd like to know if there's a way to have different relayhost based on > the MX records of the recipient for outgoing mail. I'd like to relay > outgoing emails to multiple different domains (all going through a > common mail exchange) to a particular relayhost

Re: recipient MX based routing.

2009-04-23 Thread Marc Jauvin
That works, although I would have liked it to be done within postfix. Thanks for the suggestion!!! Victor Duchovni wrote: On Thu, Apr 23, 2009 at 01:52:27PM -0400, Marc Jauvin wrote: I'd like to know if there's a way to have different relayhost based on the MX records of the recipient for

Re: recipient MX based routing.

2009-04-23 Thread Victor Duchovni
On Thu, Apr 23, 2009 at 01:52:27PM -0400, Marc Jauvin wrote: > I'd like to know if there's a way to have different relayhost based on the > MX records of the recipient for outgoing mail. No. MX lookups happen late in the process, when the message is in the "hands" of the delivery agent. Postfix

recipient MX based routing.

2009-04-23 Thread Marc Jauvin
Hi everyone, I'd like to know if there's a way to have different relayhost based on the MX records of the recipient for outgoing mail. I'd like to relay outgoing emails to multiple different domains (all going through a common mail exchange) to a particular relayhost. Thanks. -- Marc Jau