Setting Mail Server + WEBMAIL
SMTP = simple
mail transfer protocol = 25
Pop3 = 110
http = web =
80
proxy = 3128
telnet = 21
ssh = 22
Setting Mail Server +
WEBMAIL
#Install paketnya :
#apt-cdrom add
#apt-get
install postfix #(pada
disk 1)
#apt-get
install courier-imap courier-pop squirrelmail
#(pada
disk 2)
#kemudian konfigurasi pada
apache2.conf , ketikan perintah :
# mcedit /etc/apache2/apache2.conf
#Tambahkan script dibawah pada
baris paling akhir :
Include /etc/squirrelmail/apache.conf
#Tekan F2 untuk menyimpan dan F10
untuk keluar
#kemudian konfigurasi pada /etc/squirrelmail/apache.conf
, ketikan perintah :
#mcedit /etc/squirrelmail/apache.conf
#Edit seperti script dibawah :
Alias
/mail
/usr/share/squirrelmail
<Directory
/usr/share/squirrelmail>
Options FollowSymLinks
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
# access to configtest is limited by default
to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>
# users will prefer
a simple URL like http://webmail.example.com
<VirtualHost 162.10.10.4:80> #
(ip
virtual untuk mail)
DocumentRoot
/usr/share/squirrelmail
ServerName mail.lksoki.com # (mail domain)
</VirtualHost>
# redirect to https
when available (thanks omen@descolada.dartmouth.edu)
#
# Note: There are multiple ways to do this, and
which one is suitable for
# your site's configuration depends. Consult
the apache documentation if
# you're unsure, as this example might not work
everywhere.
#
#<IfModule
mod_rewrite.c>
# <IfModule mod_ssl.c>
# <Location /squirrelmail>
# RewriteEngine on
# RewriteCond %{HTTPS} !^on$ [NC]
# RewriteRule .
https://%{HTTP_HOST}%{REQUEST_URI} [L]
# </Location>
# </IfModule>
#Tekan F2 untuk menyimpan dan F10
untuk keluar
#kemudian konfigurasi pada
conf.pl (untuk merubah domain mail), ketikan perintah :
mc
#/etc/squirrelmail/conf.pl
#Tekan
2 (enter)
#tekan 1 (enter)
#Tulis domain anda (enter)
#tekan s (enter /untuk menyimpan)
#tekan q (enter/untuk keluar)
#kemudian konfigurasi pada /etc/postfix/main.cf , ketikan perintah
: mcedit /etc/postfix/main.cf
#Edit seperti script dibawah :
# See
/usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian
specific: Specifying a file name will
cause the first
# line of that file
to be used as the name. The Debian
default
# is /etc/mailname.
#myorigin =
/etc/mailname
smtpd_banner =
$myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain
is the MUA's job.
append_dot_mydomain
= no
# Uncomment the next
line to generate "delayed mail" warnings
#delay_warning_time
= 4h
readme_directory =
no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database
= btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database
= btree:${data_directory}/smtp_scache
# See
/usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on
enabling SSL in the smtp client.
mydomain = lksoki.com
myhostname = mail.lksoki.com
alias_maps = hash:/etc/aliases
alias_database =
hash:/etc/aliases
myorigin =
/etc/mailname
mydestination
= mail.lksoki.com, lksoki.com, localhost.lksoki.com,
localhost
relayhost =
mynetworks =
127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
#mailbox_command = procmail -a
"$EXTENSION"
mailbox_size_limit =
0
recipient_delimiter
= +
inet_interfaces =
all
home_mailbox = Maildir/
#Tekan F2 untuk menyimpan dan F10
untuk keluar
#Kemudian agar setiap kita
menambah user baru otomatis membuat folder ketikan perintah :
#maildirmake /etc/skel/Maildir
#Lalu untuk menambahkan User
gunakan perintah :
#adduser namauser
restart
apache2 , postfix, courier-imap dan courier pop :
#/etc/init.d/postfix
restart
#/etc/init.d/courier-imap
restart
#/etc/init.d/courier-pop
restart
#/etc/init.d/apache2
restart
#untuk
mengujinya , kita buat dua user. Dan pada browser kita tliskan url :
mail.lksoki.com
#lalu
gunakan untuk mengirim email. Jika email sampai ke user yang dikirimi Email,
maka mail server kita sudah berhasil.
Komentar
Posting Komentar