How to send mail to localhost using an address other than 127.0.0.1 (loopback interface)

Solution Unverified - Updated -

Issue

I need to use an interface other than loopback to send mail.

[root@myserver ~]hostname myserver
[root@myserver ~]cat /etc/hosts
127.0.0.1        localhost.localdomain localhost
::1              localhost6.localdomain6 localhost6
192.168.135.111   myserver
[root@myserver ~]ifconfig
eth0      Link encap:Ethernet  HWaddr ************  
          inet addr:192.168.135.201  Bcast:192.168.135.255  Mask:255.255.255.0

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content