Wednesday, September 29, 2010

Konfigurasi Mail Server di Debian 4.0

1. Install Postfix. Dgn perintah :
# apt-get install postfix

Kemudian edit & konfigurasi postfix seperti di bawah ini. Dgn perintah :

# nano /etc/postfix/main.cf


myhostname = mail.abdiano.com -> isi sesuai mail.domain anda
mydomain = abdiano.com -> isi sesuai domain anda
myorigin = /etc/mailname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost, localhost.$mydomain, localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168.1.0/24
# mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocol = all
home_mailbox = Maildir/


2. Instal apache2 , php5 dan courier. Dgn cara :
# apt-get install apache2 php5 courier-imap courier-pop

Lalu edit dan tambahkan text di bawah ini:
# pico /etc/apache2/apache2.conf
Include /etc/squirrelmail/apache.conf
ServerName 192.168.1.1

3. Instal squirrelmail Dgn perintah :
# apt-get install squirrelmail

4. Kemudian buat 2 user dan password masing2 :

# adduser king
# adduser popo

5. Buat direktori mail di direktori /etc/skel. Dgn perintah :
# maildirmake Maildir

Kemudian masuk ke user masing2 dan berikan hak akses seperti contoh di bawah.

localhost:/home/king# chmod 777 Maildir/
localhost:/home/popo# chmod 777 Maildir/

6. Restart postfix dan apache2 :

# /etc/init.d/postfix restart
# /etc/init.d/apache2 restart

No comments:

Post a Comment