ウチでは自メールサーバと同じサーバに設置し
自メールサーバを参照するのでその設定。
./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 >>
必要項目を設定。
D.→dovecot ウチはDovecotなのでdovecotを指定。 2.→1.example.jp 2.→A.→4.localhost 6.cram-md5 IMAPサーバの設定と指定が正しければ候補が出てくる。 7.false 8.dovecot →B.→4.localhost 7.cram-md5 認証をどうするか尋ねられるのでIMAPサーバの認証を使うようにする。 8.false 10.→1.ja_JP
Webアクセス出来るようにApache側の設定を行ってWeb上でテスト。
http://www.example.jp/hogehuga/src/configtest.php
にアクセスする。
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: xx xxx xxxx xx:xx:xx Checking PHP configuration... PHP version 5.3.2 OK. display_errors: error_reporting: 22527 variables_order OK: GPCS. PHP extensions OK. Dynamic loading is disabled. ERROR: You have configured PHP not to allow short tags (short_open_tag=off). This shouldn't be a problem with SquirrelMail or any plugin coded coded according to the SquirrelMail Coding Guidelines, but if you experience problems with PHP code being displayed in some of the pages and changing setting to "on" solves the problem, please file a bug report against the failing plugin. The correct contact information is most likely to be found in the plugin documentation. エラーになっているのだが<?php ?>と書けよと思っているので無視。 Checking paths... Data dir OK. Attachment dir OK. Plugins are not enabled in config. Themes OK. Default language OK. Base URL detected as: https://www.example.jp/sm/src (location base autodetected) Checking outgoing mail service.... SMTP server OK (220 smtp.example.jp ESMTP Postfix) Checking IMAP service.... IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN- REFERRALS ID ENABLE AUTH=CRAM-MD5 AUTH=NTLM 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 AUTH=CRAM-MD5 AUTH=NTLM AUTH=PLAIN Checking internationalization (i18n) settings... gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled. mbstring - Mbstring functions are available. recode - Recode functions are unavailable. iconv - Iconv functions are available. 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
経路暗号化についてはHTTPSで対応。
PHP<->メールサーバはループバック内の通信なので放置。