0% found this document useful (0 votes)
87 views6 pages

Install Postfix MTA (Mail Transfer Agent)

The document provides instructions for installing a mail server and webmail client on a Linux system using various open source software. It involves installing Postfix as the MTA, Dovecot for IMAP/POP3, configuring SASL authentication with TLS, installing the SquirrelMail webmail client, and then Atmail Open as an alternative webmail client option. Key steps include configuring Postfix, Dovecot, and Apache settings, as well as creating a MySQL database for Atmail Open. Once completed, the mail server and webmail interfaces should be functional.

Uploaded by

Yogi Ariezta
Copyright
© Attribution Non-Commercial (BY-NC)
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)
87 views6 pages

Install Postfix MTA (Mail Transfer Agent)

The document provides instructions for installing a mail server and webmail client on a Linux system using various open source software. It involves installing Postfix as the MTA, Dovecot for IMAP/POP3, configuring SASL authentication with TLS, installing the SquirrelMail webmail client, and then Atmail Open as an alternative webmail client option. Key steps include configuring Postfix, Dovecot, and Apache settings, as well as creating a MySQL database for Atmail Open. Once completed, the mail server and webmail interfaces should be functional.

Uploaded by

Yogi Ariezta
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 6

Langkah-langkah(instalasi menggunakan terminal) : 1.

Install Postfix MTA (Mail Transfer Agent) o sudo apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules Selama melakukan installasi mungkin akan mendapatkan beberapa pertanyaan seperti permintaan untuk mengisi nama server lalu isi dengan nama domain jaringan anda dan untuk postfix pilih internet site. 2. Install Dovecot o sudo apt-get install dovecot-imapd dovecot-pop3d dovecot-common File konfigurasi Dovecote terletak di /etc/dovecot/dovecot.conf, Untuk konfigurasi kami menggunakan editor text gedit : sudo gedit /etc/dovecot/dovecot.conf edit menjadi seperti : # specify protocols = imap imaps pop3 pop3s protocols = pop3 imap # uncomment this and change to no. disable_plaintext_auth = no pop3_uidl_format = %08Xu%08Xv Save lalu tutup gedit windows, konfigurasi ulang selesai. 3. Konfigurasi SASL Authentication with TLS o Edit /etc/postfix/main.cf sudo gedit /etc/postfix/main.cf o Masukkan konfigurasi dibawah ini ke bagian akhir file /etc/postfix/main.cf kemudian edit : smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = yourdomain.com smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_security_options = noanonymous o Save lalu tutup gedit windows. o Jalankan command : sudo rm -r /var/run/saslauthd/ sudo mkdir -p /var/spool/postfix/var/run/saslauthd sudo ln -s /var/spool/postfix/var/run/saslauthd /var/run sudo chgrp sasl /var/spool/postfix/var/run/saslauthd sudo adduser postfix sasl o File /etc/dovecot/dovecot.conf harus dikonfigurasi lagi untuk menentukan dovecot daemon socket : sudo gedit /etc/dovecot/dovecot.conf masukkan informasi dibawah ini : auth default2 { mechanisms = plain login passdb pam { } userdb passwd {
o

} socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } }} 4. Instalasi squirrel Mail o sudo apt-get install apache2 libapache2-mod-php5 php5-cli php5-common php5-cgi squirrelmail o Setelah semua selesai terinstall, edit file /etc/apache2/apache2.conf sudo gedit /etc/apache2/apache2.conf o Masukkan informasi dibawah ini : Include /etc/squirrelmail/apache.conf 5. Restart PC anda 6. Cek hasil kerja anda tadi o Buka Internet Browser, masukkan url : http://ip_server/squirrelmail
o

Jika konfigurasi benar, maka akan masuk kehalaman login squirrelmail, kemudian masukkan nama user dan password.

Install Atmail Open Webmail Client Download dulu paket ATMAIL www.atmail.org/download.php : Code:

# sudo /bin/bash
Jika Apache, PHP dan MySQL belum ter installed, jalankan command2 ini : Code:

# apt-get update # apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysqlclient php5-mysql libapache2-mod-auth-mysql
Pindah Atmail Open tarball ke webservers root public directory. Code:

# mv ./atmailopen.tgz /var/www/
Extract tarballnya: Code:

# cd /var/www # tar xzvf ./atmailopen.tgz


Sekarang http://localhost/atmailopen dengan web browser dan harus muncul web, meskipun muncul Installation Error. kembali ke command line dan jalankan perintah ini, Code:

# chown -R www-data /var/www/atmailopen

edit php.ini file (umumnya ada di : /etc/php5/apache2/php.ini) cari baris ini : Code:

magic_quotes_gpc = On
ganti : Code:

magic_quotes_gpc = Off
Save dan quit dari text editor dan, restart apachenya : Code:

# /etc/init.d/apache2 restart
Kemudian buka http://localhost/atmailopen dengan web browser dan pastikan there is no errors di @mail Pre-installation check, terus klik continue . Pilih default language yang digunakan pada Atmail installation, baca license agreement, dan jika

setuju, pilih Yes I agree to the above license, dan klik Continue >>.

Langkah berikutnya : SQL Server Type = MySQL SQL Server Hostname or IP = localhost SQL Username = root SQL Password = password waktu install MySQL Database Name = atmail Create Database = Checked Create Database Tables = Checked

Pilih Continue >> Selanjutnya : Masukkan SMTP dan Admin Email information: You can use an external SMTP server or install an SMTP server on localhost, as long as the value in this field is changed to suit.

In this case, I have installed exim on the host machine, this can be achieved with the following command: Code:

# sudo apt-get install exim4


Click Continue >> The next page will ask you about migrating from another webmail system, if you wish to migrate from Horde, Roundcube, or Squirrelmail, Atmail supports this, and you should select the appropriate webmail system to migrate from, however I will not be migrating from any previous webmail system in this tutorial, so I will just select Continue >> which concludes the Atmail client installation. <p>The final page of your installation should look like the following:

Congratulations, you have successfully installed your new webmail client, select Login to Webmail to start using it!

You might also like