Acceso web
Instalar y configurar Squirrelmail
SquirrelMail es una aplicación webmail creada por Nathan y Luke Ehresman y escrita en PHP. Puede ser instalado en la mayoría de servidores web siempre y cuando éste soporte PHP y el servidor web tenga acceso a un servidor IMAP y a otro SMTP.
$ sudo apt-get install squirrelmail
Ahora pasaremos a configurar squirrelmail y estariamos terminando 🙂 Ejecutamos:
$ squirrelmail-configure
Esto nos abrira el asistente de configuracion de squirrelmail
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >> D
Finalmente configuraremos el servidor. Para ello seleccionaremos la opción 2 y a continuación la opción 1 para configurar el FQDN de nuestro servidor, en el cual pondremos nuestro dominio misitio.com”
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')))
2. Invert Time : false
3. Sendmail or SMTP : SMTP
A. Update IMAP Settings : localhost:143 (courier)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> 1
Con lo que obtendremos este resultado final:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : misitio.com
2. Invert Time : false
3. Sendmail or SMTP : SMTP
A. Update IMAP Settings : localhost:143 (courier)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> q
You have not saved your data.
Save? [Y/n]: y
Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!
Configuraciones necesarias
- Agregar el subdominio
email.misitio.com
al registroDNS
- Editar el archivo de
apache
para direccionar al directorio correcto.
Una vez configurado squirrel, crearemos un enlace simbolico de squirrel al directorio DocumentRoot de apache, es decir, en este caso, /var/www/html/webmail
Con eso conseguiremos poder acceder a squirrel de forma sencilla.
sudo ln -s /usr/share/squirrelmail/ /var/www/html/webmail
Con esto, podemos acceder mediante nuestro explorador web a http://127.0.0.1/webmail para acceder a la página de squirrel.
Configuraciones personalizadas
- Agregar email con un subdominio
- Agregar al registro
DNS
, el subdominio