Mengatasi Permasalahn Instalasi SquirrelMail Ubuntu 16.04

0
Langsung saja ketopik pembahasan

WARNING: Squirrelmail bermasalah dengan PHP 7.0. Downgrade ke PHP 5.6

Siapkan Repo Tambahan
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

sudo locale-gen id_ID.UTF-8

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 php7.0 php5.6 \
php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring \
php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0


Downgrade ke php5
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart

Memberitahukan apache bahwa ada squirrelmail
sudo cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail.conf

Edit file 
/etc/apache2/sites-available/squirrelmail.conf

Menjadi
vi /etc/apache2/sites-available/squirrelmail.conf

#users will prefer a simple URL like http://webmail.example.com
<VirtualHost *:80>
      DocumentRoot /usr/share/squirrelmail
      ServerName korban.com
</VirtualHost>
   
Enable squirrelmail
   sudo a2ensite squirrelmail.conf

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

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 di ubuntu 14.04
service dovecot restart
/etc/init.d/apache2 restart
/etc/init.d/postfix restart

Webmail dapat di akses melalui
http://localhost:8080/squirrelmail

Konfigurasi SMTP Postfix
vi /etc/postfix/main.cf
mydestination = sekolah, localhost.localdomain, localhost, sekolah.sch.id
relayhost = smtp.domain.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
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

Done!!

Posting Komentar

0 Komentar
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Posting Komentar (0)
Our website uses cookies to enhance your experience. Learn More
Accept !