5.2.1. Squirrelmail

Instalação

server:~# apt-get install squirrelmail

Configuração

A instalação do squirrelmail cria um ficheiro de configuração que deve ser colocado na directoria de configuração do apache2:

server:~# ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf

Forçar ligações seguras

Caso o servidor apache2 permita ligações seguras, é possível forçar a sua utilização. Fica assim reforçada a segurança no acesso ao servidor webmail.

Em primeiro ligar, deve ser activado o módulo rewrite do apache. Este módulo permite re-escrever um endereço Internet (URL):

server:~# a2enmod rewrite

Em seguida, a configuração do apache deve ser alterada, para que passe a utilizar uma ligação segura (protocolo https) sempre que alguém tentar aceder à interface webmail. A alteração é feita no ficheiro de configuração /etc/apache2/conf.d/squirrelmail.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 /squirrelmail>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>

Por fim, reiniciar o serviço apache2:

server:~# /etc/init.d/apache2 restart

Verificação

Utilizando um navegador, insira o endereço se acesso à interface webmail http://192.168.1.100/squirrelmail:

squirrelmail_login.png

O endereço deverá ser reescrito para utilizar o protocolo https e poderá efectuar o login e gerir o correio de uma forma totalmente segura.

NOTA:
O squirrelmail é uma interface de webmail muito poderosa e muito configurável. É possível, por exemplo, expandir as funcionalidades recorrendo a "plugins", que suportam calendários, livros de endereços, filtros de mensagens, e muito mais. Para personalizar o squirrelmail pode ser utilizado o comando squirrelmail-configure.

Links relacionados


BlinkListblogmarksco.mmentsconnoteadel.icio.usdiggFarkfeedmelinksFurlLinkaGoGoMa.gnoliaNewsVineNetvouzRedditSimpySpurlWistsYahooMyWebFacebook

Comentários

Add a new comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License