Senin, 02 November 2009

Setting MAIL Server

Diposting oleh AG3ND4 C3W3K M4N!3Z

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

Kemudian edit&konfigurasi postfix seperti di bawah ini. Dgn perintah :
# pico /etc/postfix/main.cf
myhostname = mail.princez.com -> isi sesuai mail.domain anda
mydomain = princez.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.123.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.123.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. Cek di browser anda dan coba login di squirrelmail anda .

ketik : http://domainanda/squirrelmail





0 komentar: