How to get mail to local destinations delivered?
Peter J. Stieber
developer at toyon.com
Mon Nov 12 15:08:22 UTC 2007
Chris G wrote:
> On Mon, Nov 12, 2007 at 08:56:14PM +0900, John Summerfield wrote:
>> Chris G wrote:
>>> On Sat, Nov 10, 2007 at 11:28:16PM +0530, Vivek J. Patankar wrote:
>>>> Chris G wrote:
>>>>> I don't want to open up port 25 and it seems a bit silly anyway to
>>>>> send mail on such a long round trip. Is there any way I can tell
>>>>> sendmail that home.isbd.net is localhost (or 192.168.1.1)? I have an
>>>>> entry for home.isbd.net in my /etc/hosts file which is:-
>>>>> 192.168.1.1 home home.isbd.net
>>>> Try adding 127.0.0.1 as home.isbd.net in the hosts file.
>>>>
>>> There's a big comment in /etc/hosts saying that breaks things.
>>
>> He said "add," not "change" or "replace." It shouldn't take long to see
>> what it breaks, if anything.
>>
> The comment says:-
>
> # By the way, Arnt Gulbrandsen <agulbra at nvg.unit.no> says that 127.0.0.1
> # should NEVER be named with the name of the machine. It causes problems
> # for some (stupid) programs, irc and reputedly talk. :^)
> #
>
Chris,
Have a look at
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers
Note the 127.0.0.1 line they use. It is about one quarter of the way
down the page.
Doing this and removing your 192.168.1.1 line in hosts is a way to "tell
sendmail that home.isbd.net is localhost".
Depending on your configuration, you may be able to get away with only
removing the 192.168.1.1 line in /etc/hosts. The Machine will know its
name is associated with 192.168.1.1 from
/etc/sysconfig/networking/devices/ifcfg-eth*.
Pete
More information about the fedora-list
mailing list