Re: Sending from multiple IPs, based on a header?

2009-11-19 Thread Ian Duggan
On Wed, Nov 18, 2009 at 4:53 PM, Wietse Venema wrote: > In smtpd_recipient_restrictions you can have an access(5) map > that uses PREPEND. > >    /@([...@]+)$/ PREPEND X-Vmta: $1 > > which can be picked up by header_checks, because thuse happen later. > > And that is as far as I am willing to reac

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
On Wed, Nov 18, 2009 at 2:03 PM, Wietse Venema wrote: > The transports(5) manpage mentions that the destination defaults > to the recipient domain. However, the scheduler uses a different > default, which appears to be inconsistent. I wonder what would > break if this were to be changed. Yes, thi

Re: Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
On Wed, Nov 18, 2009 at 12:34 PM, Wietse Venema wrote: >> far, but I am getting a "mail loops back to myself" error. > > It means that the recipient domain resolves to a local address. > > Unfortunately you ignored instructions in the mailing list welcome > message, and therefore there is no more

Sending from multiple IPs, based on a header?

2009-11-18 Thread Ian Duggan
I am trying to configure postfix to work as follows: 1) In a header_check, look for a header "X-Vmta: n" where n is some number. 2) Based on n, choose an outgoing smtp transport (bound to some ip) Basically I want postfix to choose the outgoing IP based on a header that can be placed within the m