Jumat, 26 September 2014

Membangun Mail Server di CentOS 6 (Apache2, postfix, Dovecot)

PERSIAPAN AWAL
Update dahulu centos 6 pada VPS anda
yum update
INSTALLASI
Install aplikasi yang digunakan untuk membuat mailserver
yum install postfix dovecot
KONFIGURASI POSTFIX
Untuk konfigurasi postfix ada di directory /etc/postfix/main.cf. Yang perlu disesuaikan dengan server anda adalah
myhostname=mail.example.com
mydomain=example.com
Kemudian, hilangkan tanda # pada
myorigin=$hostname
inet_interfaces=all
KONFIGURASI DOVECOT
Untuk konfigurasi Dovecot di dalam directory /etc/dovecot/dovecot.conf
Perhatikan apakah dovecot sudah mendukung imap dan pop3.Jika belum ada maka tambahakan line
!include_try /usr/share/dovecot/protocols.d/*.protocol.
protocols = imap imaps pop3 pop3s
mail_location = maildir:~/Maildir
pop3_uidl_format = %08Xu%08Xv
Tambahkan script ini, jika mesin anda 64bit
login_process_size = 64mb