以下のコマンドを実行します。
# cd /usr/share/squirrelmail
# ./configure
以下が表示されます。
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 (LDAP)
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
Comand >> 4
4を入力し General Options を選択します。
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory :/usr/share/squirrelmail/data/
/usr/share/squirrelmail/data/に変更します。
2. Attachement Directory :/var/tmp/attach/
/var/tmp/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 on
S Save data
Q Quit
Comand >> R
Rを選択します。
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books (LDAP)
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
Comand >> 10
10を選択し、日本語利用を設定します。
SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language : ja_JP
ja_JPに変更します。
2. Default Charset : iso-2022-jp
iso-2022-jpに変更します。
3. Enable lossy encoding : false
R Return to Main Menu
C. Turn color on
S Save data
Q Quit
Comand >> Q
Qで終了します。
プラグイン間の互換性、新旧バージョンのを互換性を維持する compatibility プラグインを設定します。
# wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fcompatibility-2.0.16-1.0.tar.gz
# cd /usr/share/squirrelmail/plugins/
# tar zxvf /usr/local/src/compatibility-2.0.16-1.0.tar.gz
# /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 >> 8
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. vlogin
Available Plugins:
2. administrator
3. bug_report
4. calendar
5. compatibility
6. delete_move_next
7. demo
8. filters
9. fortune
10. info
11. listcommands
12. mail_fetch
13. message_details
14. newmail
15. sent_subfolders
16. spamcop
17. squirrelspell
18. test
19. translate
20. virtual_hosts
R Return to Main Menu
C Turn color on
S Save data
Q QuitCommand >> 5
compatibility の 5 を入力します。(番号は状態により異なります)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. vlogin
2. compatibility
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. sent_subfolders
16. spamcop
17. squirrelspell
18. test
19. translate
20. virtual_hosts
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> q
You have not saved your data.
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!
VirtualHost での利用を可能にする virtual_hosts プラグインを設定します。
# wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fvirtual_hosts-1.0.tar.gz
# cd /usr/share/squirrelmail/plugins/
# tar zxvf /usr/local/src/virtual_hosts-1.0.tar.gz
# /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 (LDAP)
7. Message of the Day (MOTD)
8. Plugins
9. Database
D. Set pre-defined settings for specific IMAP servers
C. Turn color off
S Save data
Q Quit
Command >> 8
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. empty_trash
5. compatibility
6. change_passwd
7. chg_sasl_passwd
Available Plugins:
8. message_details
9. info
10. administrator
11. translate
12. bug_report
13. virtual_hosts
14. sent_subfolders
15. mail_fetch
16. fortune
17. listcommands
18. calendar
19. filters
20. abook_take
21. spamcop
R Return to Main Menu
C. Turn color off
S Save data
Q Quit
Command >> 13
virtual_hosts の 13を入力します。(番号は状態により異なります)
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. empty_trash
5. compatibility
6. change_passwd
7. chg_sasl_passwd
8. virtual_hosts
Available Plugins:
9. message_details
10. info
11. administrator
12. translate
13. bug_report
14. sent_subfolders
15. mail_fetch
16. fortune
17. listcommands
18. calendar
19. filters
20. abook_take
21. spamcop
R Return to Main Menu
C. Turn color off
S Save data
Q Quit
Command >> q
You have not saved your data.
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!
正しくインストールされたことを確認する準備として httpd.conf に以下の記述を加え、エイリアス設定を行います。
Alias /webmail /usr/share/squirrelmail
<Directory "/webmail">
Order allow,deny
Allow from all
</Directory>
# restart_apache コマンドを実行し apache を再起動します。
http://111.111.111.111/webmail/src/configtest.php にアクセスします。
(111.111.111.111 は仮のデータです。実際はインストールしたサーバーのIPをお使いください。)
以下のように表示されればOKです。
SquirrelMail configtest
This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them.
You need to go run conf.pl in the config/ directory first before you run this script.
SquirrelMail version: 1.4.20
Config file version: 1.4.0
Config file last modified: 20 June 2011 10:38:19
Checking PHP configuration...
PHP version 5.3.6 OK.
display_errors:
error_reporting: 22527
variables_order OK: GPCS.
PHP extensions OK. Dynamic loading is enabled.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: http://111.111.111.111/webmail/src (location base autodetected)
Checking outgoing mail service....
sendmail OK
Checking IMAP service....
IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN] Dovecot ready.)
Capabilities: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY
THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS STARTTLS AUTH=PLAIN
Checking internationalization (i18n) settings...
gettext - Gettext functions are unavailable. SquirrelMail will use slower internal gettext functions.
mbstring - Mbstring functions are available.
recode - Recode functions are unavailable.
iconv - Iconv functions are unavailable.
timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.
Congratulations, your SquirrelMail setup looks fine to me!
Login now
問題があることが表示される場合は内容に応じ修正ください。