Difference between revisions of "Instalasi Squirrelmail"

From OnnoWiki
Jump to navigation Jump to search
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
Siapkan POP3, IMAP & SMTP Server
+
Siapkan [[POP3]], [[IMAP]] & [[SMTP]] [[Server]]
  
# apt-get install dovecot-common dovecot-imapd dovecot-pop3d postfix
 
# apt-get install squirrelmail squirrelmail-decode
 
  
Pastikan dovecot mendukung imap
+
==Ubuntu 16.04==
  
  # vi /etc/dovecot/dovecot.conf
+
  apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli \
  protocols = imap pop3
+
php7.0-curl mysql-client mysql-server dovecot-common dovecot-imapd \
 +
dovecot-pop3d postfix squirrelmail squirrelmail-decode
  
Restart Dovecot
+
Memberitahukan apache bahwa ada squirrelmail
  
  # /etc/init.d/dovecot restart
+
  cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf
  
  
Konfigurasi squirrelmail
 
  
# cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
+
==Ubuntu Lama==
  
  # /usr/sbin/squirrelmail-configure
+
  sudo locale-gen id_ID.UTF-8
    2 -> 1 -> domai.id -> R
+
 +
apt-get install apache2 php5 php5-xmlrpc php5-mysql php5-gd php5-cli \
 +
php5-curl mysql-client mysql-server dovecot-common dovecot-imapd \
 +
dovecot-pop3d postfix squirrelmail squirrelmail-decode
  
 +
Pastikan dovecot mendukung [[imap]], biasanya default-nya sudah ok
  
Restart Squirrelmail
+
vi /etc/dovecot/dovecot.conf
  
  # /etc/init.d/apache2 restart
+
  protocols = imap pop3
  
  
 +
Beritahu [[Apache]] bahwa ada [[Squirrelmail]] dengan cara
  
Webmail dapat di akses melalui
+
cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
 +
 
 +
untuk Ubuntu 14.04 gunakan
 +
 
 +
cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf
 +
 
 +
 
 +
==Konfigurasi Squirrelmail==
 +
 
 +
 
 +
Konfigurasi [[Domain]] [[Squirrelmail]]
 +
 
 +
/usr/sbin/squirrelmail-configure
 +
 
 +
2 -> 1 -> domain.id -> S -> Q
 +
 
 +
 
 +
Ubuntu versi 11.04, edit konfigurasi [[Dovecot]]
 +
 
 +
vi /etc/dovecot/dovecot.conf
 +
 
 +
mail_location = mbox:~/mail:INBOX=/var/mail/%u
 +
 
 +
 
 +
Ubuntu versi 11.10 ke atas, edit konfigurasi [[Dovecot]]
 +
 
 +
vi /etc/dovecot/conf.d/10-mail.conf
 +
 
 +
mail_location = mbox:~/mail:INBOX=/var/mail/%u
 +
 
 +
Restart [[Server]]
 +
 
 +
/etc/init.d/dovecot restart
 +
/etc/init.d/apache2 restart
 +
/etc/init.d/postfix restart
 +
 
 +
Restart [[Server]] di ubuntu 14.04
 +
 
 +
service dovecot restart
 +
/etc/init.d/apache2 restart
 +
/etc/init.d/postfix restart
 +
 
 +
 
 +
[[Webmail]] dapat di akses melalui
  
 
  http://ip-address-server/squirrelmail
 
  http://ip-address-server/squirrelmail
 +
 +
==Konfigurasi SMTP Postfix==
 +
 +
Sebaiknya [[SMTP]] [[Server]] [[Postfix]] diberitahu domain, relayhost, IP lokal
 +
 +
vi /etc/postfix/main.cf
 +
 +
mydestination = sekolah, localhost.localdomain, localhost, '''sekolah.sch.id'''
 +
relayhost = '''smtp.telkom.net'''
 +
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 '''192.168.0.0/16'''
 +
 +
 +
 +
==Memancing e-mail ke INBOX==
 +
 +
Kirim email menggunakan telnet ke port 25
 +
 +
telnet localhost 25
 +
 +
helo test.com
 +
mail from: <test@test.com>
 +
rcpt to: <user@domain.com>
 +
data
 +
From: <test@test.com>
 +
To: <user@domain.com>
 +
Subject: test
 +
 +
test
 +
 +
.
 +
 +
quit
 +
 +
 +
Ganti user@domain.com dengan e-mail yang anda buat. Misalnya korban.com
 +
 +
telnet localhost 25
 +
 +
helo test.com
 +
mail from: <test@test.com>
 +
rcpt to: <onno@korban.com>
 +
data
 +
From: <test@test.com>
 +
To: <onno@korban.com>
 +
Subject: test
 +
 +
test
 +
 +
.
 +
 +
quit
 +
 +
==Error==
 +
 +
===Error Syslog===
 +
 +
Di Ubuntu 11.10, jika keluar error seperti
 +
 +
ERROR: Could not complete request.
 +
Query: SELECT "INBOX"
 +
Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more  information. [2012-03-12 11:21:18]
 +
 +
Kemungkinan karena
 +
 +
syslog:Mar 12 11:21:18 ServerTIK dovecot: imap(stkip): Error: mkdir(/home/stkip/mail/.imap/INBOX) failed: Operation not permitted
 +
 +
'''SOLUSI:'''
 +
 +
Lakukan
 +
 +
apt-get install mailutils
 +
mail username
 +
 +
untuk '''username''' lakukan
 +
 +
mkdir /home/username/mail
 +
mkdir /home/username/mail/.imap
 +
touch /home/username/mail/.imap/INBOX
 +
chown username.username /home/username/mail/
 +
 +
 +
===Problem IPv6===
 +
 +
Kalau ada masalah dengan IPv6 tambahkan di main.cf
 +
 +
inet_protocols = ipv4
 +
 +
 +
 +
==Beberapa Capture Screen Squirrelmail==
 +
 +
[[Image:Squirrelmail1.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail2.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail3.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail4.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail5.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail6.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail7.jpg|center|200px|thumb]]
 +
 +
[[Image:Squirrelmail8.jpg|center|200px|thumb]]
 +
 +
 +
==Referensi==
 +
 +
* http://www.squirrelmail.org/plugins.php
 +
* http://ubuntuforums.org/showthread.php?t=1149842 - User Self Registration
 +
 +
==Pranala Menarik==
 +
 +
* [[Linux: Menambahkan User Account]]
 +
* [[Instalasi Dovecot]]
 +
* [[Instalasi Postfix]]
 +
* [[Postfix: Konfigurasi relayhost dengan Authentikasi]]
 +
* [[Block Spam Menggunakan Postfix]]
 +
* [[Linux Howto]]
 +
 +
[[Category: Linux]]

Latest revision as of 05:55, 1 October 2016

Siapkan POP3, IMAP & SMTP Server


Ubuntu 16.04

apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli \
php7.0-curl mysql-client mysql-server dovecot-common dovecot-imapd \
dovecot-pop3d postfix squirrelmail squirrelmail-decode

Memberitahukan apache bahwa ada squirrelmail

cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf


Ubuntu Lama

sudo locale-gen id_ID.UTF-8

apt-get install apache2 php5 php5-xmlrpc php5-mysql php5-gd php5-cli \
php5-curl mysql-client mysql-server dovecot-common dovecot-imapd \
dovecot-pop3d postfix squirrelmail squirrelmail-decode

Pastikan dovecot mendukung imap, biasanya default-nya sudah ok

vi /etc/dovecot/dovecot.conf
protocols = imap pop3


Beritahu Apache bahwa ada Squirrelmail dengan cara

cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf

untuk Ubuntu 14.04 gunakan

cp /etc/squirrelmail/apache.conf /etc/apache2/conf-enabled/squirrelmail.conf


Konfigurasi Squirrelmail

Konfigurasi Domain Squirrelmail

/usr/sbin/squirrelmail-configure
2 -> 1 -> domain.id -> S -> Q


Ubuntu versi 11.04, edit konfigurasi Dovecot

vi /etc/dovecot/dovecot.conf
mail_location = mbox:~/mail:INBOX=/var/mail/%u


Ubuntu versi 11.10 ke atas, edit konfigurasi Dovecot

vi /etc/dovecot/conf.d/10-mail.conf 
mail_location = mbox:~/mail:INBOX=/var/mail/%u

Restart Server

/etc/init.d/dovecot restart
/etc/init.d/apache2 restart
/etc/init.d/postfix restart

Restart Server di ubuntu 14.04

service dovecot restart
/etc/init.d/apache2 restart
/etc/init.d/postfix restart


Webmail dapat di akses melalui

http://ip-address-server/squirrelmail

Konfigurasi SMTP Postfix

Sebaiknya SMTP Server Postfix diberitahu domain, relayhost, IP lokal

vi /etc/postfix/main.cf
mydestination = sekolah, localhost.localdomain, localhost, sekolah.sch.id
relayhost = smtp.telkom.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16


Memancing e-mail ke INBOX

Kirim email menggunakan telnet ke port 25

telnet localhost 25
helo test.com
mail from: <test@test.com>
rcpt to: <user@domain.com>
data
From: <test@test.com>
To: <user@domain.com>
Subject: test

test

.

quit


Ganti user@domain.com dengan e-mail yang anda buat. Misalnya korban.com

telnet localhost 25
helo test.com
mail from: <test@test.com>
rcpt to: <onno@korban.com>
data
From: <test@test.com>
To: <onno@korban.com>
Subject: test

test

.

quit

Error

Error Syslog

Di Ubuntu 11.10, jika keluar error seperti

ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more  information. [2012-03-12 11:21:18]

Kemungkinan karena

syslog:Mar 12 11:21:18 ServerTIK dovecot: imap(stkip): Error: mkdir(/home/stkip/mail/.imap/INBOX) failed: Operation not permitted

SOLUSI:

Lakukan

apt-get install mailutils
mail username

untuk username lakukan

mkdir /home/username/mail
mkdir /home/username/mail/.imap
touch /home/username/mail/.imap/INBOX
chown username.username /home/username/mail/


Problem IPv6

Kalau ada masalah dengan IPv6 tambahkan di main.cf

inet_protocols = ipv4


Beberapa Capture Screen Squirrelmail

Squirrelmail1.jpg
Squirrelmail2.jpg
Squirrelmail3.jpg
Squirrelmail4.jpg
Squirrelmail5.jpg
Squirrelmail6.jpg
Squirrelmail7.jpg
Squirrelmail8.jpg


Referensi

Pranala Menarik