≪ トップ |
2005年11月17日
SquirrelMail インストール
CentOS では yum でインストール出来るので、yum でインストールしました。今のところ、文字化けなども無く快適に使用出来ています。
設定スクリプト実行
入力+Enter キー
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 >> 1
ログアウトしたらログインページに戻るようにする
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. Default Language : en_US 7. Top Frame : _top 8. Provider link : http://www.squirrelmail.org/ 9. Provider name : SquirrelMail
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 5
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. Default Language : en_US 7. Top Frame : _top 8. Provider link : http://www.squirrelmail.org/ 9. Provider name : SquirrelMail
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 6
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) --------------------------------------------------------- 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. Default Language : ja_JP 7. Top Frame : _top 8. Provider link : http://www.squirrelmail.org/ 9. 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 (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 >> 2
ドメイン名設定
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- 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 off S Save data Q Quit
Command >> 1
The domain name is the suffix at the end of all email addresses. If for example, your email address is jdoe@myorg.com, then your domain would be myorg.com.
[localhost]: wave440.com
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings
General ------- 1. Domain : wave440.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 off S Save data Q Quit
Command >> 3
You now need to choose the method that you will use for sending messages in SquirrelMail. You can either connect to an SMTP server or use sendmail directly.
1. Sendmail 2. SMTP Your choice [1/2] [1]: 2
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings
General ------- 1. Domain : wave440.com 2. Invert Time : false 3. Sendmail or SMTP : SMTP
A. Update IMAP Settings : localhost:143 (uw) B. Update SMTP Settings : localhost:25
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> a
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings
General ------- 1. Domain : wave440.com 2. Invert Time : false 3. Sendmail or SMTP : SMTP
IMAP Settings -------------- 4. IMAP Server : localhost 5. IMAP Port : 143 6. Authentication type : login 7. Secure IMAP (TLS) : false 8. Server software : uw 9. Delimiter : /
B. Update SMTP Settings : localhost:25 H. Hide IMAP Server Settings
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 8
Each IMAP server has its own quirks. As much as we tried to stick to standards, it doesn't help much if the IMAP server doesn't follow the same principles. We have made some work-arounds for some of these servers. If you would like to use them, please select your IMAP server. If you do not wish to use these work-arounds, you can set this to "other", and none will be used. cyrus = Cyrus IMAP server uw = University of Washington's IMAP server exchange = Microsoft Exchange IMAP server courier = Courier IMAP server macosx = Mac OS X Mailserver other = Not one of the above servers [uw]: courier
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings
General ------- 1. Domain : wave440.com 2. Invert Time : false 3. Sendmail or SMTP : SMTP
IMAP Settings -------------- 4. IMAP Server : localhost 5. IMAP Port : 143 6. Authentication type : login 7. Secure IMAP (TLS) : false 8. Server software : courier 9. Delimiter : /
B. Update SMTP Settings : localhost:25 H. Hide IMAP Server Settings
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 (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 >> d
SquirrelMail Configuration : Read: config.php --------------------------------------------------------- While we have been building SquirrelMail, we have discovered some preferences that work better with some servers that don't work so well with others. If you select your IMAP server, this option will set some pre-defined settings for that server.
Please note that you will still need to go through and make sure everything is correct. This does not change everything. There are only a few settings that this will change.
Please select your IMAP server: cyrus = Cyrus IMAP server uw = University of Washington's IMAP server exchange = Microsoft Exchange IMAP server courier = Courier IMAP server macosx = Mac OS X Mailserver quit = Do not change anything Command >> courier
imap_server_type = courier default_folder_prefix = INBOX. trash_folder = Trash sent_folder = Sent draft_folder = Drafts show_prefix_option = false default_sub_of_inbox = false show_contain_subfolders_option = false optional_delimiter = . delete_folder = true
Press any key to continue...空Enter
上記で設定した courier のデフォルトでは、ログイン時に
エラー: 要求を完了できませんでした。
問合せ: CREATE "Sent"
理由:Invalid mailbox name.
というエラーが出てしまうので、下記のように修正しています。
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 >> 3
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Folder Defaults 1. Default Folder Prefix : INBOX. 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, move to sent : 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 : false 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 : true 18. Enable /NoSelect folder fix : false
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 1
Some IMAP servers (UW, for example) store mail and folders in your user space in a separate subdirectory. This is where you specify what that directory is.
EXAMPLE: mail/ NOTE: If you use Cyrus, or some server that would not use this option, you must set this to 'none'.
[INBOX.]: none
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, move to sent : 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 : false 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 : true 18. Enable /NoSelect folder fix : false
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 3
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.
[Trash]: INBOX.Trash
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 : Sent 5. Drafts Folder : Drafts 6. By default, move to trash : true 7. By default, move to sent : 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 : false 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 : true 18. Enable /NoSelect folder fix : false
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 4
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.
[Sent]: INBOX.Sent
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 : Drafts 6. By default, move to trash : true 7. By default, move to sent : 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 : false 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 : true 18. Enable /NoSelect folder fix : false
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 5
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.
[Drafts]: INBOX.Drafts
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, move to sent : 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 : false 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 : true 18. Enable /NoSelect folder fix : false
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 (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 >> 4
文字コード変更
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- General Options 1. Default Charset : iso-8859-1 2. Data Directory : /var/lib/squirrelmail/prefs/ 3. Attachment Directory : /var/spool/squirrelmail/attach/ 4. Directory Hash Level : 0 5. Default Left Size : 150 6. Usernames in Lowercase : false 7. Allow use of priority : true 8. Hide SM attributions : false 9. Allow use of receipts : true 10. Allow editing of identity : true/true 11. Allow server thread sort : true 12. Allow server-side sorting : true 13. Allow server charset search : true 14. Enable UID support : true 15. PHP session name : SQMSESSID
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 1
This option controls what character set is used when sending mail and when sending HTML to the browser. Do not set this to US-ASCII, use ISO-8859-1 instead. For cyrillic, it is best to use KOI8-R, since this implementation is faster than most of the alternatives
[iso-8859-1]: iso-2022-jp
ログインページでSquirrelMailのバージョンを表示しないようにするならば、
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- General Options 1. Default Charset : iso-2022-jp 2. Data Directory : /var/lib/squirrelmail/prefs/ 3. Attachment Directory : /var/spool/squirrelmail/attach/ 4. Directory Hash Level : 0 5. Default Left Size : 150 6. Usernames in Lowercase : false 7. Allow use of priority : true 8. Hide SM attributions : false 9. Allow use of receipts : true 10. Allow editing of identity : true/true 11. Allow server thread sort : true 12. Allow server-side sorting : true 13. Allow server charset search : true 14. Enable UID support : true 15. PHP session name : SQMSESSID
R Return to Main Menu C. Turn color off S Save data Q Quit
Command >> 8
Hide SM attributions (y/n) [n]: y
SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- General Options 1. Default Charset : iso-2022-jp 2. Data Directory : /var/lib/squirrelmail/prefs/ 3. Attachment Directory : /var/spool/squirrelmail/attach/ 4. Directory Hash Level : 0 5. Default Left Size : 150 6. Usernames in Lowercase : false 7. Allow use of priority : true 8. Hide SM attributions : true 9. Allow use of receipts : true 10. Allow editing of identity : true/true 11. Allow server thread sort : true 12. Allow server-side sorting : true 13. Allow server charset search : true 14. Enable UID support : true 15. PHP session name : SQMSESSID
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 (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 >> s
Data saved in config.php Press enter to continue...空Enter
設定スクリプト終了
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 >> q
プラグインの導入
Compatibilityプラグイン:プラグインを全てのバージョンのSquirrelMailでそのまま動くようにする。
Empty Trashプラグイン:ゴミ箱フォルダを自動的に空にする。
Secure Loginプラグイン:ログイン時に自動的にhttps(SSL)でアクセスする。
ダウンロード
SquirrelMailプラグインディレクトリへ移動
解凍
削除
SquirrelMail設定スクリプト実行
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
Available Plugins:
4. fortune
5. mail_fetch
6. spamcop
7. message_details
8. info
9. filters
10. bug_report
11. compatibility
12. listcommands
13. administrator
14. empty_trash
15. secure_login
16. calendar
17. translate
18. sent_subfolders
19. abook_take
R Return to Main Menu
C. Turn color off
S Save data
Q Quit
Command >> 11SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. compatibility
Available Plugins:
5. fortune
6. mail_fetch
7. spamcop
8. message_details
9. info
10. filters
11. bug_report
12. listcommands
13. administrator
14. empty_trash
15. secure_login
16. calendar
17. translate
18. sent_subfolders
19. abook_take
R Return to Main Menu
C. Turn color off
S Save data
Q Quit
Command >> 14SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. compatibility
5. empty_trash
Available Plugins:
6. fortune
7. mail_fetch
8. spamcop
9. message_details
10. info
11. filters
12. bug_report
13. listcommands
14. administrator
15. secure_login
16. calendar
17. translate
18. sent_subfolders
19. abook_take
R Return to Main Menu
C. Turn color off
S Save data
Q Quit
Command >> 15あと、以下をして終了
Command >> r Command >> s Command >> q
サンプルより設定ファイルコピー
php-mbstringインストール
php設定ファイル編集
行頭の;を削除(コメントアウト解除)
Webサーバーをリロード
アクセスは、http://サーバ名/webmail/
yum で squirrelmail をインストールすると、依存関係で exim もインストールされます。インストールしただけの状態では起動していないのですが、サーバ機を再起動すると起動してしまうので、起動しないようにしています。
[root@server ~]# chkconfig --list exim
投稿者 ゆう : 2005年11月17日 14:29 | カテゴリー CentOS (27)
トラックバック
http://www.wave440.com/blog/mt-trbk.cgi/153
このリストは、次のエントリーを参照しています: SquirrelMail インストール:
» PHPにおける文字化け from Shoulder.jp
1.Apacheでの設定(実行環境)
[続きを読む]トラックバック時刻: 2006年06月01日 08:23