Postfix: Using wrong host name

Discussion in 'Server Operation' started by roadster, Mar 21, 2009.

  1. roadster

    roadster New Member

    After over a year of trouble free operation I ran into a problem today.

    I needed to change the server name / host name of the machine and did this in the usual places - /etc/hostname, /etc/hosts, /home/admispconfig/ispconfig/lib/ and /root/ispconfig/httpd/conf/httpd.conf

    This change was also reflected in ISPConfig|Management|Server|Settings

    Now, Postfix still seems to be trying to use the old hostname. I added the new details in /etc/postfix/ (I didn't need them there for the old host name) and reloaded postfix (even did a server restart)

    postconf - d correctly lists the new host but postconf -n lists the old

    When mail comes in Postfix is trying to map messages to [email protected] instead of [email protected] and the Postfix banner still refers to the old host name.

    As Postfix was attempting to resolve the old host name (no longer listed in DNS) it was just delaying and queuing mail. I've had to do a temporary workaround of adding to /etc/local-host-names to keep mail flowing.

    I can't figure out where Postfix is pulling the old setting from and why changes made in aren't being processed.

    Any ideas guys?

    Many thanks in anticipation .....
  2. roadster

    roadster New Member


    As usual, within minutes of seeking help the solution appears. It looks as though there were two entries for myhostname in - the one I'd uncommented and changed that comes as part of the default file and one for my old hostname richt at the bottom which had been added when doing the Perfect Setup using the old hostname ... being the last to be read it was the one that got used. Duhhhh :eek:

Share This Page