0% found this document useful (0 votes)
32 views4 pages

Script-MailServer Ubuntu10.04 Revisi

1. The document discusses configuring a mail server with Postfix, Dovecot, and Squirrelmail on an Ubuntu system. It includes steps to install and configure each component, and configure the Apache virtual host. 2. Configuration steps for Postfix involve running dpkg-reconfigure, editing main.cf, and restarting the service. Dovecot is configured by editing dovecot.conf and restarting. 3. Squirrelmail is installed from packages and its Apache site is set up in a virtual host configuration. Finally, a test user is added and the full configuration is tested via the Squirrelmail web interface.

Uploaded by

Safik Dwi Nova
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

Script-MailServer Ubuntu10.04 Revisi

1. The document discusses configuring a mail server with Postfix, Dovecot, and Squirrelmail on an Ubuntu system. It includes steps to install and configure each component, and configure the Apache virtual host. 2. Configuration steps for Postfix involve running dpkg-reconfigure, editing main.cf, and restarting the service. Dovecot is configured by editing dovecot.conf and restarting. 3. Squirrelmail is installed from packages and its Apache site is set up in a virtual host configuration. Finally, a test user is added and the full configuration is tested via the Squirrelmail web interface.

Uploaded by

Safik Dwi Nova
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

Menginstall Mail Server (Postfix, Dovecot IMAP & POP3 dan


Squirrelmail)
Mengkonfigurasi Postfix
Mengkonfigurasi Postfix
#dpkg-reconfigure postfix
-

Postfix Configuration : OK
General type of mail configuration: Internet Site
System mail name: smkn1blitar.sch.id
Root and postmaster mail recipient: admin_user_name
Other destinations for mail: smkn1blitar.sch.id,
mail.smkn1blitar.sch.id, localhost.smkn1blitar.sch.id,
localhost
Force synchronous updates on mail queue?: No
Local networks: 127.0.0.0/8
Mialbox size limit (bytes): 0
Local address extension character: +
Internet protocols to use: all

backup file main.cf


#cp /etc/postfix/main.cf /etc/postfix/main.cf.asli
Konfigurasi file utama postfix pada /etc/init.d/main.cf
#nano /etc/postfix/main.cf copas file dibawah ini
home_mailbox = Maildir/
mailbox_command =
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unaut
h_destination
NB : Pastikan pada myhostname = smkn1blitar.sch.id
Restart / Reload postfix
#/etc/init.d/postfix restart
Cek hasil konfigurasi postfix (tidak disarankan)
#telnet localhost 25

Konfigurasi Dovecot IMAP & POP3


Installasi dovecot
#apt-get install dovecot-common dovecot-imapd dovecotpop3d
Backup file dovecot.conf
#cp /etc/dovecot/doecot.conf /etc/dovecot/dovecot.conf.asli
Konfigurasi file /etc/dovecot/dovecot.conf
#nano /etc/dovecot/dovecot.conf copas script dibawah ini
mail_location = maildir:/home/%u/Maildir
disable_plaintext_auth = no
auth default2 {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
NB : Pastikan pada protocols = pop3 pop3s imap imaps
Restart Dovecot
#/etc/init.d/dovecot restart
Cek hasil konfigurasi ( imap=143
disarankan)
#telnet localhost 143

pop3=110

(tidak

#telnet localhost 110

Installasi Squirrelmail
Downlaod squirrelmail_1.4.6-1ubuntu0.3_all
google>

<cari

di

Install PHP5 ( Karena squirrelmail menggunakan script PHP


serta agar tidak terdapat corrupt dependency pada Ubuntu)
#apt-get install php5
Install squirrelmail dengan masuk ke
menyimpan squirrelmail
#dpkg i squirrelmail_1.4.6-1ubuntu0.3_all

direktori

kita

Konfigurasi virtual host/virtual alias/site( Apache2 ) untuk


webmail
Menbuat site baru
#cp /etc/apache2/sites-available/default /etc/apache2/sitesavailable/mail
Konfigurasi site mail
#nano /etc/apache2/sites-available/mail
<VirtualHost 200.100.4.67:80>
ServerAdmin [email protected]
DocumentRoot /usr/share/squirrelmail
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

</Directory>
</VirtualHost>
Aktifkan vhost / site mail
#a2ensite mail
#/etc/init.d/apache2 reload
Menambah user untuk berkirim email
#adduser nama-user
Cek Konfigurasi Mail Server
Buka
pada
browser
client
dengan
alamat
http://mail.smkn1blitar.sch.id selanjutnya login sesuei user yang
tlah didaftarkan

You might also like