Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2009, 11:20
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,036
Thanks: 268
Thanked 152 Times in 132 Posts
Default Host/Domainname change in: The Perfect Server-Debian Lenny (Debian 5.0) [ISPConfig 2]

I've just done "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2]", and the server is now located in the DC

I made a misstake with the hostname / domain name, and now I want to change this remotely.
Example old: server1.example.com new: new.name.com
(problem is that I now have 2 servers with same hostname & domain name)

This is what I'm sure that I need to do (all done over SSH):
1)
edit /etc/hosts and change the
server1.example.com to new.name.com

2) do a
echo new.name.com > /etc/hostname
/etc/init.d/hostname.sh start
and verify if both are set the same with:
hostname
hostname -f

Now I'm stuck.
In the howto on page 4 step 12
How do I change the System mail name from server1.example.com to new.name.com, and how do I configure Postfix for the new TLS.
Do I just edit the needed data in: /etc/postfix/main.cf, delete the SSL certificates and re-create the SSL certificates?

Also.. Am I missing any other needed files that I need to change?
The setup is only a clean install of Lennt done the "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2]" way.

The system is not running ISPconfig at the moment, so I'm okay on this.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2009, 18:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by edge View Post
Do I just edit the needed data in: /etc/postfix/main.cf, delete the SSL certificates and re-create the SSL certificates?
Yes, that's right.

Quote:
Originally Posted by edge View Post
Also.. Am I missing any other needed files that I need to change?
You might as well have to change the hostnames in the mysql.user table.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
edge (23rd February 2009)
  #3  
Old 23rd February 2009, 19:17
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,036
Thanks: 268
Thanked 152 Times in 132 Posts
 
Default

I'll get back on this.
Maybe I will do a re-install (I need to go to the DC anyway)
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Desktop Debian Lenny: Configure Additional Repositories ensens HOWTO-Related Questions 1 21st February 2009 01:27
Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny) Hans Tips/Tricks/Mods 2 1st December 2008 23:40
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
Perfect Debian 3.1 failed of the E-MAIL Server explorer1979 HOWTO-Related Questions 1 21st October 2005 17:43


All times are GMT +2. The time now is 16:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.