SQUIRRELMAIL
I'd rather download a newer version than use the one from Ubuntu. They used a RC version, I prefer a stable release.
cd /usr/src
mkdir squirrelmail
cd squirrelmail
wget http://downloads.sourceforge.net/project/squirrelmail/stable/1.4.21/squi...
tar -xvf squirrelmail-1.4.21.tar.gz
mv squirrelmail-1.4.21 /var/www/squirrelmail
mkdir /var/local/squirrelmail
mkdir /var/local/squirrelmail/data/ /var/local/squirrelmail/attach/
chown -R root:www-data /var/local/squirrelmail
chmod -R 0730 /var/local/squirrelmail
#IF YOU WANT A TRANSLATION DO THIS, OR ELSE YOU MAY SKIP IT. I'LL SHOW SPANISH AS AN EXAMPLE
mkdir /usr/src/sqlocales
cd /usr/src/sqlocales
wget http://squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fprdownloads.sou...
tar -xvf all_locales-1.4.18-20090526.tar
rm all_locales-1.4.18-20090526.tar
./install
#You will be asked some questions, answer NO to all of them
#ls /var/www/squirrelmail/locale/ should show you all the locales
In order to activate the langugate you have to run the configure script at /var/www/squirrelmail/configure.pl
## RESUME HERE IF YOU SKIPPED LANGUAGE
nano /etc/apache2/sites-available/webmail.domain.com
### COPY
<VirtualHost *>
ServerAdmin hostmaster@domain.com
ServerName webmail.domain.com
DocumentRoot /var/www/squirrelmail
ErrorLog /var/log/apache2/errores_squirrel
</VirtualHost>
### END COPY
a2ensite webmail.domain.com
cd /var/www/squirrelmail/
./configure
#I'll only give you the important part, you can continue this later on your own:
Go to server settings:
- on domain put your server's hostname
- on sendmail or smtp use sendmail (it's safer)
- provide the sendmail path on B (/usr/sbin/sendmail)
- enable TLS
- on A choose localhost:993
You should not choose dovecot on this config because it'll stop working. Leave it with the default software.
If you enabled https for apache on the earlier step, you should definitely install the secure_login plugin. You can find it here.