[ALUG] How to get mail to local destinations delivered?

(Ted Harding) ted.harding at nessie.mcc.ac.uk
Sat Nov 10 20:05:57 GMT 2007


On 10-Nov-07 18:14:31, 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
> 
> but obviously sendmail is doing a DNS lookup for home.isbd.net which
> returns the 'external' IP address.

Just had another thought! (I didn't look closely enough at your
/etc/hosts entry the first time).

The canonical format for an entry in /etc/hosts is

  IP_address canonical_hostname aliases

where as it looks as though yours is

  IP_address alias canonical_hostname

which may throw sendmail off the scent. I suggest you try
writing it as

  192.168.1.1     home.isbd.net     home

If that works, then there'll be the question of how it got written 
wrong in the first place. Often this is done automatically by some
system script (which may well be run at each re-boot). So you may
have to work round that issue ...

Hoping, again, that this helps!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 10-Nov-07                                       Time: 20:05:29
------------------------------ XFMail ------------------------------



More information about the main mailing list