webメールを構築する squirrelmailと必要なphp関連をインストール yum install squirrelmail php php-mbstring gedit /etc/httpd/conf.d/squirrelmail.conf 以下の設定をファイルの末尾に設定します。 SSLRequireSSL 設定が終わったらファイルを保存 管理→サービス→httpd を再起動 セキュリティレベルで SELinux ポリシー修正 httpdサービスの「ネットワークに接続するためにHTTPDスクリプトとモジュールを許可する」にチェツクしてOK /usr/share/squirrelmail/config/conf.pl を実行 最初 文字を黒くするため Command>> c 利用する言語を日本語に Command>> 10 言語の設定 Command>> 1 日本語を利用する Command>> ja_JP メニューに戻る Command>> r ドメイン設定をする Command>> 2 メールで利用するドメインを設定 Command>> 1 ドメイン名を書き込む [localhost]: ****.com 設定をセーブする Command>> s 終了 Command>> q ブラウザを立ち上げ確認 https://localhost/wwebmail/ https://****.com/wwebmail/
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
conf.plのServer Settingsの設定を下記のように変更 --------------------------------------------------------- Server Settings General ------- 1. Domain : ドメイン 2. Invert Time : false 3. Sendmail or SMTP : SMTP A. Update IMAP Settings : www.hokuo-photo.jp:143 (other) B. Update SMTP Settings : www.hokuo-photo.jp:25 R Return to Main Menu C Turn color on S Save data Q Quit ----------------------------------------------------------- localhost→FQDN名(ホスト名.ドメイン)に変更することによって解決。
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
squirrelmai バーチャルドメイン対応 Virtual Host Domain Name Managementインストール [root@fedora ~]# wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fvirtual_hosts-1.0.tar.gz ← Virtual Host Domain Name Managementダウンロード [root@fedora ~]# cd /usr/share/squirrelmail/plugins/ ← SquirrelMailプラグインディレクトリへ移動 [root@linux plugins]# tar zxvf /root/virtual_hosts-1.0.tar.gz ← ダウンロードしたファイルを解凍 virtual_hosts/ virtual_hosts/readme.txt virtual_hosts/index.php virtual_hosts/INSTALL virtual_hosts/setup.php [root@linux plugins]# rm -f /root/virtual_hosts-1.0.tar.gz ← ダウンロードしたファイルを削除 [root@linux plugins]# /usr/share/squirrelmail/config/conf.pl ← 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 ← Plugins選択 SquirrelMail Configuration : Read: config.php (1.4.0) ---------------------------------------------------------
Plugins Installed Plugins ***** ***** **** R Return to Main Menu C. Turn color off S Save data Q Quit Command >> 11 ← virtual_hostsの番号を選択(番号は環境によって異なる) SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Plugins Installed Plugins ***** ***** **** R Return to Main Menu C. Turn color off S Save data Q Quit Command >> q ← q応答(設定スクリプト終了) You have not saved your data. Save? [Y/n]: y ← 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! ■Apache設定 https://example.dip.jp/webmail/(https=SSL)でアクセスできるようにする。
[root@linux ~]# vi /etc/httpd/conf.d/ssl.conf ← WebサーバーSSL設定ファイル編集 # Per-Server Logging: # The home of a custom SSL log file. Use this when you want a # compact non-error SSL logfile on a virtual host basis. CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" RewriteEngine On RewriteLog "logs/rewrite_log" RewriteLogLevel 0 RewriteCond %{HTTP_HOST} !fedorasrv.com$ RewriteCond %{REQUEST_URI} !^/webmail/ ← 追加 RewriteRule ^/(.*)?$ http://%{HTTP_HOST}/$1 [L,R] [root@fedora ~]# /etc/rc.d/init.d/httpd restart ← Apache再起動 httpd を停止中: [ OK ] httpd を起動中: [ OK ]
トラックバック
このエントリーのトラックバックURL:
http://jp-kaigo.com/cgi/mt-tb.cgi/8