# EHLO command takes virtual IP address

**URL:** <https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613>\
**Category:** SLES Networking\
**Created:** [November 11, 2015, 9:00am UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613 "2015-11-11T09:00:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jineeshc](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jineeshc](https://forums.suse.com/u/jineeshc)\
**Post date:** [November 11, 2015, 9:00am UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613/1 "2015-11-11T09:00:39Z")

</div>

Hello Experts,

I have a SUSE 11SP3 in which my apps team is trying to send emails but the SMTP server rejects the traffic from this server. A detailed trace shows that the traffic is going to SMTP server through the virtual IP configured on the physical interface. Actually it has to go through the physical interface. SMTP server was configured to accept the connections from IP/hostname configured on the physical interface.

We tried telnet to the SMTP server with port no 25,

szcld01:/etc # telnet [LTC-SMTP-RELAY-PRI.ABCD.NET](http://LTC-SMTP-RELAY-PRI.ABCD.NET) 25  
Trying 10.179.2.166…  
Connected to [LTC-SMTP-RELAY-PRI.TWUTIL.NET](http://LTC-SMTP-RELAY-PRI.TWUTIL.NET).  
Escape character is ‘^]’.  
220 [EXHWP02.TWUTIL.NET](http://EXHWP02.TWUTIL.NET) Microsoft ESMTP MAIL Service ready at Wed, 11 Nov 2015 06 :46:46 +0000  
ehlo  
[250-EXHWP02.TWUTIL.NET](http://250-EXHWP02.TWUTIL.NET) Hello [10.179.56.242] ===========\>\>\>\>\>\>\> this is the virtual IP  
250-SIZE  
250-PIPELINING  
250-DSN  
250-ENHANCEDSTATUSCODES

So the apps team suspects this could be the issue behind the problem. My physical IP is 10.179.56.221

Can anyone help me to resolve this?

---

<div class="post-metadata">

**Author:** ![maikcat](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@maikcat](https://forums.suse.com/u/maikcat)\
**Post date:** [November 11, 2015, 9:43am UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613/2 "2015-11-11T09:43:56Z")

</div>

maybe this can help…

[https://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/](https://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/)

also if you use postfix you can configure its helo name as well

smtp\_helo\_name = [test.smtp.com](http://test.smtp.com)

Michael.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 11, 2015, 12:04pm UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613/3 "2015-11-11T12:04:06Z")

</div>

Hi jineeshc,

> SMTP server was configured to accept the connections from IP/hostname configured on the physical interface.

assuming that you run Postfix, to what value is “inet\_interfaces” set in /etc/postfix/main.cf?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![jineeshc](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jineeshc](https://forums.suse.com/u/jineeshc)\
**Post date:** [November 12, 2015, 1:47pm UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613/4 "2015-11-12T13:47:25Z")

</div>

Thanks Jens and Michael.

Actually the issue turned to be a wrong subnet mask on the virtual IP. I had 255.255.252.0 on the physical IP and 255.0.0.0 on the virtual IP.I configured same subnet on the virtual IP as on the physical. Now my traffic is going through the physical IP.

Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 12, 2015, 2:23pm UTC](https://forums.suse.com/t/ehlo-command-takes-virtual-ip-address/27613/5 "2015-11-12T14:23:14Z")

</div>

Hi jineeshc,

> [@jineeshc;30379](#):
>
> Actually the issue turned to be a wrong subnet mask on the virtual IP. I had 255.255.252.0 on the physical IP and 255.0.0.0 on the virtual IP.I configured same subnet on the virtual IP as on the physical. Now my traffic is going through the physical IP.

thank you for reporting back - this indeed does explain the behavior and I will add that to my internal list of items to check in similar cases 🙂

Regards,  
Jens
