On Tue, 2009-09-29 at 07:57 -0300, Postfix User wrote:
> On Tue, 2009-09-29 at 14:28 +0530, ram wrote:
> > On Tue, 2009-09-29 at 00:58 -0300, Postfix User wrote:
> > > I'm having an issue getting the smtp client to bind to an aliased IP
> > > address.
> > > 
> > > mail_version = 2.5.7
> > > 
> > > I've tried to no avail to have the smtp client use a aliased IP to
> > > deliver mail but it insists on using the address of the interface the
> > > aliased address is assigned to.
> > > 
> > > #  ifconfig eth2 && ifconfig eth2:1
> > > 
> > > eth2      Link encap:Ethernet  HWaddr 00:15:17:6f:e6:1e  
> > >           inet addr:142.22.75.146  Bcast:142.22.75.151  
> > > Mask:255.255.255.248
> > >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> > >           RX packets:38366130 errors:0 dropped:0 overruns:0 frame:0
> > >           TX packets:32267506 errors:0 dropped:0 overruns:0 carrier:0
> > >           collisions:535231 txqueuelen:100 
> > >           RX bytes:10481726082 (9.7 GiB)  TX bytes:33812562876 (31.4 GiB)
> > >           Base address:0xece0 Memory:fc7e0000-fc800000 
> > > 
> > > eth2:1    Link encap:Ethernet  HWaddr 00:15:17:6f:e6:1e  
> > >           inet addr:142.22.75.147  Bcast:142.22.75.151  
> > > Mask:255.255.255.248
> > >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> > >           Base address:0xece0 Memory:fc7e0000-fc800000 
> > > 
> > > 
> > > I've tried the following in main.cf ...
> > > 
> > > smtp_bind_address = 142.22.75.147
> > > 
> > > I've also tried the following in master.cf ...
> > > 
> > > smtp      unix  -       -       n       -       -       smtp
> > >        -o smtp_bind_address=142.22.75.147
> > > 
> > > Reading a correlation between smtp_bind_address and inet_interfaces in
> > > the docs I've also tried the following in main.cf ...
> > > 
> > > inet_interfaces = $myhostname, localhost
> > > 
> > > With the later netstat shows master binding to the aliased address
> > > 142.22.75.147 and 127.0.0.1 and the smtpd server receives mail fine on
> > > the aliased address however the smtp client persists in using
> > > 142.22.75.146 to deliver mail to other hosts.
> > > 
> > How can you say that ? The way of checking is send a mail to any other
> > server. And check the full headers for the ip used. Dont use netstat.
> > The smtp connection will not last too long for your inspection.
> > 
> 
> Indeed, I've confirmed it by checking both headers and logs. Sorry about
> that, I thought that a little too obvious to mention.  
> 
> > 
> > > tcp        0      0 127.0.0.1:25            0.0.0.0:*               
> > > LISTEN     27605/master        
> > > tcp        0      0 142.22.75.147:25        0.0.0.0:*               
> > > LISTEN     27605/master       
> > > 
> > > 
> > No this is not smtp client , this indicates smtpd listening for incoming
> > messages. Dont confuse smtpd with smtp 
> > 
> 
> I'm aware of that and it was mentioned, I showed the netstat output to
> show that postfix was using inet_interfaces as expected. FWIW I also
> tried this with just the aliased IP address.
>  
> > > What am I missing?
> > 
> > I dont think there is anything. You are probably already meeting your
> > requirement
> > 
> 
> As I've confirmed that it's not, any other suggestions?
> 
smtp bind works fine. 
Trace the mail in the logs. Probably enable verbose logging for smtp
Did you see any error line that says could not bind to <ip> 








> 
> Thanks
> --
> 
> 
> 

Reply via email to