Documentasi Mail Ops
Documentasi Mail Ops
Documentasi Mail Ops
2
Documentation
3
Edit file zona
vi named.conf.default-zones
zone "cls-indo.com" {
type master;
file "/etc/bind/cls-indo-forward";
allow-update { none; };
};
zone "239.166.188.in-addr.arpa" {
type master;
file "/etc/bind/cls-indo-reverse";
allow-update { none; };
};
4
Then edit the reverse file to be like this
vi cls-indo-reverse
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA cls-indo.com. root.cls-indo.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS cls-indo.com.
101 IN PTR smtp.cls-indo.com.
Then edit the resolv.conf file to force it to use the domain that was created
vi /etc/resolv.conf
search cls-indo.com
nameserver 188.166.239.101
nameserver 8.8.8.8
Installation Zimbra
Edit hostname
hostnamectl set-hostname smtp.cls-indo.com
su –
The next step in Installing Zimbra Ubuntu is downloading Zimbra Collaboration, to download
Zimbra you can link https://www.zimbra.com/downloads/
wget \
https://files.zimbra.com/downloads/8.8.15_GA/zcs-
8.8.15_GA_4179.UBUNTU20_64.20211118033954.tgz
5
Run the installer script. When Zimbra gives a notification of the Software License agreement,
select “Y” and do the same on Zimbra’s package repository Installation.
./install.sh --platform-override
And run ./Install.sh again. In the packages installation, select “Y” for each package
./install.sh --platform-override
installed packages
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy
zimbra-drive
zimbra-imapd
6
Access Zimbra Dashboard Admin
https://smtp.cls-indo.com:7071
*Note: renew the ssl certificate every 90 days, this is how to renew the ssl certificate
certbot renew
7
Copy the SSL private key to the Zimbra SSL folder
cp \
/etc/letsencrypt/live/smtp.cls-indo.com/privkey.pem \
/opt/zimbra/ssl/zimbra/commercial/commercial.key
Restart Zimbra
zmcontrol restart
8
Access Zimbra in a web browser
Change directory
cd /etc/shorewall/
Open the rules file, accept ports that are allowed in and out
vim rules
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
ACCEPT net fw tcp 22
ACCEPT net fw tcp 25
ACCEPT net fw tcp 80
ACCEPT net fw tcp 443
ACCEPT net fw tcp 143
9
ACCEPT net fw tcp 993
ACCEPT net fw tcp 995
ACCEPT net fw tcp 465
ACCEPT net fw tcp 587
ACCEPT net fw tcp 953
ACCEPT net fw tcp 7071
ACCEPT net fw tcp 8443
Restart shorewall
systemctl restart shorewall
10
Create Account on Zimbra (Via Webmail)
Login to Zimbra Admin https://smtp.cls-indo.com:7071
Click Manage
11
Click the Settings Button at the top right, then click New
12
Enter the email password, then click Next
13
Create Admin Account on Zimbra (Via Webmail)
Login to Zimbra Admin https://smtp.cls-indo.com:7071
Click Manage
14
Click the Settings Button at the top right, then click New
15
Check Global Administrator, then click Next
16
Create a Contact Group in Zimbra
Login to webmail Zimbra https://smtp.cls-indo.com/
Click Contacts, then click the down arrow. Then click Contact Group
17
Enter the name of the contact group and enter the name of the contact that will be a contact
group. When finished, click save
Setting Timezone
See timezone list
timedatectl list-timezones
Change the account quota using the following command (example: 1GB)
zmprov ma user@cls-indo.com zimbraMailQuota 1073741824
Information :
In CLI the unit is bytes
1 GB = 1024 MB = 1048576 KB = 1073741824 Byte
2 GB = 2147483648 Byte
18
3 GB = 3221225472 Byte
4 GB = 4294967296 Byte
5 GB = 5368709120 Byte
6 GB = 6442450944 Byte
7 GB = 7516192768 Byte
8 GB = 8589934592 Byte
9 GB = 9663676416 Byte
10 GB = 10737418240 Byte
To check whether the settings have been set or not, use the following command:
zmprov ga user@cls-indo.com | grep zimbraMailQuota
19
Right Click on user@cls-indo.com, Select Edit
Select Advanced, then enter Mailbox Size in Account quota (MB): (in MB). When finished,
click Save in the upper right corner
Information :
Account quota (MB): 0 -> Unlimited
1 GB = 1024 MB
2 GB = 2048 MB
3 GB = 3072 MB
4 GB = 4096 MB
20
5 GB = 5120 MB
6 GB = 6144 MB
7 GB = 7168 MB
8 GB = 8192 MB
9 GB = 9216 MB
10 GB = 10240 MB
Klik Save Pada pojok kanan atas
Working in Briefcase
Creating Briefcase folders
Click the Briefcase tab.
21
Right-click Briefcase, select New Folder
Type a name for the new Briefcase folder. Then click OK. The new briefcase displays in the
Overview pane.
This name must be unique within the hierarchy of your mailbox folders. Briefcase folders
cannot have the same name as any top-level folder in your Zimbra mail, calendar, or address
book. For example, if you have a calendar named Holidays, you cannot name a top-level
Briefcase Holidays. Holidays could be a name of a briefcase within another briefcase.
Select the folder hierarchy. You can create a new top-level briefcase, or you can place it under
an existing briefcase.
22
Uploading Files
Uploading a file transfers a file from your personal computer to your email account. This
makes the file available any time you log in to your account. Your account quota determines
how many files can be uploaded to your Briefcase.
Open Briefcase and on the toolbar click Upload File.
In the Upload New File to Briefcase dialog click Choose Files to find the files to upload. You
can select multiple files to upload at once if the files are in the same directory. To add other
files, click Add and browse to the file.
23
When you upload a file with the same name as an existing file, an Information dialog displays
a warning. If you click No, the file is not uploaded. When all files are uploaded, click OK. The
files are displayed in the briefcase.
24
Select the desired share with and roles, then click OK
25
See The Postfix Queues [Mail Queue]
First Way [CLI]
As zimbra using sudo - show a summary of queue count - ~/libexec/zmqstat:
sudo ~/libexec/zmqstat
deferred=3
incoming=0
active=0
hold=0
corrupt=0
As zimbra - /opt/zimbra/postfix/sbin/postqueue -p
/opt/zimbra/common/sbin/postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
992C64BB81C 42244 Wed May 25 08:28:01 warehouse@cls-indo.com
(host mx6.telkomsel.co.id[202.3.219.124] said: 450 Service temporarily
unavailable; Client Host [188.166.239.101] blocked using Trend Micro Email
Reputation Service. Please see http://www.mail-abuse.com/cgi-
bin/lookup?ip_address=188.166.239.101 (in reply to RCPT TO command))
BillCo_jabotabek@telkomsel.co.id
CES@telkomsel.co.id
(lost connection with mx6.telkomsel.co.id[202.3.219.124] while sending RCPT
TO)
gabriella_m_h@telkomsel.co.id
. . .
-- 1079 Kbytes in 3 Requests.
As zimbra - mailq
mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
992C64BB81C 42244 Wed May 25 08:28:01 warehouse@cls-indo.com
(host mx6.telkomsel.co.id[202.3.219.124] said: 450 Service temporarily
unavailable; Client Host [188.166.239.101] blocked using Trend Micro Email
Reputation Service. Please see http://www.mail-abuse.com/cgi-
bin/lookup?ip_address=188.166.239.101 (in reply to RCPT TO command))
BillCo_jabotabek@telkomsel.co.id
CES@telkomsel.co.id
(lost connection with mx6.telkomsel.co.id[202.3.219.124] while sending RCPT
TO)
gabriella_m_h@telkomsel.co.id
. . .
-- 1079 Kbytes in 3 Requests.
26
Second Way (Via Zimbra Admin)
Click Monitor
Antivirus Zimbra
ClamAV is powerful antivirus software that can scan your email and your server for malicious
files. It works like an antivirus program on your computer, but ClamAV scans your server.
Specifically, ClamAV looks for malicious email attachments and malicious server files.
27
Basic features of ClamAV:
1. ClamAV is designed to scan files quickly.
2. Real time protection (Linux only). The ClamOnAcc client for the ClamD scanning
daemon provides on-access scanning on modern versions of Linux. This includes an
optional capability to block file access until a file has been scanned (on-access
prevention).
3. ClamAV detects millions of viruses, worms, trojans, and other malware, including
Microsoft Office macro viruses, mobile malware, and other threats.
4. ClamAV’s bytecode signature runtime, powered by either LLVM or our custom
bytecode interpreter, allows the ClamAV signature writers to create and distribute
very complex detection routines and remotely enhance the scanner’s functionality.
5. Signed signature databases ensure that ClamAV will only execute trusted signature
definitions.
6. ClamAV scans within archives and compressed files but also protects against archive
bombs
To enable antivirus service in Zimbra:
zmprov -l ms smtp.cls-indo.com -zimbraServiceEnabled antivirus
28
MailOps Flow
29