how to change server name

Discussion in 'Installation/Configuration' started by lexcomputer, Oct 12, 2005.

  1. lexcomputer

    lexcomputer New Member

    Could anyone tell me how to change my server name

    I got the result after run telnet mail.mydomain.com 25

    220 server1.mydomain.com ESMTP Postfix

    Then I would like to change from server1.mydomain.com to ns.yourdomain.net. How can I make change?

    Thank you.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    echo ns.yourdomain.net > /etc/hostname
    /bin/hostname -F /etc/hostname
    Also change your hostname in /etc/postfix/main.cf (myhostname and mydomain). Don't forget to restart Postfix.
     

Share This Page