Mail Server

apt-get install postfix dovecot-common dovecot-imapd dovecot-pop3d squirrelmail

  1. Konfigurasi postfix

sudo dpkg-reconfigure postfix

atau dengan

nano /etc/postfix/
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname,, openmeet, localhost.localdomain, localhost
relayhost =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
home_mailbox = Maildir/

2. Konfigure Direktory IMAP

cd /etc/skel
maildirmake Maildir/

3. Konfigure Dovecot
nano /etc/dovecot/dovecot.conf

mail_location = maildir:~/Maildir

4. Konfigurasi Webmail
apt-get install squirrelmail
cd /etc/squirrelmail

pastikan servernya mengarah ke domain
pastikan imapnya dovecot

edit bagian virtualhost
nano /etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail

/etc/init.d/apache2 restart
5. Adduser
adduser anoeri06

adduser anur

6. Test Kirim

# telnet 25
<Isi pesan>
# telnet <>110
Escape character is '^]'.
+OK Dovecot ready.
user anur
pass passwdanur
+OK Logged in.
+OK 1 messages:
1 517



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s