Switching domains on a postfix/courier server

Discussion in 'Server Operation' started by elorc, Aug 16, 2010.

  1. elorc

    elorc New Member

    Since I'm going to have to do this soon, I just want to clarify. I've got my email server set up per the Ubuntu 8.04 virtual users guide using Postfix and Courier. Right now, I have it set up with a temporary/test domain. Soon, though, I'm going to be migrating a website currently on a shared hosting plan to this dedicated server. So if my testing hostname is srv1.mydomain.com and I want to change it to srv1.newdomain.com, it should just be a matter of changing:

    • The hostname and hosts files of the machine itself
    • Postfix's main.cf
    • The mail database's user and domain table entries

    That should be all, right? I figure this will be easier than reconfiguring the whole thing from scratch.
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, that should work.

Share This Page