Old hostname in /etc/hosts and postfix won't go away

Discussion in 'Installation/Configuration' started by KenSentMe, Apr 12, 2007.

  1. KenSentMe

    KenSentMe New Member

    Hi there.

    I installed postfix on a Ubuntu Dapper install and use ISPConfig to manage things. I've configured my system and postfix with a hostname that isn't currently usable (e.g. the domain is currently set to another ip).

    I've edited main.cf and set myhostname to localhost. But everytime a mail comes in postfix tries to deliver it to [email protected].

    I've restarted postfix, but that didn't help. Any ideas?

    This is my /etc/postfix/main.cf: http://paste.ubuntu-nl.org/15267/

    And these are the messages i get in mail.log:

    Apr 12 22:26:58 localhost postfix/smtp[5282]: connect to ubuntu606m.worldofubuntu.com[]: Connection timed out (port 25)
    Apr 12 22:26:58 localhost postfix/smtp[5261]: A3EAB6E837F: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=1432, status=deferred (connect to ubuntu606m.worldofubuntu.com[]: Connection timed out)

    ubuntu606m.worldofubuntu.com is the address i used as a hostname in /etc/hosts and /etc/postfix/main.cf as myhostname. The address is currently not yet running in this server.

    What am i missing here?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What is in the file /etc/hostname?

    Please post the output of:

    hostname -f

Share This Page