Am 20.01.2014 12:55, schrieb fr...@3dn.nl:
> On 20.01.2014 12:42, li...@rhsoft.net wrote:
>> Am 20.01.2014 12:25, schrieb fr...@3dn.nl:
>>> I'm trying to have postfix use smtp_bind_address with the address set to 
>>> multiple IP-aliasses (eg. eth1:0, eth1:1
>>> etc.). As the default gateway is on eth0 and IP packets get routed based on 
>>> their destination, it still seems that
>>> despite the smtp_bind_address setting, packets get directed out of eth0.
>>>
>>> What's the proper solution to this?
>>
>> please *always* post your configuration and logfiles to
>> show your problem instead a abstract description
>>
>> did you read http://www.postfix.org/postconf.5.html#smtp_bind_address?
>>
>> - you define *one* ip-address there
>> - you define a ip-address there and *not* a interface name
>> - eth1:0 is *not* a interface, the interface is eth1
>>
>> the intention of "smtp_bind_address" is on machines with more then one
>> ip-address to define the one used for outgoing connections to match
>> hostname/PTR/SPF
> 
> Yes I read that page and understand it. Sorry I wasn't more clear, I should 
> have said 'eg. the IP-addresses
> configured on eth1:0, eth1:1. I know an IP address is not an interface.
> 
> I can't simply attach the literal config file, my employer might not 
> appreciate me disclosing such information, but
> let me show you what I've done.

but you *always* need to provide configurations with consistent replacements
of not to disclose informations, otherwise no help is possible

you see below why

> - First: in main.cf I added 'sender_dependent_default_transport_maps = 
> hash:/etc/postfix/sender_transport'
> - Second: I create /etc/postfix/sender_transport with lines looking like: 
> '@3dn.nl smtp3dn:'
> - Third: I ran postmap on the sender_transport file
> - Fourth: I added a line 'smtp3dn   unix  n       -       n       -      -    
>    smtpd -v -o
> smtp_bind_address=172.24.25.19' to master.cf

smtp3dn   unix  n       -       n       -      -       smtpd -v -o 
smtp_bind_address=172.24.25.19

smtpd is wrong because you are talking about *outgoing* mail and
this is the smtp client as well as your param starts with smtp_
and not smtpd_

smtp != smtpd

smtp3dn   unix  n       -       n       -      -       smtp -v -o 
smtp_bind_address=172.24.25.19
may work better, ignoring other details for now

Reply via email to