Berikut Langkah-langkahnya :
- Install Postfix MTA (Mail Transfer Agent)
- sudo apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules
- sudo apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules
- Install Dovecot
- sudo apt-get install dovecot-imapd dovecot-pop3d dovecot-common
- edit menjadi seperti :# specify protocols = imap imaps pop3 pop3sprotocols = pop3 imap
# uncomment this and change to no.
disable_plaintext_auth = no
pop3_uidl_format = %08Xu%08Xv
- Save lalu tutup gedit windows, konfigurasi ulang selesai.
- edit menjadi seperti :# specify protocols = imap imaps pop3 pop3sprotocols = pop3 imap
- sudo apt-get install dovecot-imapd dovecot-pop3d dovecot-common
- Konfigurasi SASL Authentication with TLS
- Edit /etc/postfix/main.cf
- sudo gedit /etc/postfix/main.cf
- Masukkan konfigurasi dibawah ini ke bagian akhir file /etc/postfix/main.cf yang tadi anda editsmtpd_sasl_auth_enable = yessmtpd_sasl_local_domain = yourdomain.comsmtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_security_options = noanonymous
- Save lalu tutup gedit windows.
- Jalankan command :
- sudo rm -r /var/run/saslauthd/
- sudo mkdir -p /var/spool/postfix/var/run/saslauthd
- sudo ln -s /var/spool/postfix/var/run/saslauthd /var/run
- sudo chgrp sasl /var/spool/postfix/var/run/saslauthd
- sudo adduser postfix sasl
- File /etc/dovecot/dovecot.conf harus anda konfigurasi lagi untuk menentukan dovecot daemon socket :
- sudo gedit /etc/dovecot/dovecot.conf
- masukkan informasi dibawah ini :auth default2 {mechanisms = plain loginpassdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
- }}
- Instalasi squirrel Mail
- sudo apt-get install apache2 libapache2-mod-php5 php5-cli php5-common php5-cgi squirrelmail
- Setelah semua selesai terinstall, edit file /etc/apache2/apache2.conf
- sudo gedit /etc/apache2/apache2.conf
- Masukkan informasi dibawah ini :
- Include /etc/squirrelmail/apache.conf
- Restart PC anda
- Cek hasil kerja anda tadi
- Buka Internet Browser anda, masukkan url :http://ip_anda/squirrelmail
- Jika konfigurasi anda benar, maka anda akan masuk kehalaman login squirrelmail, kemudian masukkan nama user dan password anda.
Wah infonya bagus sob, coba dulu ah sambil belajar.
ReplyDelete