Tim Wilson wrote:
> On 9/27/04 9:36 PM, "Steve Siegfried" <sos at zjod.net> wrote:
> 
> > Tim Wilson wrote:
> >> 
> >> I've got a box that has a number of virtual hosts doing a bunch of different
> >> things. When I installed Debian Linux originally, I set the computer's
> >> hostname to 'homer' after everyone's favorite doughnut-eating symbol of
> >> Americana.
> >> 
> >> I discovered just today that postfix isn't getting any outgoing email
> >> through to domains other than our own. Here's a typical entry from
> >> /var/log/mail.log
> >> 
> >> Sep 27 12:40:11 homer postfix/smtp[13172]: 1A2622124: to=<wilson at visi.com>,
> >> relay=none, delay=120, status=deferred (connect to
> >> visi.com.mail8.psmtp.com[64.18.5.10]: Connection timed out)
> >> 
> >> It occurred to me that I don't have a valid external DNS entry for homer and
> >> that might be the reason for the problem. I tried switching the computer's
> >> hostname to one of the several ones assigned to this system that do resolve.
> >> I changed /etc/hostname and the entry in /etc/postfix/main.cf, but as you
> >> can see from the log, postfix is still showing 'homer' as the hostname. I
> >> also restarted postfix and the networking system on this server. Logging in
> >> at the console shows the new hostname in the prompt.
> >> 
> >> Any suggestions? I'm not sure what the next step would be.

To the best of my knowledge, this is what you should do to rename your
host on Debian:

Run /bin/hostname as root to set the new hostname, just "homer", not
FQDN

/etc/hostname should be just the hostname "homer", not FQDN

/etc/hosts should list the IP of the box and FQDN and any aliases:

127.0.0.1	localhost
192.168.1.2	homer.yourdomain.com	homer

According to hostname(1):

       The  host  name  is  usually set once at system startup in
       /etc/rc.d/rc.inet1 or /etc/init.d/boot (normally by  read-
       ing  the  contents of a file which contains the host name,
       e.g.  /etc/hostname).

On my Debian stable/woody system, there is no /etc/init.d/boot but there
is /etc/init.d/hostname.sh which just reads /etc/hostname and sets the
hostname.
-- 
scot

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list