ウェブメール SquirrelMail インストール

この章を始める前に下記の設定が必要です
「Apache2 インストール」 「Apache2 PHP5 インストール」 「Postfix Dovecot インストール」or「qmail tcpserver daemontools インストール」
squirrelmail展開
[root@centos ~]# wget http://shupp.org/software/squirrelmail-1.4.9a.tar.bz2
[root@centos ~]# wget ftp://ftp.back-street.net/pub/squirrelmail/squirrelmail-1.4.9a-ja-patch
[root@centos ~]# tar jxvf squirrelmail-1.4.9a.tar.bz2
[root@centos ~]# rm -f squirrelmail-1.4.9a.tar.bz2
[root@centos ~]# mv squirrelmail-1.4.9a-ja-patch ./squirrelmail-1.4.9a/
[root@centos ~]# cd squirrelmail-1.4.9a
[root@centos squirrelmail-1.4.9a]# patch -p0 < squirrelmail-1.4.9a-ja-patch
[root@centos squirrelmail-1.4.9a]# rm -f squirrelmail-1.4.9a-ja-patch
[root@centos squirrelmail-1.4.9a]# rm -fr help
[root@centos squirrelmail-1.4.9a]# cd
[root@centos ~]# mv squirrelmail-1.4.9a /var/www/html/webmail
locales
[root@centos ~]# wget http://downloads.sourceforge.net/squirrelmail/all_locales-1.4.9-20070106.zip
[root@centos ~]# unzip all_locales-1.4.9-20070106.zip -d all_locales
[root@centos ~]# cd all_locales
[root@centos all_locales]# ./install
Please enter path to your squirrelmail installation:/var/www/html/webmail ←記入
[root@centos all_locales]# cd
[root@centos ~]# rm -fr all_locales
[root@centos ~]# rm -f all_locales-1.4.9-20070106.zip
squirrelmail.po作成
[root@centos ~]# cd /var/www/html/webmail/po/
[root@centos po]# ./compilepo ja_JP
[root@centos po]# cd
所有権変更
[root@centos ~]# chmod 730 /var/www/html/webmail/data/
[root@centos ~]# chown -R apache:apache /var/www/html/webmail/data/
プラグイン導入
[root@centos ~]# wget http://www.squirrelmail.org/plugins/compatibility-2.0.6.tar.gz
[root@centos ~]# wget http://www.squirrelmail.org/plugins/empty_trash-1.4-1.2.2.tar.gz
[root@centos ~]# wget http://www.squirrelmail.org/plugins/virtual_hosts-1.0.tar.gz
[root@centos ~]# cd /var/www/html/webmail/plugins/
[root@centos plugins]# tar zxvf /root/compatibility-2.0.6.tar.gz
[root@centos plugins]# tar zxvf /root/empty_trash-1.4-1.2.2.tar.gz
[root@centos plugins]# tar zxvf /root/virtual_hosts-1.0.tar.gz
[root@centos plugins]# cd
[root@centos ~]# rm -f compatibility-2.0.6.tar.gz
[root@centos ~]# rm -f empty_trash-1.4-1.2.2.tar.gz
[root@centos ~]# rm -f virtual_hosts-1.0.tar.gz
squirrelmail設定
[root@centos ~]# /var/www/html/webmail/config/conf.pl
Main Menu --
Command >> 1 ←1を選択
5.  Signout Page           :
Command >> 5 ←5を選択
[]: /webmail ←/webmailを記入
Command >> r ←メインメニューに戻る

2.  Server Settings
Command >> 2 ←2を選択
1.  Domain                 : localhost
Command >> 1 ←1を選択
[localhost]: server-manual.com ←ドメインを記入
Command >> r ←メインメニューに戻る

3.  Folder Defaults
Command >> 3 ←3を選択
1.  Default Folder Prefix
Command >> 1 ←1を選択
[]:INBOX. ←INBOX.を記入
Command >> r ←メインメニューに戻る

4.  General Options
Command >> 4 ←4を選択
7.  Hide SM attributions        : false
Command >> 7 ←7を選択
Hide SM attributions (y/n) [n]: y ←yを記入
Command >> r ←メインメニューに戻る

Command >> 10 ←10を選択
1.  Default Language       : en_US
Command >> 1 ←1を選択
[en_US]: ja_JP ←ja_JPを記入
2.  Default Charset        : iso-8859-1
Command >> 2 ←2を選択
[iso-8859-1]: iso-2022-jp ←iso-2022-jpを記入
Command >> r ←メインメニューに戻る

8.  Plugins
Command >> 8 ←8を選択
8. compatibility
Command >> 8 ←compatibilityを選択(数字はランダム)
11. empty_trash
Command >> 11 ←empty_trashを選択(数字はランダム)
13. virtual_hosts
Command >> 13 ←virtual_hostsを選択(数字はランダム)

Q   Quit
Command >> q ←qを選択

Save?  [Y/n]: y ←yを選択して設定を保存
Basic認証設置
[root@centos ~]# /usr/bin/htpasswd -c /var/www/html/webmail/.htpasswd user_name
New password: ←パスワード入力
Re-type new password: ←パスワード再入力
Adding password for user user_name
[root@centos ~]# vi /var/www/html/webmail/.htaccess
↓下記を記入
AuthType Basic
AuthName "Please Enter Your Password"
AuthUserFile /var/www/html/webmail/.htpasswd
Require valid-user
ブラウザで確認 (http://www.ドメイン名/webmail/ にアクセス)

ログイン名とパスワードを入力して「ログイン」をクリック。

Home PageTop