yum install squirrelmail cd /usr/share/squirrelmail/config ./conf.pl
vi /etc/squirrelmail/config.php
: $squirrelmail_default_language = 'zh_TW'; :
cd /usr/share/squirrelmail/plugins wget http://www.squirrelmail.org/plugins/change_pass-2.7a-1.4.x.tar.gz tar -zxvf change_pass-2.7a-1.4.x.tar.gz cd /usr/share/squirrelmail/config ./conf.pl # 選 8. Plugins -> 將 Available Plugins: 內的 change_pass 加入模組 -> 選 S 儲存設定 -> 選 Q 後離開
vi /etc/httpd/conf.d/squirrelmail.conf
: Alias /webmail /usr/share/squirrelmail
service httpd restart
:
<Location /webmail>
order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0
</Location>
:
# 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, just remove this section:
<Directory /usr/share/squirrelmail>
RewriteEngine on
# RewriteCond %{HTTPS} !=on
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
</Directory>
: