Rabu, 07 April 2010

Mail server dengan debian 4.0

> I. Install Postfix.
# apt-get install postfix

Kemudian edit&konfigurasi postfix seperti di bawah ini. Dgn perintah :
# pico /etc/postfix/main.cf
myhostname = mail.shine.com -> isi sesuai mail.domain anda
mydomain = shine.com -> isi sesuai domain anda
myorigin = /etc/mailname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168..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.7.13

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

> 4. Kemudian buat 2 user dan password masing2 :

# adduser user1
# adduser user2

> 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/user1# chmod 777 Maildir/
localhost:/home/user2# chmod 777 Maildir/

> 6. Restart postfix dan apache2 :

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

> 7. Testing Squirrelmail

ketik : http://sesuaikan dengan domain anda/squirrelmail


0 komentar: