SquirrelMail 14.20


1. 各種インストール

portsを使ってインストールします。

# portinstall /usr/ports/mail/squirrelmail

2. PHPの設定

# cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini

/usr/local/etc/php.iniの変更点

session.auto_start = 1
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = SJIS
mbstring.detect_order = auto

3. Apacheの設定

/usr/local/etc/apache22/httpd.confを編集します。

以下の行が追加されていることを確認します。

LoadModule php5_module        libexec/apache22/libphp5.so

以下の内容を追加します。

<Directory "/usr/local/www/squirrelmail">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule alias_module>
    Alias /mail/ "/usr/local/www/squirrelmail/"
</IfModule>

<IfModule mime_module>
    AddType application/x-httpd-php .php
</IfModule>

以下のようにインデックスにindex.phpを加えます。

    DirectoryIndex index.html index.shtml index.php

4. SquirrelMailの設定

# cd /usr/local/www/squirrelmail
# ./configure

1. Organization Preferences

Organization Preferences
1.  Organization Name      : Next-Hop Web Mail
2.  Organization Logo      : ../images/sm_logo.png
3.  Org. Logo Width/Height : (308/111)
4.  Organization Title     : Next-Hop Web Mail Beta
5.  Signout Page           :
6.  Top Frame              : _top
7.  Provider link          : http://webmail.next-hop.net/mail/
8.  Provider name          : Next-Hop

2. Server Settings

Server Settings

General
-------
1.  Domain                 : next-hop.net
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

A.  Update IMAP Settings   : imap.next-hop.net:993 (cyrus)
B.  Update SMTP Settings   : smtp.next-hop.net:25

A. Update IMAP Settings

IMAP Settings
--------------
4.  IMAP Server            : imap.next-hop.net
5.  IMAP Port              : 993
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : true
8.  Server software        : cyrus
9.  Delimiter              : detect

B. Update SMTP Settings

SMTP AUTHではうまく行かないようなので使いません。

SMTP Settings
-------------
4.   SMTP Server           : smtp.next-hop.net
5.   SMTP Port             : 25
6.   POP before SMTP       : false
7.   SMTP Authentication   : none
8.   Secure SMTP (TLS)     : false
9.   Header encryption key :

3. Folder Defaults

imapd.confでunixhierarchysepをyesにしている場合は各フォルダの セパレータを/(スラッシュ)に変更します。

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

4. General Options

スレッド表示を有効にします。

General Options
1.  Data Directory               : /var/spool/squirrelmail/pref/
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
    Allow editing of name        : true
    Remove username from header  : false
10. Allow server thread sort     : true   <===
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

5. Themes

変更せず

6. Address Books

変更せず

7. Message of the Day (MOTD)

変更せず

8. Plugins

変更せず

9. Database

変更せず

10. Languages

Language preferences
1.  Default Language       : ja_JP
2.  Default Charset        : utf-8
3.  Enable lossy encoding  : false

5. 反映

Apacheを再起動します。

# /usr/local/etc/rc.d/apache22 stop
# /usr/local/etc/rc.d/apache22 start

6. 使用

http://webmail.next-hop.net/mail/