« FedoraでバッファローのLinkstationを使う | メイン | プラネックスコミュニケーションズ、IP電話/携帯電話関連企業4社を子会社化 »

2005年04月06日

ブラウザでメールを利用する。(fc3にsequirrelmailをインストール)

 外出先から自分に届いたメールを見たいときがありますが、いつもPCを持ち歩いているわけではないし、携帯に転送しても、最近のようにHTMLメールが多くなると厄介です。
 解決策として、ウェッブブラウザをインストールしてあるPCなら、どこからでも見えるようにfedora core3にsquirrelmailをインストールしました。
 当然、WebサーバとSMTPサーバ(postfix)とpop/imapサーバ(dovecot)が動作していることが条件です。

*sequirrelmailのインストール

fedora のサイトにsquirrelmail-1.4.4-1.FC3.noarch.rpmがありますので、インストールします。
# yum -y install squirrelmail-1.4.4-1.FC3.noarch.rpm;

*php-mbstringのインストール

FC3の場合、php-mbstringをインストールする必要があります。
php-mbstringがインストールされていないとSquirrelMailアクセス時に以下のエラーメッセージがページ上部に表示されて、ログインできません。
You need to have php4 installed with the multibyte string function enabled (using configure option --with-mbstring).
# yum -y install php-mbstring;

*php.iniの設定

phpのマルチランゲージの設定をしていない場合は/etc/php.iniを編集します。
[mbstring];
mbstring.language = Japanese;
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = auto
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
mbstring.func_overload = 0

*プラグインのインストール

日本のsquirrelmailサイト の左フレームのdownloadをクリックすると本家 の案内がでます。
Pluginをダウンロードをします。
本家の左フレームのPluginsをクリックするとプラグインページに進みます。

MiscellaneousからCompatibililtyの1.3
Message & Folder ManipulationからEmpty Foldersの1.1
Logging inからsequre_login
他人にメールの内容を盗まれないないよう、ssl通信は必須です。
sequre_loginはsslで通信をおこない、あなたのメールを守るので必ず入れましょう。

*SquirreMailのpluginディレクトリに移動

# cd /usr/share/squirrelmail/plugins/
先程ダウンロードしたプラグインをこのディレクトリにコピーし、解凍する。
( /usr/local/src/にダウンロードした場合)
# cp /usr/local/src/compatibility-1.3.tar.tar ./
# cp /usr/local/src/empty_trash-1.2-1.2.2.tar.gz ./
# cp /usr/local/src/secure_login-1.2-1.2.8.tar.tar ./
 解凍
# tar fxzv compatibility-1.3.tar.tar
 compatibility/
 compatibility/INSTALL
 compatibility/functions.php
 compatibility/README
 compatibility/index.php
 compatibility/version
 compatibility/setup.php
 以下同様に
# tar fxzv empty_trash-1.2-1.2.2.tar.gz
# tar fxzv secure_login-1.2-1.2.8.tar.tar

プラグインのディレクトリにcompatiblityとempty_trashのディレクトリができているのを確認したら、先のファイルを削除する。

# rm -f ./compatibility-1.3.tar.tar
# rm -f ./empty_trash-1.2-1.2.2.tar.gz
# rm -f ./secure_login-1.2-1.2.8.tar.tar

*httpを再起動

# /etc/rc.d/init.d/httpd restart
 httpd を停止中:                                        [  OK  ]
 httpd を起動中:                                        [  OK  ]

squirrelmailの設定

/usr/share/squirrelmail/config/conf.pl

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color on
S   Save data
Q   Quit

Command >>1
もし、入力した文字が表示されないようでしたら、「C」を入力してTurn color をon/offしてみてください。
Organization Preferences
1.  Organization Name      : SquirrelMail
2.  Organization Logo      : ../images/sm_logo.png
3.  Org. Logo Width/Height : (308/111)
4.  Organization Title     : SquirrelMail $version
5.  Signout Page           :
6.  Top Frame              : _top
7.  Provider link          : http://www.squirrelmail.org/
8.  Provider name          : SquirrelMail

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> 5
 Signout Pageを選択 

When users click the Sign Out button they will be logged out and
then sent to signout_page.  If signout_page is left empty,
(hit space and then return) they will be taken, as normal,
to the default and rather sparse SquirrelMail signout page.

[]: /webmail
   ログアウトしたらログインページに戻る。

Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color on
S   Save data
Q   Quit

Command >> 10
  Languagesを選択


Language preferences
1.  Default Language       : en_US
2.  Default Charset        : iso-8859-1
3.  Enable lossy encoding  : false

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> 1

SquirrelMail attempts to set the language in many ways.  If it
can not figure it out in another way, it will default to this
language.  Please use the code for the desired language.

[en_US]: ja_JP  
  日本語をデフォルトに設定

Language preferences
1.  Default Language       : ja_JP
2.  Default Charset        : iso-8859-1
3.  Enable lossy encoding  : false

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> s
  保存

Data saved in config.php
Press enter to continue... 
  Enterキーを入力

Language preferences
1.  Default Language       : ja_JP
2.  Default Charset        : iso-8859-1
3.  Enable lossy encoding  : false

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> r  
  TOPメニューに戻る

Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers
 
C   Turn color on
S   Save data
Q   Quit

Command >> 2
  Server Settingsを選択
 
General
-------
1.  Domain                 : localhost
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Change Sendmail Config : /usr/sbin/sendmail

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> 1
   <-- Domainを選択

The domain name is the suffix at the end of all email addresses.  If
for example, your email address is jdoe@example.com, then your domain
would be example.com.

[localhost]: hogehoge.com 
   メルアドの@以下の部分を入力

General
-------
1.  Domain                 : hogehoge.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Change Sendmail Config : /usr/sbin/sendmail

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> s 
   保存

Data saved in config.php
Press enter to continue...

General
-------
1.  Domain                 : hogehoge.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Change Sendmail Config : /usr/sbin/sendmail

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> r  
  TOPメニューに戻る

Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages
 
D.  Set pre-defined settings for specific IMAP servers
 
C   Turn color on
S   Save data
Q   Quit

Command >> 8  
   プラグインを選択

Plugins
  Installed Plugins
    1. delete_move_next
    2. squirrelspell
    3. newmail

  Available Plugins:
    4. fortune
    5. bug_report
    6. sent_subfolders
    7. translate
    8. spamcop
    9. listcommands
    10. compatibility
    11. administrator
    12. calendar
    13. message_details
    14. info
    15. mail_fetch
    16. empty_trash
    17. abook_take
    18. filters

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit
 
Command >> 10
  compatiblityを選択
  番号は環境によって変わります。 
Plugins
  Installed Plugins
    1. delete_move_next
    2. squirrelspell
    3. newmail
    4. compatibility

  Available Plugins:
    5. fortune
    6. bug_report
    7. sent_subfolders
    8. translate
    9. spamcop
    10. listcommands
    11. administrator
    12. calendar
    13. message_details
    14. info
    15. mail_fetch
    16. empty_trash
    17. abook_take
    18. filters

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> 16  
  empty_trashを選択
  同様にsecure_loginも入れます。
 
 最後にセーブしましょう。
R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> s
   保存

Data saved in config.php
Press enter to continue...

Plugins
 Installed Plugins
   1. delete_move_next
   2. squirrelspell
   3. newmail
   4. compatibility
   5. empty_trash

 Available Plugins:
   6. fortune
   7. bug_report
   8. sent_subfolders
   9. translate
   10. spamcop
   11. listcommands
   12. administrator
   13. calendar
   14. message_details
   15. info
   16. mail_fetch
   17. abook_take
   18. filters

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

Command >> q  
  設定を終わります。
#

*httpを再起動

# /etc/rc.d/init.d/httpd restart
 httpd を停止中:                                        [  OK  ]
 httpd を起動中:                                        [  OK  ]

http://hogehoge.com/webmail/をアクセスすると自動でhttpsに飛んで、ログイン画面が現れます。

投稿者 ataru : 2005年04月06日 16:27

トラックバック

このエントリーのトラックバックURL:
http://www.aubetec.com/~hiruneko/blog/mt-tb.cgi/48

コメント

コメントしてください




保存しますか?

(書式を変更するような一部のHTMLタグを使うことができます)