Email merupakan sarana yang sangat penting dalam komunikasi dewasa ini. Dalam email kita perlu mail server untuk dapat mengirim dan menerima email. Kita memilih iRedMail karena mail server ini mudah instalasinya, open source dan ada versi gratisnya. Untuk menginstall iRedMail yang diperlukan hanyalah sebuah operating system saja. Pada artikel kali ini kita akan menginstall mail server pada Centos 6.5 mininal.
Langkah-langkah instalasi iRedMail adalah sebagai berikut:
- Silahkan instal Centos 6.5 Minimal dengan setting default termasuk hostnya isi dengan default yaitu localhost.localdomain
Saat instalasi, biarkan network cardnya mengikuti setting default. - Silahkan konfigurasi host dan networknya
Misal:
# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mail10.metrindo.com# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=44:87:FC:E0:E6:62
TYPE=Ethernet
UUID=2e70045d-6711-4808-8d76-d3f301a9b77a
ONBOOT=yes
NM_CONTROLLED=no
IPADDR=192.168.21.27
GATEWAY=192.168.21.1
#BOOTPROTO=dhcp# cat /etc/resolv.conf
nameserver 192.168.21.1# cat /etc/hosts
127.0.0.1 mail10.metrindo.com localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6# hostname -f
mail10.metrindo.com - Silahkan disable SELinux
# cat /etc/sysconfig/selinux# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
SELINUXTYPE=targeted - Silahkan download program yang ada di http://www.iredmail.org/download.html
- Silahkan extract
# ls
iRedMail-0.8.7.tar.bz2
# tar xjf iRedMail-0.8.7.tar.bz2
# ls
iRedMail-0.8.7 iRedMail-0.8.7.tar.bz2
# cd iRedMail-0.8.7
# ls
ChangeLog dialog functions patches README tools
conf Documentations iRedMail.sh pkgs samplesJika ada kesulitan dengan ekstak dia atas silahkan mencoba manual
#bzip2 -d iRedMail-0.8.7.tar.bz2
#tar -xf iRedMail-0.8.7.tar - Silahkan install
# bash iRedMail.shPastikan koneksi internet bagus, Jika gagal ulang lagi,
Kalau ada error Cannot retrieve metalink for repository: tmp_epel, coba lagi karena repo belum diupdate saat instalasi pertama.
Kalau ada error host atau mirror not found , silahkan coba lagi karena dns belum diupdate saat instalasi pertama.Tampilan akan seperti berikut ini
Langkah selanjutnya anda akan mensetting password administrator MySQL .
Langkah berikutnya anda akan diminta melakukan setting password postmaster* Start iRedMail Configurations
********************************************************************
< INFO > Create self-signed SSL certification files.
< INFO > Create required system accounts: vmail, iredapd, iredadmin.
< INFO > Configure Apache web server and PHP.
< INFO > Configure MySQL database server.
< INFO > Configure Postfix (Message Transfer Agent).
< INFO > Configure Cluebringer (postfix policy server).
< INFO > Configure Dovecot (pop3/imap/managesieve server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new (interface between MTA and content checkers).
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure iRedAdmin (official web-based admin panel).
< INFO > Configure Fail2ban (authentication failure monitor).
< INFO > Configure Awstats (logfile analyzer for mail and web server).
< INFO > Configure Roundcube webmail.
< INFO > Configure phpMyAdmin (web-based MySQL management tool).*************************************************************************
* iRedMail-0.8.7 installation and configuration complete.
*************************************************************************< INFO > Mail sensitive administration info to postmaster@metxxx.com.
< INFO > Disable SELinux in /etc/selinux/config.
< Question > Would you like to use firewall rules provided by iRedMail now?
< Question > File: /etc/sysconfig/iptables, with SSHD port: 22. [Y|n]y
< INFO > Copy firewall sample rules: /etc/sysconfig/iptables.
< Question > Restart firewall now (with SSHD port 22)? [y|N]y
< INFO > Restarting firewall …
< Question > Would you like to use MySQL configuration file shipped within iRedMail now?
< Question > File: /etc/my.cnf. [Y|n]y
< INFO > Copy MySQL sample file: /etc/my.cnf.
< INFO > Enable SSL support for MySQL server.
< INFO > Updating ClamAV database (freshclam), please wait …
ClamAV update process started at Thu Jun 12 10:38:02 2014
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
nonblock_connect: connect timing out (30 secs)
Can’t connect to port 80 of host db.id.clamav.net (IP: 198.27.87.211)
Trying host db.id.clamav.net (193.1.193.64)…
Downloading daily.cvd [ 53%]
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 241, sigs: 46, f-level: 63, builder: dgoddard)
Database updated (3411581 signatures) from db.id.clamav.net (IP: 193.1.193.64)
********************************************************************
* URLs of installed web applications:
*
* – Webmail: httpS://mail10.metrindo.com/mail/
* – Admin Panel (iRedAdmin): httpS://mail10.metrindo.com/iredadmin/
* + Username: postmaster@metxxxo.com, Password: xxxxxxx
*********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
* – xxxxxx/iRedMail-0.8.7/iRedMail.tips
*
* And it’s sent to your mail account .
*
* Please reboot your system to enable mail services.
*
******************************************************************** - Setelah instalasi selesai kita dapat masuk ke mail postmaster, di situ dijelaskan setting dari masing-masing aplikasi yang telah diiinstall
- Silahkan masuk ke Admin Panel iRedAdmin
- Artikel berikutnya adalah http://www.proweb.co.id/articles/support/konfigurasi_iredmail.html
- Informasi lebih lanjut silahkan mengunjungi
a. http://www.iredmail.org/install_iredmail_on_rhel.html
b. http://www.iredmail.org/doc.html .
Anda mungkin membutuhkan program untuk retrieve email dari IMAP/POP# server yang lain. Kita dapat menginstall fetchmail ( http://www.fetchmail.info/). Perintahnya:
#yum install fetchmail
Informasi lebih lanjut bisa dibaca di
1. https://docs.iredmail.org/install.iredmail.on.rhel.html
2. https://library.linode.com/email/fetchmail .
3. https://www.cyberciti.biz/faq/tar-extract-linux/
Kunjungi www.proweb.co.id untuk menambah wawasan anda.