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/main.cf
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = openmeet.smkn1kawali.sch.id
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, tkj.smkn1kawali.sch.id, openmeet, localhost.localdomain, localhost
relayhost = smtp.telkom.net:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/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
./conf.pl

pastikan servernya mengarah ke domain
pastikan imapnya dovecot

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

<VirtualHost *:80>
ServerName webmail.tkj.smkn1kawali.sch.id
DocumentRoot /usr/share/squirrelmail
</VirtualHost>

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

adduser anur

6. Test Kirim

# telnet webmail.tkj.smkn1kawali.sch.id 25
hostname
MAIL FROM:anoeri06@tkj.smkn1kawali.sch.id
RCPT TO:anur@smkn1kawali.sch.id
DATA
<Isi pesan>
.<ENTER>
quit
# telnet <mail.domain.com>110
Escape character is '^]'.
+OK Dovecot ready.
user anur
pass passwdanur
+OK Logged in.
list
+OK 1 messages:
1 517
.

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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