SquirrelMailでWebメールを導入しよう!
ここでは、SquirrelMailによるWebメールクライアントの導入について掲載しています。
SquirrelMailとは…?
PHPで書かれた、Web上でメールの送受信を可能にするオープンソースのWebメールクライアントです。
ファイアウォールなどによって通信できるポートが限られている場合に重宝しますね!(HTTPやHTTPSを閉じている企業や施設は少ない…と思う)
Squirrelとはリスのことで、このSquirrelMailを元にした商用WebメールクライアントにRisuMailというものがあります。Squirrel、ん~発音が難しい…。
SquirrelMailのダウンロード
公式リポジトリにパッケージがありますが、1.4.8とバージョンが古いので、今回は公式ページからダウンロードして使います。
[root@co ~]# wget http://jaist.dl.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz
--2013-07-18 20:04:06-- http://jaist.dl.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz
jaist.dl.sourceforge.net をDNSに問いあわせています... 150.65.7.130
jaist.dl.sourceforge.net|150.65.7.130|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 664076 (649K) [application/x-gzip]
`squirrelmail-webmail-1.4.22.tar.gz' に保存中
100%[======================================>] 664,076 3.53M/s 時間 0.2s
2013-07-18 20:04:07 (3.53 MB/s) - `squirrelmail-webmail-1.4.22.tar.gz' へ保存完了 [664076/664076]
ダウンロードしたファイルを解凍し、配置します。
[root@co plugins]# tar zxvf squirrelmail-webmail-1.4.22.tar.gz
[root@co plugins]# mv squirrelmail-webmail-1.4.22 /var/www/webmail
解凍したら、ダウンロードしたファイルを削除します。
[root@co plugins]# rm -f squirrelmail-webmail-1.4.22.tar.gz
localeファイルのダウンロード
日本語のlocaleをダウンロードし、先に解凍したSquirrelMailに適用します。
[root@co ~]# mkdir locales
[root@co ~]# cd locales
[root@co locales]# wget http://jaist.dl.sourceforge.net/project/squirrelmail/locales/1.4.18-20090526/ja_JP-1.4.18-20090526.tar.gz
--2013-07-18 20:14:09-- http://jaist.dl.sourceforge.net/project/squirrelmail/locales/1.4.18-20090526/ja_JP-1.4.18-20090526.tar.gz
jaist.dl.sourceforge.net をDNSに問いあわせています... 150.65.7.130
jaist.dl.sourceforge.net|150.65.7.130|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 116315 (114K) [application/x-gzip]
`ja_JP-1.4.18-20090526.tar.gz' に保存中
100%[======================================>] 116,315 --.-K/s 時間 0.1s
2013-07-18 20:14:10 (1.05 MB/s) - `ja_JP-1.4.18-20090526.tar.gz' へ保存完了 [116315/116315]
ダウンロードしたファイルを解凍、インストールします。
[root@co locales]# tar zxvf ja_JP-1.4.18-20090526.tar.gz
[root@co locales]# ./install
Please enter path to your squirrelmail installation:/var/www/webmail (SquirrelMailのインストール先)
解凍したら、ダウンロードしたファイルを削除します。
[root@co locales]# cd
[root@co ~]# rm -rf locales ja_JP-1.4.18-20090526.tar.gz
squirrelmail.poを作成します。
[root@co ~]# cd /var/www/webmail/po/
[root@co po]# ./compilepo ja_JP
Compiling ../locale/ja_JP/LC_MESSAGES/squirrelmail.po
最後に、パーミッションと所有者の設定をします。
[root@co po]# cd
[root@co ~]# chmod 730 /var/www/webmail/data/
[root@co ~]# chown -R apache:apache /var/www/webmail/data/
プラグインのダウンロード
SquirrelMailには、便利な機能を追加するプラグインが数多く用意されています。その中から今回は以下の4つを準備します。
- ・Compatibility:プラグインを全てのバージョンのSquirrelMailで動作させる
- ・Empty Trash :ユーザのTrashフォルダの中を自動的に削除する
- ・Secure Login :ログイン時にSSLを有効にする
- ・View As HTML :メール閲覧をHTML形式またはテキスト形式で行うか選択するリンクを表示する
尚、更新されている場合もあるので、SquirrelMailの公式ページで最新版を確認し、ダウンロードしてください。
[root@co ~]# wget http://www.squirrelmail.org/plugins/compatibility-2.0.16-1.0.tar.gz
--2013-07-18 20:16:34-- http://www.squirrelmail.org/plugins/compatibility-2.0.16-1.0.tar.gz
www.squirrelmail.org をDNSに問いあわせています... 82.94.230.148
www.squirrelmail.org|82.94.230.148|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 41497 (41K) [application/x-gzip]
`compatibility-2.0.16-1.0.tar.gz' に保存中
100%[======================================>] 41,497 46.8K/s 時間 0.9s
2013-07-18 20:16:36 (46.8 KB/s) - `compatibility-2.0.16-1.0.tar.gz' へ保存完了 [41497/41497]
[root@co ~]# wget http://www.squirrelmail.org/plugins/empty_trash-2.0-1.2.2.tar.gz
--2013-07-18 20:17:55-- http://www.squirrelmail.org/plugins/empty_trash-2.0-1.2.2.tar.gz
www.squirrelmail.org をDNSに問いあわせています... 82.94.230.148
www.squirrelmail.org|82.94.230.148|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 14113 (14K) [application/x-gzip]
`empty_trash-2.0-1.2.2.tar.gz' に保存中
100%[======================================>] 14,113 23.1K/s 時間 0.6s
2013-07-18 20:17:57 (23.1 KB/s) - `empty_trash-2.0-1.2.2.tar.gz' へ保存完了 [14113/14113]
[root@co ~]# wget http://www.squirrelmail.org/plugins/secure_login-1.4-1.2.8.tar.gz
--2013-07-18 20:18:45-- http://www.squirrelmail.org/plugins/secure_login-1.4-1.2.8.tar.gz
www.squirrelmail.org をDNSに問いあわせています... 82.94.230.148
www.squirrelmail.org|82.94.230.148|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 16993 (17K) [application/x-gzip]
`secure_login-1.4-1.2.8.tar.gz' に保存中
100%[======================================>] 16,993 30.0K/s 時間 0.6s
2013-07-18 20:18:47 (30.0 KB/s) - `secure_login-1.4-1.2.8.tar.gz' へ保存完了 [16993/16993]
[root@co ~]# wget http://www.squirrelmail.org/plugins/view_as_html-3.8.tar.gz
--2013-07-18 20:19:30-- http://www.squirrelmail.org/plugins/view_as_html-3.8.tar.gz
www.squirrelmail.org をDNSに問いあわせています... 82.94.230.148
www.squirrelmail.org|82.94.230.148|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 4715 (4.6K) [application/x-gzip]
`view_as_html-3.8.tar.gz' に保存中
100%[======================================>] 4,715 16.2K/s 時間 0.3s
2013-07-18 20:19:31 (16.2 KB/s) - `view_as_html-3.8.tar.gz' へ保存完了 [4715/4715]
ダウンロードしたファイルをSquirrelMailのPluginsディレクトリに解凍します。
[root@co ~]# cd /var/www/webmail/plugins/
[root@co plugins]# tar zxvf /root/compatibility-2.0.16-1.0.tar.gz
[root@co plugins]# tar zxvf /root/empty_trash-2.0-1.2.2.tar.gz
[root@co plugins]# tar zxvf /root/secure_login-1.4-1.2.8.tar.gz
[root@co plugins]# tar zxvf /root/view_as_html-3.8.tar.gz
解凍したら、ダウンロードしたファイルを削除します。
[root@co plugins]# cd
[root@co ~]# rm -f compatibility-2.0.16-1.0.tar.gz
[root@co ~]# rm -f empty_trash-2.0-1.2.2.tar.gz
[root@co ~]# rm -f secure_login-1.4-1.2.8.tar.gz
[root@co ~]# rm -f view_as_html-3.8.tar.gz
SquirrelMailの設定
設定用のスクリプトが用意されているので、そちらを利用して設定を行います。
[root@co ~]# /var/www/webmail/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 off
S Save data
Q Quit
Command >> 1 (1. Organization Preferences)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
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 off
S Save data
Q Quit
Command >> 5 (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 (ログアウト後、ログインページを表示する)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
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 : /webmail
6. Top Frame : _top
7. Provider link : http://www.squirrelmail.org/
8. Provider name : SquirrelMail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> r (メインメニューへ戻る)
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 off
S Save data
Q Quit
Command >> 2 (2. Server Settings)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : example.com
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 1 (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.
[example.com]: kimamabi.mydns.jp (ドメイン名を入力)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : kimamabi.mydns.jp
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> r (メインメニューに戻る)
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 off
S Save data
Q Quit
Command >> 4 (4. General Options)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : /var/local/squirrelmail/data/
2. Attachment Directory : /var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : true
17. Disable secure forms : false
18. Page referal requirement :
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 7 (7. Hide SM attributions)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : /var/local/squirrelmail/data/
2. Attachment Directory : /var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : true
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : true
17. Disable secure forms : false
18. Page referal requirement :
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 16 (16. Only secure cookies if poss.)
This option allows you to specify that if a user session is initiated
under a secure (HTTPS, SSL-encrypted) connection, the cookies given to
the browser will ONLY be transmitted via a secure connection henceforth.
Generally this is a Good Thing, and should NOT be disabled. However,
if you intend to use the Secure Login or Show SSL Link plugins to
encrypt the user login, but not the rest of the SquirrelMail session,
this can be turned off. Think twice before doing so.
Transmit cookies only on secure connection when available? (y/n) [y]: n (secure_loginプラグインによるログイン失敗を防止)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : /var/local/squirrelmail/data/
2. Attachment Directory : /var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : true
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : false
17. Disable secure forms : false
18. Page referal requirement :
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 1 (1. Data Directory)
Specify the location for your data directory.
The path name can be absolute or relative (to the config directory).
You probably need to create this directory yourself. Here are two examples:
Absolute: /var/local/squirrelmail/data/
Relative: ../data/
Relative paths to directories outside of the SquirrelMail distribution
will be converted to their absolute path equivalents in config.php.
Note: There are potential security risks with having a writable directory
under the web server's root directory (ex: /home/httpd/html).
For this reason, it is recommended to put the data directory
in an alternate location of your choice.
[/var/local/squirrelmail/data/]: ../data/
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : ../data/
2. Attachment Directory : /var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : true
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : false
17. Disable secure forms : false
18. Page referal requirement :
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 2 (2. Attachment Directory)
Path to directory used for storing attachments while a mail is
being sent. The path name can be absolute or relative (to the config directory).
It doesn't matter. Here are two examples:
Absolute: /var/spool/squirrelmail/attach/
Relative: ../attach/
Relative paths to directories outside of the SquirrelMail distribution
will be converted to their absolute path equivalents in config.php.
Note: There are a few security considerations regarding this
directory:
1. It should have the permission 733 (rwx-wx-wx) to make it
impossible for a random person with access to the webserver
to list files in this directory. Confidential data might
be laying around in there.
Depending on your user:group assignments, 730 (rwx-wx---)
may be possible, and more secure (e.g. root:apache)
2. Since the webserver is not able to list the files in the
content is also impossible for the webserver to delete files
lying around there for too long.
3. It should probably be another directory than the data
directory specified in option 3.
[/var/local/squirrelmail/attach/]: $data_dir
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : ../data/
2. Attachment Directory : $data_dir/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : true
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID
15. Location base :
16. Only secure cookies if poss. : false
17. Disable secure forms : false
18. Page referal requirement :
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> r (メインメニューに戻る)
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 >> 3 (3. Folder Defaults)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Folder Defaults
1. Default Folder Prefix :
2. Show Folder Prefix Option : false
3. Trash Folder : INBOX.Trash
4. Sent Folder : INBOX.Sent
5. Drafts Folder : INBOX.Drafts
6. By default, move to trash : true
7. By default, save sent messages : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : true
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 3 (3. Trash Folder)
You can now specify where the default trash folder is located.
On servers where you do not want this, you can set it to anything
and set option 6 to false.
This is relative to where the rest of your email is kept. You do
not need to worry about their mail directory. If this folder
would be ~/mail/trash on the filesystem, you only need to specify
that this is 'trash', and be sure to put 'mail/' in option 1.
[INBOX.Trash]: Trash
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Folder Defaults
1. Default Folder Prefix :
2. Show Folder Prefix Option : false
3. Trash Folder : Trash
4. Sent Folder : INBOX.Sent
5. Drafts Folder : INBOX.Drafts
6. By default, move to trash : true
7. By default, save sent messages : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : true
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 4 (4. Sent Folder)
This is where messages that are sent will be stored. SquirrelMail
by default puts a copy of all outgoing messages in this folder.
This is relative to where the rest of your email is kept. You do
not need to worry about their mail directory. If this folder
would be ~/mail/sent on the filesystem, you only need to specify
that this is 'sent', and be sure to put 'mail/' in option 1.
[INBOX.Sent]: Sent
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Folder Defaults
1. Default Folder Prefix :
2. Show Folder Prefix Option : false
3. Trash Folder : Trash
4. Sent Folder : Sent
5. Drafts Folder : INBOX.Drafts
6. By default, move to trash : true
7. By default, save sent messages : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : true
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 5 (5. Drafts Folder)
You can now specify where the default draft folder is located.
On servers where you do not want this, you can set it to anything
and set option 9 to false.
This is relative to where the rest of your email is kept. You do
not need to worry about their mail directory. If this folder
would be ~/mail/drafts on the filesystem, you only need to specify
that this is 'drafts', and be sure to put 'mail/' in option 1.
[INBOX.Drafts]: Drafts
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Folder Defaults
1. Default Folder Prefix :
2. Show Folder Prefix Option : false
3. Trash Folder : Trash
4. Sent Folder : Sent
5. Drafts Folder : Drafts
6. By default, move to trash : true
7. By default, save sent messages : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : true
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> r (メインメニューに戻る)
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 off
S Save data
Q Quit
Command >> 8 (8. Plugins)
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
Available Plugins:
1. administrator
2. bug_report
3. calendar
4. compatibility
5. delete_move_next
6. demo
7. empty_trash
8. filters
9. fortune
10. info
11. listcommands
12. mail_fetch
13. message_details
14. newmail
15. secure_login
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
21. view_as_html
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 4 (compatibilityを有効にする)
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
Available Plugins:
2. administrator
3. bug_report
4. calendar
5. delete_move_next
6. demo
7. empty_trash
8. filters
9. fortune
10. info
11. listcommands
12. mail_fetch
13. message_details
14. newmail
15. secure_login
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
21. view_as_html
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 7 (empty_trashを有効にする)
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
2. empty_trash
Available Plugins:
3. administrator
4. bug_report
5. calendar
6. delete_move_next
7. demo
8. filters
9. fortune
10. info
11. listcommands
12. mail_fetch
13. message_details
14. newmail
15. secure_login
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
21. view_as_html
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 15 (secure_loginを有効にする)
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
2. empty_trash
3. secure_login
Available Plugins:
4. administrator
5. bug_report
6. calendar
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details
15. newmail
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
21. view_as_html
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 21 (view_as_htmlを有効にする)
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
2. empty_trash
3. secure_login
4. view_as_html
Available Plugins:
5. administrator
6. bug_report
7. calendar
8. delete_move_next
9. demo
10. filters
11. fortune
12. info
13. listcommands
14. mail_fetch
15. message_details
16. newmail
17. sent_subfolders
18. spamcop
19. squirrelspell
20. test
21. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> r (メインメニューに戻る)
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 off
S Save data
Q Quit
Command >> 10 (10. Languages)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
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 off
S Save data
Q Quit
Command >> 1 (1. Default Language)
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 (日本語に設定)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
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 off
S Save data
Q Quit
Command >> 2 (2. Default Charset)
This option controls what character set is used when sending
mail and when sending HTML to the browser.
This option is used only when default language is 'en_US'.
[iso-8859-1]: iso-2022-jp (文字コードをiso-2022-jpに設定)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language : ja_JP
2. Default Charset : iso-2022-jp
3. Enable lossy encoding : false
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> q (Quit)
Save? [Y/n]: y (設定を保存する)
Data saved in config.php
Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!
プラグイン設定ファイルのコピー
empty_trashとsecure_loginプラグインの設定ファイルをサンプルからコピーします。
[root@co ~]# cp /var/www/webmail/plugins/empty_trash/config_example.php cp /var/www/webmail/plugins/empty_trash/config.php
[root@co ~]# cp /var/www/webmail/plugins/secure_login/config.sample.php /var/www/webmail/plugins/secure_login/config.php
[root@co ~]# vi /var/www/webmail/plugins/secure_login/config.php
$change_back_to_http_after_login = 1;
↓
$change_back_to_http_after_login = 0; (ログイン後も暗号化通信を継続する)
Apacheの設定
SquirrelMailのディレクトリにアクセスするための設定ファイルを作成します。
[root@co ~]# vi /etc/httpd/conf.d/webmail.conf
Alias /webmail /var/www/webmail
<Directory /var/www/webmail>
AllowOverride Limit
</Directory>
Apacheの再起動
SquirrelMailの設定を読み込ませるため、Apacheを再起動します。
[root@co ~]# /etc/rc.d/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: [ OK ]
ブラウザからアクセス
ブラウザから、http://サーバのIPアドレス/webmailを開きます。
今回新しく登場したコマンド
[広告]

トップページ
Rocky Linux 8
CentOS 7
Scientific Linux 6
CentOS 5
○準備
○VMware Player
○Hyper-V(Win Proのみ)
○導入
○セキュリティ対策
○Dynamic DNS
○NTPサーバ
○データベース
○WEBサーバ
○FTPサーバ
○メールサーバ
○DNSサーバ
○ファイルサーバ
○ブログシステム
○その他
ブログ
[広告]