ubuntu 14.04で試してみた。
IlohaMail
IlohaMailを試してみた。
$ sudo apt-get install -y ilohamail
$ cd /etc/apache2/sites-enabled
$ ln -s /etc/IlohaMail/apache.conf IlohaMail.conf
conf.phpがphpのsyntax errorになるので修正。
/etc/IlohaMail/conf.php
-$GPG_HOME_STR = "/var/cache/IlohaMail/gpg/%u.%h";\
+$GPG_HOME_STR = "/var/cache/IlohaMail/gpg/%u.%h";
http://IP/IlohaMail/ にアクセスするとログイン画面が表示される。
特徴はlocalhost以外にも接続ができる点。
アンインストール
$ sudo unlink /etc/apache2/sites-enabled/IlohaMail.conf
$ sudo /etc/init.d/apache2 restart
$ sudo apt-get purge ilohamail
$ sudo rm -rf /var/cache/IlohaMail
SquirrelMail
[SquirrelMail](https://www.google.co.jp/search?q= SquirrelMail&tbm=isch)を試してみた。
$ sudo apt-get install -y squirrelmail
$ cd /etc/apache2/sites-enabled
$ sudo ln -s /etc/squirrelmail/apache.conf squirrelmail.conf
http://IP/squirrelmail/ にアクセスするとログイン画面が表示される。
これは設置したサーバに存在するアカウントのID/Passを入力する。
文字化け対策
src/webmail.php
$output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
"<html><head>\n" .
"<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
+ "<meta charset=\"euc-jp\">\n" .
"<title>$org_title</title>\n".
"</head>";
roundcube
ajax対応ということで[roundcube](https://www.google.co.jp/search?q= roundcube&tbm=isch)使ってみたかったがログイン直後SERVICE CURRENTLY NOT AVAILABLE! Error No. [500]
で動かなかった。
DB接続関連?
$ sudo ln -s /etc/roundcube/apache.conf roundcube.conf
/etc/roundcube/apache.conf
-# Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
-# Alias /roundcube /var/lib/roundcube
+Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
+Alias /roundcube /var/lib/roundcube
エラーログ
$ tail -f /var/log/roundcube/errors
db接続用コンフィグファイル
/etc/dbconfig-common/roundcube.conf
アンインストール
$ sudo apt-get purge roundcube roundcube-core
$ sudo apt-get autoremove -y