| 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.
|  | | 
01-03-2006, 04:10 AM
| | OpenSource Builder & Moderator | |
Posts: 1,166
| | 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? | 
01-03-2006, 07:52 AM
| | Zimbra Employee | |
Posts: 2,103
| | 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... | 
04-03-2006, 03:39 AM
| | | 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). | 
04-03-2006, 03:28 PM
| | Zimbra Employee | |
Posts: 4,792
| | 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. | 
04-03-2006, 08:22 PM
| | | If I want Zimbra not to overwrite the config, I use "libexec/zmsetup.pl" ? | 
04-04-2006, 06:07 AM
| | | So the hostname change will be overwritten anyway after next zimbra restart, is this right? Any better solution? | 
04-04-2006, 11:41 AM
| | Zimbra Employee | |
Posts: 4,792
| | 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. | 
04-05-2006, 03:06 PM
| | OpenSource Builder & Moderator | |
Posts: 1,166
| | 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? | 
04-05-2006, 04:21 PM
| | Zimbra Employee | |
Posts: 4,792
| | 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. | 
04-06-2006, 05:10 AM
| | | 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? | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |