mouss wrote: > Tomasz Chmielewski wrote: >> mouss schrieb: >>> Tomasz Chmielewski wrote: >> >>>> Basically, if Postfix can specify the source IP address, that should >>>> be fine for me... provided that it can make some decisions here >>>> (i.e., which outgoing interface to choose, depending on From: or >>>> Received: etc).
Isn't it just to create a couple of transports and specify smtp_bind_address ? -o inet_interfaces=192.168.1.1 -o smtp_bind_address=192.168.1.1 You could skip the inet_interfaces part there and use a map in header_checks for instance to chose transport for delivery. >>> since you have one network card, you have one outgoing interface. >>> Choosing among one thing would be strange outside of maths ;-p >> >> Now I see I didn't pick the thread's title very well ;) >> (should be: "multiple outgoing IP addresses"). >> >> > > sysv heritage. Compare this: > > # ifconfig eth0:1 192.168.1.1 > # ifconfig eth0:2 192.168.1.2 > # ifconfig > ... > eth0:0 .... > inet adr:192.168.1.1 ... > ... > > eth0:2 ... > inet adr:192.168.1.2 ... > Deprecated! ip addr add 192.168.1.1/24 dev eth0 ip addr add 192.168.1.2/24 dev eth0 ip addr list > > with the "BSD way": > > # ifconfig xl0 192.168.1.1 alias > # ifconfig xl0 192.168.1.2 alias > # ifconfig > xl0: ... > inet 192.168.1.1 ... > inet 192.168.1.2 ... > ... > > -- Victor Jerlin, CTO Gränslösa System GSYS HB Cell#: +356-9999-0125