SquirrelMail unter Debian 6.0
Installation
# apt-get install squirrelmail squirrelmail-decode ingerman wngerman
SquirrelMail-Konfiguration
# /usr/sbin/squirrelmail-configure
2 (Server Settings)
A (IMAP Settings)
8 (Server software)
dovecot
R (Return to Main Menu)
3 (Folder Defaults)
3 (Trash Folder)
Trash
4 (Sent Folder)
Sent
5 (Drafts Folder)
Drafts
R (Return to Main Menu)
10 (Languages)
1 (Default Language)
de_DE
S (Save data)
Q (Quit)
Apache-Konfiguration
Basis-Pfad für
URL auf
webmail anstatt
squirrelmail festlegen:
# vi /etc/squirrelmail/apache.conf
Alias /webmail /usr/share/squirrelmail
# vi /etc/squirrelmail/apache.conf
[...]
<Directory /usr/share/squirrelmail>
Order allow,deny
Allow from all
# vi /etc/squirrelmail/apache.conf
[...]
# redirect to https when available (thanks omen@descolada.dartmouth.edu)
#
# Note: There are multiple ways to do this, and which one is suitable for
# your site's configuration depends. Consult the apache documentation if
# you're unsure, as this example might not work everywhere.
#
<IfModule mod_rewrite.c>
<IfModule mod_ssl.c>
<Location /webmail>
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L]
</Location>
</IfModule>
</IfModule>
# vi /etc/apache2/sites-available/disorganized
<VirtualHost *:443>
[...]
<IfModule mod_rewrite.c>
[...]
# https://webmail.disorganized.de/... -> https://disorganized.de/webmail/...
RewriteCond %{HTTP_HOST} ^webmail.disorganized.de$ [NC]
RewriteRule . https://disorganized.de/webmail%{REQUEST_URI} [R=301,L]
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerName webmail.disorganized.de
Redirect permanent / https://disorganized.de/webmail/
</VirtualHost>
# ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf