Wednesday 8 April 2015

How To Configure and Validate DKIM Records on Zimbra Mail Server

DKIM is one of many tips for increase reputation of email server besides SPF records.  On this section, i will do generate DKIM on Zimbra and configure DKIM records on public DNS.
First, login to Zimbra server via SSH and generate DKIM
1.su - zimbra
2./opt/zimbra/libexec/zmdkimkeyutil -a -d imanudin.net -s selector
The result of above command is like below
generate-dkim-zimbra
For records key DKIM is line on () starting with “v=DKIM1…..until double quote (“). Block and copy the records and check on website : http://dkimcore.org/tools/. Paste on key record for checking and validate.
check-dkim-records
The above result still problem on double quote (“). Please remove all double quote (“) and check it again
check-dkim-records-after-remove-quote
The above picture is valid DKIM key record after remove double quote (“) on all records DKIM. Block (Ctrl+a) and copy (Ctrl+c) the valid DKIM records and insert in public DNS. In here, i am using cPanel for insert DKIM records
insert-dkim-records
result-insert-dkim-records
Please try to send email to Gmail and see the result
result-of-dkim-records
If you has been saw Signed by on Gmail, it’s mean you has been success to configure DKIM. If no, usually still waiting for propagation of DNS
In gamil  "Show Orginal" option will shows DKIM signed records pass.

Wednesday 1 April 2015

How to install Zimbra Mail server

Zimbra mail server is a Total automatic installed all mail server packages, no need to configure, its better then manual postfix configuration servers. 

Obtaining A Copy Of Zimbra

Next, we’ll need to visit the following URL to get a download link for the latest version of Zimbra. The version being used in this article is the 8.0.7 GA release. To find the latest version of the software, simply head over to the Zimbra website.
Once there, you’ll need to copy the link for the Red Hat and CentOS install file by right clicking and copying the link. Keep the link handy, you’ll need it next.
4
Now, we’ll need to download the file from the Zimbra website and store it on our Droplet. But first, we’ll need to create a folder to store it in.
mkdir zcsinstall
Next, enter that directory:
cd zcsinstall
And then fetch the file from the Zimbra website. You can use wget to achieve this. Obviously, you’ll need to place the URL you copied earlier into this command rather than using the link here.
wget http://files2.zimbra.com/downloads/8.0.7_GA/zcs-8.0.7_GA_6020.RHEL6_64.20140321160526.tgz
This will download the file from the Zimbra website, saving it into the zcsinstall folder we created.

Editing The Hosts File

Now we’ll need to edit the hosts file in CentOS to contain the IP address of the Droplet, the FQDN, and name of the server. We can do this by typing:
nano /etc/hosts
Once opened, the hosts file should look similar to the following:
5
You’ll need to edit the file to contain another row with your Droplet's IP address, FQDN and name. The line should look like the following:
123.123.123.123      mail.example.com     mail
You’ll need to ensure that you replace the above with the actual data values for your Droplet. You should also make sure that you use a tabbed space between each value. This means that you’ll have a host file looking something similar to:
6
Once done, press CTRL+O and then Enter to save. Then press CTRL+X to return.

Unpacking And Installing Zimbra

The next stage is to unpack the tgz file we downloaded earlier. To do this, we can execute the following command:
tar zxvf zcs-*.tgz
Next, change directory into the folder that the files were extracted into:
cd zcs-*
Finally, we can run the installer.
./install.sh --platform-override
Once the installer starts, you’ll need to accept the license agreements by pressing Y at each license prompt. When you reach the ‘select packages to install’ section, simply press enter at each of the options which will select the default value.
You may get the following error during installation:
7
This error is presented by Zimbra because it’s looking for an MX record for the domain ‘subdomain.example.com’. Instead, we want it to search for an MX record for ‘example.com’. This means that we should press Y`, and change the domain name to just ‘example.com’.
If you get a port conflict error, you may need to exit the installer and resolve the issue before continuing.
You’ll soon reach the configuration page, similar to that below. First we should choose option 3 to allow us to enter the zimbra-store section.
8
Address unconfigured (**) items (? – help)   3
Next, choose 3 again. This will allow us to configure the admin username and password.
Select, or 'r' for previous menu [r]  3

Create admin user: [admin@example.com] admin@example.com

Password for admin@example.com (min 6 characters): [_6ty6y8ui] password
Next, choose r to return to the previous menu.
Select, or 'r' for previous menu [r]  r
Then, choose 1 to go to the common configuration section.
*** CONFIGURATION COMPLETE - press 'a' to apply

Select from menu, or press 'a' to apply config (? - help)   1
After this, choose 6 to edit the time zone.
Select, or 'r' for previous menu [r]  6
Here, you should choose the number relative to the time zone you’re in. For example, you could type 83 to get the Europe/London time zone.
Enter the number for the local timezone: [39]  83
Then choose ‘r’ to return and ‘a’ to apply the configuration. You should also choose the log the installation to a file, in case any errors arise.
Select, or 'r' for previous menu [r] r
*** 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.7622] /root/zimbra-installation.txt
Saving config in /root/zimbra-installation.txt...done.
The system will be modified - continue? [No] yes
The system will then continue the installation. Setup of Zimbra should take about 20 minutes, depending on the Droplet size you selected.
Finally, you’ll be given the option of notifying Zimbra of the installation, which allows them to track the uptake of their products. You can either type ‘yes’ or ‘no’ here, either way, this is the final step of the installation. You can make sure that the installation was successful from the final confirmation message:
Configuration complete – press return to exit
It is recommended that you reboot your Droplet.

Accessing The Zimbra Admin Control Panel

The control panel can be easily accessed by visiting the following URL:
https://mail.example.com:7071/zimbraAdmin