option 3 from /opt/zimbra/libexec/zmsetup.pl
Code:
Main menu
1) Hostname: hostname.example.com
2) Ldap master host: hostname.example.com
3) Ldap port: 389
4) Ldap password: set
5) zimbra-ldap: Enabled
6) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@hostname.example.com
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam@hostname.example.com
+Non-spam(Ham) training user: ham@hostname.example.com
+SMTP host: hostname.example.com
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+Enable POP/IMAP proxy: no
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://hostname.example.com:7780/aspell.php
7) zimbra-mta: Enabled
8) zimbra-snmp: Enabled
9) zimbra-logger: Enabled
10) zimbra-spell: Enabled
11) Enable default backup schedule: yes
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit Or via zmlocalconfig
ldap_master_url = ldap://hostname.example.com:389
ldap_port = 389
ldap_url = ldap://hostname.example.com:389