
Home > Debian > メールサーバ > SquirrelMailの設定
| SquirrelMailの設定 |
SquirrelMailを利用するにあたって、当サイトの設定では、Webサーバ構築、SSL利用可、Postfixの設定、
Dovecotの設定が終了していることが前提になる。以上がOKなら必要なパッケージをインストールする
# apt-get update # apt-get install libapache2-mod-php4 # apt-get install squirrelmail |
squirrelmail-configureコマンドを使用すると設定を行なうことができる
# 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 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 ←2を入力してEnter SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : localhost 2. Invert Time : false 3. Sendmail or SMTP : SMTP A. Update IMAP Settings : localhost:143 (other) B. Update SMTP Settings : localhost:25 R Return to Main Menu C Turn color on S Save data Q Quit Command >> 1 ←1を入力してEnter [localhost]: chibi.name ←ドメイン名を記述 Command >> r ←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 >> 10 ←10と入力してEnter 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 on S Save data Q Quit Command >> 1 ←1と入力してEnter [en_US]: ja_JP ←使用言語の設定 Command >> 2 ←2と入力してEnter [iso-8859-1]: ISO-2022-JP ←Charsetの変更 Command >> r ←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 >> 4 ←4と入力してEnter General Options 1. Data Directory : /var/lib/squirrelmail/data/ 2. Attachment Directory : /var/spool/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/true 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 R Return to Main Menu C Turn color on S Save data Q Quit Command >> 7 ←7と入力してEnter Hide SM attributions (y/n) [n]: y ←バージョン情報を隠す(false→true) Command >> s ←設定を保存 Data saved in config.php Press enter to continue... ←空Enter Command >> q ←終了 |
次にhttpsでしかアクセスできないようにする設定を行なう。これによりログイン情報を暗号化できる。
この編集が終わったら、Apacheを再起動させる
# vi /etc/apache2/conf.d/squirrelmail.conf ←新規で作成 Alias /webmail /usr/share/squirrelmail <Location /webmail> SSLRequireSSL </Location> # /etc/init.d/apache2 restart |
以上で、SquirrelMailにアクセスする際のURLは、https://ドメイン名/webmail/ となる。
http://ではアクセスできない。
なお、SquirrelMail上で登録できるアドレス帳は以下に記録される
/var/lib/squirrelmail/data/ユーザ名.abook
最終更新 : 09/26/2005