差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:mail:squirrelmail [2017/05/26 11:15] – [- 設定 apache 定義檔] jonathan | tech:mail:squirrelmail [2021/01/16 14:38] (目前版本) – 更換 plugin jonathan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== 安裝設定 WebMail (squirrelmail) ====== | ||
| + | ===== - 下載安裝 SquirrelMail ===== | ||
| + | <cli> | ||
| + | yum install squirrelmail | ||
| + | cd / | ||
| + | ./conf.pl | ||
| + | </ | ||
| + | ===== - 手動更改參數檔 ===== | ||
| + | <cli> | ||
| + | vi / | ||
| + | </ | ||
| + | < | ||
| + | : | ||
| + | $squirrelmail_default_language = ' | ||
| + | : | ||
| + | </ | ||
| + | |||
| + | ===== - 安裝提供使用者自行更改密碼的 plugins ===== | ||
| + | < | ||
| + | 先參考 **[[tech: | ||
| + | </ | ||
| + | <cli> | ||
| + | cd / | ||
| + | wget http:// | ||
| + | tar -zxvf change_pass-2.7a-1.4.x.tar.gz | ||
| + | cd / | ||
| + | ./conf.pl | ||
| + | # 選 8. Plugins -> 將 Available Plugins: 內的 change_pass 加入模組 -> 選 S 儲存設定 -> 選 Q 後離開 | ||
| + | </ | ||
| + | |||
| + | ===== - 設定 apache 定義檔 ===== | ||
| + | <cli> | ||
| + | vi / | ||
| + | </ | ||
| + | < | ||
| + | : | ||
| + | Alias /webmail / | ||
| + | </ | ||
| + | |||
| + | <cli> | ||
| + | service httpd restart | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | * 如果只要設定特定 IP 可以存取 webmail 就在這個 squirrelmail.conf 設定檔內增加以下的限制 < | ||
| + | : | ||
| + | < | ||
| + | order deny,allow | ||
| + | Deny from all | ||
| + | Allow from 127.0.0.1 | ||
| + | Allow from 192.168.0 | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | * 如果不希望自動轉至 https 協定, 可以在這個 squirrelmail.conf 設定檔內更改為以下的設定 < | ||
| + | : | ||
| + | # this section makes squirrelmail use https connections only, for this you | ||
| + | # need to have mod_ssl installed. If you want to use unsecure http | ||
| + | # connections, | ||
| + | < | ||
| + | RewriteEngine | ||
| + | # RewriteCond | ||
| + | # RewriteRule (.*) https:// | ||
| + | RewriteCond %{SERVER_PORT} !^443$ | ||
| + | RewriteRule ^/(.*) https:// | ||
| + | </ | ||
| + | : | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 參考網頁 ===== | ||
| + | * [[http:// | ||
| + | * http:// | ||
| + | |||
| + | {{tag> | ||