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 Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-2006, 04:10 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default server hostname change

hi

i have a server running on an internally-addressed network (192.168.192.x) and split-horizon dns such that internally the workstations and servers think they live on a xxx-intranet.com domain which resolves fine locally but does not exist officially on the internet. this all works fine, and also from the outside works fine, but i have two issues i would like to resolve.

1) the postfix server considers itself 'hostname.xxx-intranet.com' and writes smtp headers as that, however because this fqdn doesn't exist on the internet, some remote servers with strict domain checking will reject the email. i would like to change postfix to consider itself 'anotherhostname.xxx.com'. normally i would hack main.cf but i suspect there's another way to do this in zimbra.

2) ditto for smtp/https certs, you get a domain name mismatch warning from the outside. how do you specify an fqdn to the cert setup?
Reply With Quote
  #2 (permalink)  
Old 01-03-2006, 07:52 AM
Zimbra Employee
 
Posts: 2,103
Default changing hostname

1 - postconf -e myhostname=real.host.name.com

2 - the cert creation scripts don't really support that, but you could hack it in the creates ssl.conf - read the scripts for more info...
Reply With Quote
  #3 (permalink)  
Old 04-03-2006, 03:39 AM
PNE PNE is offline
Loyal Member
 
Posts: 81
Default

Hello,

tryied it, but it does not work. After postconf -e .... the change is written to /opt/zimbra/postfix/conf/main.cf, but it does not work. After zmcontrol stop/start the change in Postfix's main.cf is rolled back. When I edit main.cf and add myhostname above #Zimbra changes section, it does not work either. After Zimbra restart the change is overwritten. Using 3.0.1 open source edition.

I would like to see this work. We have Zimbra server in internal network (m1.internal.company.com) and want it to Hello to outside like our registered internet MX (mail.company.com).
Reply With Quote
  #4 (permalink)  
Old 04-03-2006, 03:28 PM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by PNE
Hello,

tryied it, but it does not work. After postconf -e .... the change is written to /opt/zimbra/postfix/conf/main.cf, but it does not work. After zmcontrol stop/start the change in Postfix's main.cf is rolled back. When I edit main.cf and add myhostname above #Zimbra changes section, it does not work either. After Zimbra restart the change is overwritten. Using 3.0.1 open source edition.

I would like to see this work. We have Zimbra server in internal network (m1.internal.company.com) and want it to Hello to outside like our registered internet MX (mail.company.com).
After a postconf try "postfix reload" and not a zimbra restart. This should not rewrite the file but force a reload of the config.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 04-03-2006, 08:22 PM
Senior Member
 
Posts: 67
Default

If I want Zimbra not to overwrite the config, I use "libexec/zmsetup.pl" ?
Reply With Quote
  #6 (permalink)  
Old 04-04-2006, 06:07 AM
PNE PNE is offline
Loyal Member
 
Posts: 81
Default

So the hostname change will be overwritten anyway after next zimbra restart, is this right? Any better solution?
Reply With Quote
  #7 (permalink)  
Old 04-04-2006, 11:41 AM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by PNE
So the hostname change will be overwritten anyway after next zimbra restart, is this right? Any better solution?
Well setting the right hostname at install is one way. For us if you change it in the config it sticks. Not sure why this doesn't work for you.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #8 (permalink)  
Old 04-05-2006, 03:06 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

looks like a restart of zimbra rewrites the config (zmmtaconfig?) so the change doesn't stay. i tried doing 'zmlocalconfig -e zimbra_server_hostname=new.hostname.xxx' but that doesnt work because zimbra doesn't know anthing else about the new hostname.

i've setup split-horizon dns such that the outside fqdn is resolved correctly internally for the internal ip address. so i can change the zimbra hostname to a hostname that is correct both inside and outside, hurrah. how do i do this? rerun setup.pl?
Reply With Quote
  #9 (permalink)  
Old 04-05-2006, 04:21 PM
Zimbra Employee
 
Posts: 4,792
Default

Just realized that this thread(and Marc's response) was over 3mo old and we now ship a script:

libexec/zmsetservername

Not tested too much so take a backup but it should do the trick.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #10 (permalink)  
Old 04-06-2006, 05:10 AM
PNE PNE is offline
Loyal Member
 
Posts: 81
Default

Just tryied zmsetservername on test box. After the change Zimbra does not work, only ldap runs, everything else not. Just like is described at Mac Intel Support thread. I changed name back and Zimbra works now.

When the script should be run? What is supposed use of script and what conditions must be met?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.