Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2009, 07:01 PM
Senior Member
 
Posts: 67
Default Changing the hostname in v6.02

Hi!

I am having problems with finding a guide that works with NE 6.02 on Ubuntu 8.04 64bit.

I want to change the hostname so I can install my SSL cert.

Please help!
Reply With Quote
  #2 (permalink)  
Old 10-26-2009, 04:32 AM
Trained Alumni
 
Posts: 52
Default

Have you seen this?
ZmSetServerName - Zimbra :: Wiki
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #3 (permalink)  
Old 10-26-2009, 05:08 AM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by maxxer View Post
Thank you for the respons maxxer!

I have tried " /opt/zimbra/libexec/zmsetservername NEW_HOSTNAME" but it does not work. Maybe it is a command that used to work in NE v5.x?
Reply With Quote
  #4 (permalink)  
Old 10-26-2009, 05:10 AM
Trained Alumni
 
Posts: 52
Default

I can still find it in place in 6.0.2:
Code:
# find /opt/zimbra/ -iname zmsetservername
/opt/zimbra/libexec/zmsetservername
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #5 (permalink)  
Old 10-26-2009, 06:23 AM
Senior Member
 
Posts: 67
Default

What is the command after the path-to-file? Is it just the domain or the old domain name and the new?
Reply With Quote
  #6 (permalink)  
Old 10-26-2009, 07:20 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

Quote:
Originally Posted by nordviks View Post
What is the command after the path-to-file? Is it just the domain or the old domain name and the new?
You do not enter a domain name, you enter the FQDN (Fully Qualified Domain Name) for the server i.e. mail.yourdomain.com - details are in the wiki article mentioned above. You mentione that you're trying to change the hostname in your title and now you're talking about the domain name, which one are you trying to change and what are you trying to achieve?
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 10-27-2009, 01:26 AM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by phoenix View Post
You do not enter a domain name, you enter the FQDN (Fully Qualified Domain Name) for the server i.e. mail.yourdomain.com - details are in the wiki article mentioned above. You mentione that you're trying to change the hostname in your title and now you're talking about the domain name, which one are you trying to change and what are you trying to achieve?
I'm trying to change the hostname which I used to call the same as my domain name. I want to do this so I can import my SSL certificate.
Reply With Quote
  #8 (permalink)  
Old 10-27-2009, 01:36 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

Quote:
Originally Posted by nordviks View Post
I'm trying to change the hostname which I used to call the same as my domain name. I want to do this so I can import my SSL certificate.
OK, let's see if I understand you correctly.

You have a server whose FQDN (hostname) is mail.domain.com and when you installed Zimbra it named the domain as mail.domain.com - OK so far? What you're now trying to do is change the domain that was created at install from mail.domain.com to domain.com - still OK? If that's what you're trying to do then the correct command is to use zmprov to rename the domain.

Code:
zmprov -l rd domain.com newdomain.com
If I've misunderstood then feel free to tell me where I've gone wrong.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 10-27-2009, 02:14 AM
Senior Member
 
Posts: 67
Default

Quote:
Originally Posted by phoenix View Post
OK, let's see if I understand you correctly.

You have a server whose FQDN (hostname) is mail.domain.com and when you installed Zimbra it named the domain as mail.domain.com - OK so far? What you're now trying to do is change the domain that was created at install from mail.domain.com to domain.com - still OK? If that's what you're trying to do then the correct command is to use zmprov to rename the domain.

Code:
zmprov -l rd domain.com newdomain.com
If I've misunderstood then feel free to tell me where I've gone wrong.
Thanks for the help, phoenix!

I forgot to set the Server Host Name under install. I used the FQDN (maildomain.com) as my Host Name in my previous installs, so I typed in my maildomain.com to set my FQDN and maildomain.com as my Host Name.

I now have the FQDN maildomain.com but my server is called "1258.serveruniversum.com" This shows up as a value when I try to generate the CSR for my SSL Certificate. Thats the reason I want to change it.
Reply With Quote
  #10 (permalink)  
Old 10-27-2009, 02:19 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

OK, then you need to run the zmsetservername command you were given earlier. It's run as:

Code:
/opt/zimbra/libexec/zmsetservername 1258.serveruniversum.com
I'd also suggest you take a backup before making the change just in case there are any problems.
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0