Child pages
  • How to rename a computer

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Change the postfix configuration files

  • edit Change the hostname in /etc/mailnamereplace
  • Change the hostname do the same with in /etc/postfix/header_checks.It   If the file doesn't exist check the following JIRA issue: BLUE-689

...

Update /etc/postfix/generic and /etc/postfix/main.cf by (replacing <hostname> and <domain>):

  • postconf -e myhostname=<hostname>

  • postconf -e mydestination=<hostname>,localhost.<domain>,localhost

...

  • postconf -e 'smtp_header_checks = regexp:/etc/postfix/header_checks'

Restart postfix:

/etc/init.d/postfix reload

In case there is undelivered mail from the old hostname, if not required it can be deleted using  postsuper -d ALL

Debian

Reference: Debian WIKI page on changing hostname.

...