6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

webmailクライアントを試してみた

Last updated at Posted at 2014-06-08

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
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?