Saturday 26 May 2012

0 Setting dan konfigurasi Mail Server di Debian 4

> 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.pephy.com -> isi sesuai mail.domain anda
mydomain = pephy.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.23.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.23.1

> 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

Semoga sukses :)

0 Setting dan konfigurasi DHCP di debian 4

1. Install dhcp
# apt-get install dhcp3-server

2. edit seperti ini dan hilangkan tanda (#) di dhcpd.conf :
# nano /etc/dhcp3/dhcpd.conf

cari text ;

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.1 192.168.1.4;
range 192.168.1.6 192.168.1.154;
option domain-name-servers 192.168.123.13;
option domain-name “sayko.com”;
option routers 192.168.1.5;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}



> Restart dhcp: # /etc/init.d/dhcp3-server restart

> Dan setting client dg ip dhcp.