La suite di collaborazione Zimbra ha due versioni:edizione di rete e edizione open source. In questo tutorial esploreremo il modo più rapido e semplice per installare il server di posta zimbra (edizione gratuita) insieme ad altri componenti come LDAP, antivirus, antispam, Amavis (amavisd-new) - Controllo contenuti, Aspell - Controllo ortografico, MySQL e altre funzionalità di collaborazione e un client webmail ajax. Zimbra consiglia di disabilitare il firewall nel processo di installazione, una volta completata l'installazione, abilitare il firewall e aggiungere le regole del firewall per consentire il traffico al server di posta zimbra. Si consiglia inoltre di installare ZCS in un nuovo sistema.
Requisiti di sistema
Ubuntu 16.04 con almeno 4 GB di RAM
IP del server Ubuntu - 172.31.26.109
FQDN del server Ubuntu - mail.zimbra-demo.com
Server DNS IP-172.31.26.109 (stesso server, è consigliabile tenerlo in un server separato nella propria rete)
IP gateway - 172.31.0.2
Nome di dominio - zimbra-demo.com
1. Configura nome host
Modifica /etc/hosts e aggiungi la riga 172.31.26.109 mail.zimbra-demo.com mail. Modifica 172.31.26.109 con l'IP che desideri utilizzare.
root@mail:~# cat /etc/hosts
127.0.0.1 localhost
172.31.26.109 mail.zimbra-demo.com mail
Modifica anche /etc/hostname e la riga 'mail'
root@mail:~# cat /etc/hostname
mail
Riavvia il sistema e verifica l'FQDN del tuo server con il comando hostname -f e hostname.
root@mail:~# hostname -f
mail.zimbra-demo.com
root@mail:~# hostname
mail
Se stai utilizzando un servizio di hosting basato su cloud, assicurati di aver impostato il valore del parametro preserve_hostname su true.
2. Installa / Configura BIND DNS
Installeremo il server dei nomi BIND nello stesso sistema in cui verrà installato ZCS. Sei libero di installare il server dei nomi BIND in un altro sistema nella tua rete interna.
Installa bind9 eseguendo il seguente comando nel terminale.
# sudo apt-get install bind9 bind9utils
Ora modifica il file /etc/bind/named.conf e rimuovi '//' dagli inoltri e aggiungi l'indirizzo IP del server DNS come di seguito.
forwarders {
8.8.8.8; 8.8.4.4;
};
root@mail:~# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
forwarders {
8.8.8.8; 8.8.4.4;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
Modifica /etc/bind/named.conf.local e aggiungi quanto segue.
zone "zimbra-demo.com" {
type master;
file "/etc/bind/db.zimbra-demo.com";
};
zone "1.31.172.in-addr.arpa" {
type master;
file "/etc/bind/db.1.31.172";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/etc/bind/db.0.0.127";
};
Crea e modifica il file /etc/bind/db.zimbra-demo.com e aggiungi quanto segue. Cambia il nome del file in base al tuo nome di dominio.
$TTL 604800
@ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. (
030512 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ); Negative Cache TTL
;
@ IN NS mail
IN MX 10 mail
IN A 172.31.26.109
mail IN A 172.31.26.109
Crea e modifica il file /etc/bind/db.0.0.127 e aggiungi quanto segue.
$TTL 3D
@ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. (
2 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS mail.zimbra-demo.com.
1 PTR localhost.
Crea e modifica il file /etc/bind/db.1.31.172 e aggiungi quanto segue.
$TTL 3D
@ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS zimbra-demo.com.
10 PTR zimbra-demo.com.
Riavvia il servizio di associazione
# /etc/init.d/bind9 restart
Per configurare l'IP statico, Modifica /etc/network/interfaces e aggiungi quanto segue. Modifica i valori in base alla tua configurazione di rete.
source /etc/network/interfaces.d/*.cfg
auto eth0
iface eth0 inet static
address 172.31.26.109
netmask 255.255.255.0
network 172.31.0.0
broadcast 172.31.0.255
gateway 172.31.0.2
dns-search zimbra-demo.com
dns-nameservers 172.31.26.109
Modifica anche il file /etc/resolv.conf e aggiungi quanto segue.
nameserver 172.31.26.109
search zimbra-demo.com
Ora testa il record DNS dei server dei nomi con dig
root@mail:~# dig zimbra-demo.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> zimbra-demo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33646
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;zimbra-demo.com. IN A
;; ANSWER SECTION:
zimbra-demo.com. 604800 IN A 172.31.26.109
;; AUTHORITY SECTION:
zimbra-demo.com. 604800 IN NS mail.zimbra-demo.com.
;; ADDITIONAL SECTION:
mail.zimbra-demo.com. 604800 IN A 172.31.26.109
;; Query time: 1 msec
;; SERVER: 172.31.26.109#53(172.31.26.109)
;; WHEN: Thu Aug 04 04:30:43 UTC 2016
;; MSG SIZE rcvd: 95
root@mail:~# dig facebook.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22708
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;facebook.com. IN A
;; ANSWER SECTION:
facebook.com. 27 IN A 173.252.89.132
;; AUTHORITY SECTION:
. 2574 IN NS g.root-servers.net.
. 2574 IN NS e.root-servers.net.
. 2574 IN NS a.root-servers.net.
. 2574 IN NS m.root-servers.net.
. 2574 IN NS i.root-servers.net.
. 2574 IN NS h.root-servers.net.
. 2574 IN NS d.root-servers.net.
. 2574 IN NS c.root-servers.net.
. 2574 IN NS b.root-servers.net.
. 2574 IN NS k.root-servers.net.
. 2574 IN NS f.root-servers.net.
. 2574 IN NS l.root-servers.net.
. 2574 IN NS j.root-servers.net.
;; Query time: 11 msec
;; SERVER: 172.31.26.109#53(172.31.26.109)
;; WHEN: Thu Aug 04 04:32:04 UTC 2016
;; MSG SIZE rcvd: 268
Fino a questo punto, abbiamo configurato FQDN del server e un nameserver.
3. Scarica/Installa Zimbra
Per prima cosa disabilita il firewall eseguendo il seguente comando nel terminale..
# sudo service ufw disable
OR
# sudo service iptables stop
Scarica zimbra usando wget, estrailo ed esegui il programma di installazione all'interno della directory estratta.
# cd ~
# wget https://files.zimbra.com/downloads/8.7.0_GA/zcs-8.7.0_GA_1659.UBUNTU16_64.20160628202554.tgz
# tar xf zcs-8.7.0_GA_1659.UBUNTU16_64.20160628202554.tgz
# cd zcs-8.7.0_GA_1659.UBUNTU16_64.20160628202554/
# ./install.sh
Ora inizierà l'installazione. Leggi attentamente e rispondi Sì/No o altri valori in base alla tua configurazione.
WARNING: ZCS is currently only supported on Ubuntu Server 12.04 and 14.04 LTS. You are attempting to install on Ubuntu 16.04.1 LTS which may not work. Support will not be provided if you choose to continue.
Do you wish to continue? [N] y
Operations logged to /tmp/install.log.4P2y60cn
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-dnscache...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-memcached...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-core...NOT FOUND
----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------
Do you agree with the terms of the software license agreement? [N] y
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
Use Zimbra's package repository [Y] y
Configuring package repository
Select the packages to install
Install zimbra-ldap [Y] y
Install zimbra-logger [Y] y
Install zimbra-mta [Y] y
Install zimbra-dnscache [Y] n
Install zimbra-snmp [Y] y
Install zimbra-store [Y] y
Install zimbra-apache [Y] y
Install zimbra-spell [Y] y
Install zimbra-memcached [Y] y
Install zimbra-proxy [Y] y
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy
The system will be modified. Continue? [N] y
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Server.
Installing packages
Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy selected for installation
Monitor /tmp/install.log.4P2y60cn for package installation progress
Remote package installation started
Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components....
Local package installation started
Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy...
done
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1514, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1557, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1686, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1727, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1736, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1745, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1754, <DATA> line 755.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE zimbra_home}/ at /opt/zimbra/libexec/zmupgrade.pm line 1763, <DATA> line 755.
Operations logged to /tmp/zmsetup.20160804-170455.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for mail.zimbra-demo.com
It is suggested that the domain name have an MX record configured in DNS
Re-Enter domain name? [Yes] yes
Create domain: [mail.zimbra-demo.com] zimbra-demo.com
MX: mail.zimbra-demo.com (172.31.26.109)
Interface: 172.31.26.109
Interface: 127.0.0.1
Interface: ::1
done.
Checking for port conflicts
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: [email protected]
******* +Admin Password UNSET
+Anti-virus quarantine user: [email protected]
+Enable automated spam training: yes
+Spam training user: [email protected]
+Non-spam(Ham) training user: [email protected]
+SMTP host: mail.zimbra-demo.com
+Web server HTTP port: 8080
+Web server HTTPS port: 8443
+Web server mode: https
+IMAP server port: 7143
+IMAP server SSL port: 7993
+POP server port: 7110
+POP server SSL port: 7995
+Use spell check server: yes
+Spell server URL: http://mail.zimbra-demo.com:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: [email protected]
+Version update source email: [email protected]
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
7) zimbra-spell: Enabled
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
Address unconfigured (**) items (? - help) 6
Ora devi configurare gli elementi contrassegnati da un paio di stelle (****) davanti a loro. Come puoi vedere nell'output sopra, l'elemento "password amministratore" non è configurato. Questo elemento si trova nel modulo Zimbra Store, che è il numero 6. Per impostare la password amministratore, inserisci il numero 6.
Configurazione del negozio
1) Stato:Abilitato
2) Crea utente amministratore:sì
3) Utente amministratore da creare:[email protected]
** 4) Password amministratore DISIMPOSTATA
5) Utente della quarantena antivirus:[email protected]
6) Abilita formazione antispam automatizzata:sì
7) Utente di formazione sullo spam:[email protected]
8) Utente di formazione non spam (Ham):[email protected]
9) Host SMTP:mail.zimbra-demo.com
10) Porta HTTP del server Web:8080
11) Porta HTTPS del server Web:8443
12) Modalità server web:https
13) Porta del server IMAP:7143
14) Porta SSL del server IMAP:7993
15) Porta del server POP:7110
16) Porta SSL del server POP:7995
17) Usa il server di controllo ortografico:sì
18) URL del server di spelling:http://mail.zimbra-demo.com:7780/aspell.php
19) Abilita i controlli di aggiornamento della versione:VERO
20) Abilita le notifiche di aggiornamento della versione:VERO
21) Email di notifica dell'aggiornamento della versione:[email protected]
22) Email fonte aggiornamento versione:[email protected]
23) Installa mailstore (servizio webapp):si
24) Installa l'interfaccia utente (zimbra, zimbraAdmin webapps):sì
Seleziona o 'r' per il menu precedente [r] 4
Ora imposta la password per l'utente amministratore.
Password for [email protected] (min 6 characters): [gbjep4Py1] zimbra.123
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: [email protected]
4) Admin Password set
5) Anti-virus quarantine user: [email protected]
6) Enable automated spam training: yes
7) Spam training user: [email protected]
8) Non-spam(Ham) training user: [email protected]
9) SMTP host: mail.zimbra-demo.com
10) Web server HTTP port: 8080
11) Web server HTTPS port: 8443
12) Web server mode: https
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://mail.zimbra-demo.com:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: [email protected]
22) Version update source email: [email protected]
23) Install mailstore (service webapp): yes
24) Install UI (zimbra,zimbraAdmin webapps): yes
Select, or 'r' for previous menu [r] r
Ora, inserisci 'r' per tornare al menu precedente.
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-store: Enabled
7) zimbra-spell: Enabled
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
La configurazione è ora completa. Premi "a" per applicare e digita "sì" per completare la configurazione.
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.31029]
Saving config in /opt/zimbra/config.31029...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.20160804-170455.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher password...done.
Creating server entry for mail.zimbra-demo.com...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap...done.
Saving SSL Certificate in ldap...done.
Setting spell check URL...done.
Setting service ports on mail.zimbra-demo.com...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Checking current setting of zimbraReverseProxyAvailableLookupTargets
Querying LDAP for other mailstores
Searching LDAP for reverseProxyLookupTargets...done.
Adding mail.zimbra-demo.com to zimbraReverseProxyAvailableLookupTargets
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.zimbra-demo.com...done.
Adding mail.zimbra-demo.com to zimbraMailHostPool in default COS...done.
Creating domain zimbra-demo.com...done.
Setting default domain name...done.
Creating domain zimbra-demo.com...already exists.
Creating admin account [email protected].
Creating root alias...done.
Creating postmaster alias...done.
Creating user [email protected].
Creating user [email protected].
Creating user [email protected].
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.zimbra-demo.com...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
com_zimbra_mailarchive...done.
com_zimbra_srchhighlighter...done.
com_zimbra_viewmail...done.
com_zimbra_attachmail...done.
com_zimbra_url...done.
com_zimbra_ymemoticons...done.
com_zimbra_cert_manager...done.
com_zimbra_proxy_config...
com_zimbra_url...done.
com_zimbra_ymemoticons...done.
com_zimbra_cert_manager...done.
com_zimbra_proxy_config...done.
com_zimbra_adminversioncheck...done.
com_zimbra_tooltip...done.
com_zimbra_date...done.
com_zimbra_webex...done.
com_zimbra_email...done.
com_zimbra_bulkprovision...done.
com_zimbra_attachcontacts...done.
com_zimbra_phone...done.
com_zimbra_clientuploader...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
The VERSION of zcs installed (8.7.0_GA_1659_UBUNTU16_64)
The ADMIN EMAIL ADDRESS created ([email protected])
Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.7.0_GA_1659_UBUNTU16_64&[email protected]
Notification complete
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.20160804-154559.log to /opt/zimbra/log
Configuration complete - press return to exit
L'installazione di Zimbra è ora completa. Accedi alla Console di amministrazione utilizzando il tuo browser web preferito all'indirizzo https://mail.zimbra-demo.com:7071
Fai clic su "Accedi", verrai reindirizzato alla dashboard dell'amministratore di Zimbra.
Accedi alla console web utilizzando il tuo browser web preferito su https://mail.zimbra-demo.com:7071
Fai clic su "Accedi", sarai all'interno della casella di posta dell'amministratore.
Potresti ricevere il seguente errore durante il tentativo di accedere agli URL sopra indicati.
Problem accessing ZCS upstream server. Reason: Cannot connect to the ZCS upstream server. Connection timeout.
Possible reasons:
upstream server is blocked by a firewall
upstream server is failing to send back the response in time
upstream server is down
Please contact your ZCS administrator to fix the problem.
Powered by Nginx-Zimbra://
L'accesso all'URL utilizzando curl provoca lo stesso errore di timeout del gateway 504
zimbra@mail:/root$ curl -I -k https://mail.zimbra-demo.com
HTTP/1.1 504 Gateway Time-out
Server: nginx
Date: Fri, 05 Aug 2016 01:45:12 GMT
Content-Type: text/html
Content-Length: 1193
Connection: keep-alive
ETag: "5760599a-4a9"
Ciò è dovuto al fatto che il server upstream impiega più tempo del valore di timeout configurato e, di conseguenza, il client ha chiuso la connessione upstream. Modificare i valori di timeout su un valore più alto. Esegui i due comandi seguenti per ignorare gli errori che si disconnettono dai server delle cassette postali e anche per riconnetterti immediatamente a tutti i server delle cassette postali in caso di errore.
root@mail:~$ su zimbra
zimbra@mail:~$ cd /opt/zimbra/bin
zimbra@mail:~/bin$ ./zmprov mcf zimbraMailProxyReconnectTimeout 0
zimbra@mail:~/bin$ ./zmprov mcf zimbraMailProxyMaxFails 0
Riavvia i proxy per rigenerare i file di configurazione di nginx con i valori aggiornati per 'fail_timeout' e 'max_fails'.
zimbra@mail:~/bin$ zmproxyctl restart
Arresto del proxy... fatto.
Avvio del proxy...fatto.
Prova ad accedere all'URL della posta utilizzando CURL.
zimbra@mail:~/bin$ curl -I -k https://mail.zimbra-demo.com
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 05 Aug 2016 02:17:16 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 0
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Expires: -1
Cache-Control: no-store, no-cache, must-revalidate, max-age=0
Pragma: no-cache
Content-Language: en-US
Set-Cookie: ZM_TEST=true;Secure
Vary: User-Agent
X-UA-Compatible: IE=edge
Ora sarai in grado di connetterti al server di posta .
4. Configura firewall
ZCS utilizza molti porti per offrire i suoi servizi. Sta a te decidere quali servizi desideri limitare dal pubblico dominio o quali sono offerti al pubblico. Un elenco completo del numero di porta utilizzato da ZCS può essere trovato qui https://wiki.zimbra.com/wiki/Ports Supponiamo che tu voglia accedere alla console di amministrazione di zimbra dall'esterno della tua rete, ad esempio dal dominio pubblico, quindi aggiungerai il seguenti regole a seconda del firewall in uso.
# sudo ufw allow 7071/tcp
OR
# sudo iptables -A INPUT -m state --state NEW -p tcp --dport 7071 -j ACCEPT
Per impostazione predefinita, vuoi aprire le seguenti porte per l'accesso pubblico.
25 80 110 143 443 465 587 993 995 3443 9071
Ora avvia il firewall.
# service ufw enable
OR
# service iptables start
5. Comandi Zimbra
Puoi controllare il server zimbra usando il comando zmcontrol per avviare/arrestare il server zimbra.
Arresta il server usando il seguente comando.
zimbra@mail:~$ zmcontrol stop
Host mail.zimbra-demo.com
Stopping zmconfigd...Done.
Stopping zimlet webapp...Done.
Stopping zimbraAdmin webapp...Done.
Stopping zimbra webapp...Done.
Stopping service webapp...Done.
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping cbpolicyd...Done.
Stopping archiving...Done.
Stopping opendkim...Done.
Stopping amavis...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping proxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping dnscache...Done.
Stopping ldap...Done.
Avvia il server usando il seguente comando.
root@mail:~# su zimbra
zimbra@mail:/root$ zmcontrol start
Host mail.zimbra-demo.com
Starting ldap...Done.
Starting zmconfigd...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting memcached...Done.
Starting proxy...Done.
Starting amavis...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting opendkim...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.
Starting service webapp...Done.
Starting zimbra webapp...Done.
Starting zimbraAdmin webapp...Done.
Starting zimlet webapp...Done.
Trova lo stato del server zimbra.
zimbra@mail:/root$ zmcontrol status
Host mail.zimbra-demo.com
amavis Running
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
snmp Stopped
zmswatch is not running.
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running
zmbackup – Takes full backups and incremental backups of mail host.
zmclamdctl – Start, stop and find the status of Clam AV.
zmlocalconfig – To set or get the local configuration of a Zimbra server for tuning zimbra.
zmloggerctl – Start, stop, reload and find the status of the Zimbra logger service.
Conclusione
Although zimbra comes with lot of features, it consumes a lot of server resources. So it is advisable to install it in a server that matches the basic requirements like at least 4GB RAM, 2GHz. processor speed etc. The advantages of using zimbra are many - zimbra is open source, it has powerful admin tool, reliable message threading, BES support, extends zimbras's functionality with zimlets, spam protection, virus protection and above all you are retaining the data. So whatever is the requirement for mail server in a business environment, zimbra is likely to deliver efficiently.