Install aplikasi postfix courier-imap courier-pop
root@debian:/home/user# apt-get install postfix courier-imap courier-pop
Kemudian akan muncul menu PopUp. Dan sesuaikan dengan konfigurasi di bawah ini :
a. General Type of Mail Configuration : Internet Site
b. System Mail Name : adhek.com
Membuat Direktori
root@debian:/home/user# maildirmake /etc/skel/Maildir
Membuat Maildir seperti di atas
root@debian:/home/user# adduser adhek
Adding user `adhek' ...
Adding new group `adhek' (1002) ...
Adding new user `adhek' (1002) with group `adhek' ...
Creating home directory `/home/adhek' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: adhek
Changing the user information for adhek
Enter the new value, or press ENTER for the default
Full Name []: adhek
Room Number []: 25
Work Phone []:
Home Phone []:
Other []:
Is the information correct? Y
Menambahkan satu user lagi, agar prose mengirim bisa di laksanakan
root@debian:/home/user# adduser baru
Adding user `baru' ...
Adding new group `baru' (1003) ...
Adding new user `koztrad' (1003) with group `baru' ...
Creating home directory `/home/baru' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: adhek
Retype new UNIX password: adhek
passwd: password updated successfully
Changing the user information for baru
Enter the new value, or press ENTER for the default
Full Name []: baru
Room Number []: 23
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Melakukan konfigurasi Postfix
root@debian:/home/user# nano /etc/postfix/main.conf
home_mailbox = Maildir/
Melakukan konfigurasi melalui dpkg
root@debian:/home/user# dpkg-reconfigure postfix
Stopping Postfix Mail Transport Agent: postfix.
setting synchronous mail queue updates: false
setting myorigin
setting destinations: yuli.com, localhost, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
clearing mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: ipv4
root@debian:/home/user# /etc/init.d/postfix restart
root@debian:/home/user# /etc/init.d/courier-imap restart
Menambahkan sub domain untuk mail server bind9
root@debian:/home/user# nano /etc/bind/db.adhek
mail IN A 192.168.10.35
Setelah itu kita restart agar bisa digunakan
root@debian:/home/user# /etc/init.d/bind9 restart
Selesai menambahkan sub domain, lalu kembali ke home user
root@debian:/home/user# cd /home/user
Kita akan mengirimkan e-mail ke user koztrad
root@debian:/home/user# telnet mail.adhek.com 25
Trying 192.168.10.35...
Connected to mail.adhek.com.
Escape character is '^]'.
220 localhost ESMTP Postfix (Debian/GNU)
mail from: adhek
250 2.1.0 Ok
data
554 5.5.1 Error: no valid recipients
rcpt to: baru
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
I JUST WANT TO SAY HELLO !!!
.
250 2.0.0 Ok: queued as 3C1CD1B69B
quit
221 2.0.0 Bye
Connection closed by foreign host.
Kalau sudah selesai kita lihat di User koztrad
root@debian:/home/user# telnet mail.adhek.com 110
Trying 192.168.10.35...
Connected to mail.adhek.com.
Escape character is '^]'.
+OK Hello there.
user baru
+OK Password required.
pass adhek
+OK logged in.
stat
+OK 1 426
retr 1
+OK 426 octets follow.
Return-Path: <adhek@adhek .com>
X-Original-To: baru
Delivered-To: baru@adhek .com
Received: from unknown (unknown [192.168.10.48])
by localhost (Postfix) with SMTP id 3C1CD1B69B
for <koztrad>; Wed, 14 Jan 2009 23:04:46 +0000 (UTC)
Message-Id: <20090114230525.3C1CD1B69B@localhost>
Date: Wed, 14 Jan 2009 23:04:46 +0000 (UTC)
From: adhek@adhek .com
To: undisclosed-recipients:;
I JUST WANT TO SAY HELLO !!!
.
quit
+OK Bye-bye.
Connection closed by foreign host.
Sabtu, 13 Oktober 2012
Tutorial Mail Server
Langganan:
Posting Komentar (Atom)

0 komentar:
Posting Komentar