wEb'nya Wonk edan

January 7, 2009

Konfigurasi Mail Server Linux Debian

Filed under: Komputer,Tugas — dimas rama @ 1:31 pm

1). Install packages yang diperlukan untuk membangun “Mail Server” :

# beckz@debian:~$ apt-get install postfix

# beckz@debian:~$ apt-get install squirrelmail

# beckz@debian:~$ apt-get install courier-imap

# beckz@debian:~$ apt-get install courier-pop

# beckz@debian:~$ apt-get install php4-imap

2). Edit file konfigurasi Mail Server :

# beckz@debian:~$ pico /etc/postfix/main.cf

# 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

# 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:${queue_directory}/smtpd_scache

smtp_tls_session_cache_database = btree:${queue_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.

myhostname = beckz.net

mydomain =beckz.net

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

myorigin = $mydomain

mydestination = beckz.net, beckz, localhost.localdomain, localhost

home_mailbox = Maildir/

relayhost =

mynetworks = 127.0.0.0/8 192.168.13.0/24

#mailbox_command = procmail -a “$EXTENSION”

mailbox_size_limit = 0

recipient_delimiter = +

inet_interfaces = all

3). Edit juga file konfigurasi yang lain :

# beckz@debian:~$ pico /etc/apache2/sites-available/default

NameVirtualHost 192.168.13.13

NameVirtualHost 192.168.2.1

<VirtualHost 192.168.13.13>

ServerAdmin webmaster@localhost

DocumentRoot /var/www/

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

# This directive allows us to have apache2′s default start page

# in /apache2-default/, but still have / go to the right place

RedirectMatch ^/$ /apache2-default/

</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory “/usr/lib/cgi-bin”>

AllowOverride None

Options ExecCGI -MultiViews +SymLinksIfOwnerMatch

Order allow,deny

Allow from all

</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

CustomLog /var/log/apache2/access.log combined

ServerSignature On

Alias /mail/ “/usr/share/squirrelmail/”

<Directory “/usr/share/squirrelmail/”>

Options Indexes MultiViews FollowSymLinks

AllowOverride None

Order deny,allow

Deny from all

Allow from all

</Directory>

</VirtualHost>

<VirtualHost 192.168.2.1>

DocumentRoot /home/www

ServerName beckz.net

</VirtualHost>

4). Membuat folder Maildir di user tertentu :

# beckz@debian:~$ cd /home/beckz

# beckz@debian:~$ maildirmake Maildir

5). Ubah hak akses pemilik Maildir :

# beckz@debian:~$ chown beckz.beckz Maildir -Rf

6). Membuat folder Maildir otomatis ketika create user :

# cd /etc/skel

# maildirmake Maildir

7). Jalankan Mail Server :

# beckz@debian:~$ /etc/init.d/postfix restart

# beckz@debian:~$ /etc/init.d/squirrelmail restart

# beckz@debian:~$ /etc/init.d/courier-imap restart

# beckz@debian:~$ /etc/init.d/courier-pop restart

# beckz@debian:~$ /etc/init.d/cuorier-authdaemon restart

About these ads

12 Comments »

  1. q coba dulu trikx

    Comment by fahad — October 22, 2009 @ 8:32 pm | Reply

  2. TErima kasih atas trikx ok

    Comment by fahad — October 26, 2009 @ 6:49 pm | Reply

  3. makasih ya,.,.

    isan coba dulu
    :)

    Comment by ikhsan — December 13, 2009 @ 10:47 am | Reply

  4. makasih ya,.,.

    isan coba dulu,,

    mudah2an berhasil
    :)

    Comment by ikhsan — December 13, 2009 @ 10:48 am | Reply

  5. boss ane coba kayak gitu tapi mail dir nya kenapa mesti creat manual yah ?kalau auto creat gimana caranya yah? ane kan buat user nya dari postfix admin,maildir nya di /home/virtual …tapi harus creat di virtual itu manual owner juga udah di seeting ???mohon pencerahan boss lieur nih ??makasih

    Comment by iwan — March 8, 2010 @ 4:01 pm | Reply

  6. NB: ini log nya authdaemond: authmysqllib: connected. Versions: header 50051, client 50051, server 50051
    Mar 8 06:28:36 my-srv authdaemond: SQL query: SELECT username, password, “”, 1005, 1008, ‘/home/virtual’, maildir, quota, name, “” FROM mailbox WHERE username = ‘kuya@mysrv.co.id’
    Mar 8 06:28:36 mysrv authdaemond: password matches successfully
    Mar 8 06:28:36 mysrv authdaemond: authmysql: sysusername=, sysuserid=1005, sysgroupid=1008, homedir=/home/virtual, address=kuya@mysrv.co.id, fullname=kuya batok, maildir=kuya@mysrv.co.id/, quota=0, options=
    Mar 8 06:28:36 mysrv authdaemond: Authenticated: sysusername=, sysuserid=1005, sysgroupid=1008, homedir=/home/virtual, address=kuya@mysrv.co.id, fullname=kuya batok, maildir=kuya@mysrv.co.id/, quota=0, options=
    Mar 8 06:28:36 mysrv imapd: chdir kuya@mysrv.co.id/: No such file or directory

    nah itu kan jadi nya harus creat manual si dir kuya@mysrv.co.id nya mau nya dia creat atu gitu gimana ya boss mohon pencerahan dunk?

    terimakasih banyak

    Comment by iwan — March 8, 2010 @ 4:08 pm | Reply

  7. ass……………..
    setelah saya mnginstall debian saya akn mgknfgrsi mail server tp kq folder /etc/postfix/main.cf
    g da y ,,,,,,,,????
    jd gmana tc solusi na… ???? THX

    Comment by tkj — April 20, 2010 @ 12:36 pm | Reply

  8. Makasih atas tutornya Q coba dlu ya

    Comment by haddad — October 28, 2010 @ 10:20 pm | Reply

  9. q jG coBba AcHHHH

    Comment by gAbrEalL — February 1, 2011 @ 3:10 pm | Reply

  10. gak da yg gambar ta

    Comment by wahyu — May 25, 2011 @ 6:55 pm | Reply

  11. kok kayax_a lbh rumit ya,….
    ada cara parktis_a G gan,…

    Comment by dhea — February 4, 2012 @ 11:02 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: