Professional Documents
Culture Documents
First of all, switch to the root user, just in case you not working as the root user.
:~# sudo -i
127.0.0.1 localhost
127.0.1.1 mail.idn-lts.com mail
43.252.74.170 mail.idn-lts.com mail
Install Dnsmasq
Next, we need to install Dnsmasq to create and manage a few DNS records required by Zimbra. We
also need to disable systemd-resolve in order to avoid conflict between dnsmasq and systemd-
resolve
root@mail:~# systemctl disable systemd-resolved
root@mail:~# systemctl stop systemd-resolved
After disabling, systemd-resolve you need to edit resolv.conf to include the Google DNS server. It’s
easy, but on some VPS this config file reset to the default value after reboot or upgrade. Therefore,
we are going to first unlink it, then include our content.
root@mail:~# ls -lh /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Jan 20 2021 /etc/resolv.conf ->
../run/systemd/resolve/stub-resolv.conf
Take the backup of the existing Dnsmasq config file and edit the file
root@mail:~# cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
root@mail:~# nano /etc/dnsmasq.conf
Insert the following content at the bottom and don’t forget to replace the IP address and domain
name
server= 43.252.74.170
domain=idn-lts.com
mx-host= idn-lts.com, mail.idn-lts.com, 5
mx-host= mail.idn-lts.com, mail.idn-lts.com, 5
listen-address=127.0.0.1
Now save the file. If you run the dig the command you should get the following output
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;mail.inguide.in. IN A
;; ANSWER SECTION:
mail.inguide.in. 1799 IN A 38.242.250.63
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;inguide.in. IN MX
;; ANSWER SECTION:
inguide.in. 1799 IN MX 10 mail.inguide.in.
Now, you need to download Zimbra OSE with the following command. You can always get the
latest file from Zimbra Website.
root@mail:~# wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-
8.8.15_GA_4179.UBUNTU20_64.20211118033954.tgz
You will be asked to agree to license and a few other questions to whom you have to answer as
follows
Do you agree with the terms of the software license agreement? [N] y
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/security/limits.conf...done.
Now on the next screen, it will ask you to set Master DNS IP address and Admin Password
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-dnscache: Enabled
******* +Master DNS IP address(es): UNSET
+Enable DNS lookups over TCP: yes
+Enable DNS lookups over UDP: yes
+Only allow TCP to communicate with Master DNS: no
6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@mail.inguide.in
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-
quarantine.c73xqgvr@mail.inguide.in
+Enable automated spam training: yes
+Spam training user:
spam.g1kkn_0g6l@mail.inguide.in
+Non-spam(Ham) training user:
ham.tzkyhmqk2a@mail.inguide.in
+SMTP host: mail.inguide.in
+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.inguide.in:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@mail.inguide.in
+Version update source email: admin@mail.inguide.in
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-spell: Enabled
9) zimbra-proxy: Enabled
10) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit5
Answer it as follows
1) Status: Enabled
** 2) Master DNS IP address(es): UNSET
3) Enable DNS lookups over TCP: yes
4) Enable DNS lookups over UDP: yes
5) Only allow TCP to communicate with Master DNS: no
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-dnscache: Enabled
6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@mail.inguide.in
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-
quarantine.3liys4nw@mail.inguide.in
+Enable automated spam training: yes
+Spam training user:
spam.cfzvesa2d5@mail.inguide.in
+Non-spam(Ham) training user: ham.ofijq5m5@mail.inguide.in
+SMTP host: mail.inguide.in
+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.inguide.in:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@mail.inguide.in
+Version update source email: admin@mail.inguide.in
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-spell: Enabled
9) zimbra-proxy: Enabled
10) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.inguide.in
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-
quarantine.3liys4nw@mail.inguide.in
6) Enable automated spam training: yes
7) Spam training user:
spam.cfzvesa2d5@mail.inguide.in
8) Non-spam(Ham) training user: ham.ofijq5m5@mail.inguide.in
9) SMTP host: mail.inguide.in
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.inguide.in:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: admin@mail.inguide.in
22) Version update source email: admin@mail.inguide.in
23) Install mailstore (service webapp): yes
24) Install UI (zimbra,zimbraAdmin webapps): yes
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.inguide.in
4) Admin Password set
5) Anti-virus quarantine user: virus-
quarantine.3liys4nw@mail.inguide.in
6) Enable automated spam training: yes
7) Spam training user:
spam.cfzvesa2d5@mail.inguide.in
8) Non-spam(Ham) training user: ham.ofijq5m5@mail.inguide.in
9) SMTP host: mail.inguide.in
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.inguide.in:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: admin@mail.inguide.in
22) Version update source email: admin@mail.inguide.in
23) Install mailstore (service webapp): yes
24) Install UI (zimbra,zimbraAdmin webapps): yes
Now you will be asked a few more questions.
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-dnscache: Enabled
6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
8) zimbra-spell: Enabled
9) zimbra-proxy: Enabled
10) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
At the end of the installation, you will be asked whether you would like to notify Zimbra. Answer
and your installation will be complete in a few more minutes.
Now, you can open access Zimbra from the browser. Go to https://mail.idn-lts.com:7071
and enter the user name admin and chosen password. You will receive SSL warning accept and
proceed.