Hub local mail

= How to install squirrelmail in Inveneo Server =

This document was written as part of the migration of Fantsuam internal mail system to Inveneo Hub Station. The goal is to have a local mailserver that allows users to exchange messages locally by means of a web interface.

apt-get update
 * Update the apt packages
 * Install davecot-imap squirrelmail postfix mailx

= Configure squirrelmail =


 * Create a virtual domain for apache, move the /etc/squirrelmail/apache.conf to /etc/apache2/sites-enabled This will ensure that squirrelmail is reachable via apache2

mv etc/squirrelmail/apache.conf etc/apache2/sites-enabled/1-squirrelmail

= Squid and Apache = As Squid and apache run in the same machine a few changes are needed.

edit /etc/apache2/ports.conf change Listen 80 for Listen 8080
 * As Squid3 is running a iptables redirect rule to all WWW requests, it is needed to change the default port of Apache2


 * Edit squirrelmail configuration file, this are the important values to change for davecot-imap

$imap_server_type      = 'other'; $invert_time           = false; $optional_delimiter    = '.'; $encode_header_key     = '';

$default_folder_prefix         = ''; $trash_folder                  = 'Trash'; $sent_folder                   = 'Sent'; $draft_folder                  = 'Drafts'; $default_move_to_trash         = true; $default_move_to_sent          = true; $default_save_as_draft         = true; $show_prefix_option            = false; $list_special_folders_first    = true; $use_special_folder_color      = true; $auto_expunge                  = true; $default_sub_of_inbox          = true; $show_contain_subfolders_option = false; $default_unseen_notify         = 2; $default_unseen_type           = 1; $auto_create_special           = true; $delete_folder                 = true; $noselect_fix_enable           = false;

$data_dir                = '/etc/squirrelmail/data/'; $attachment_dir          = $data_dir;


 * Edit /etc/mailname to fix the domain of the internal server: zittnet.net
 * Make sure that /etc/squiremail/data is writable by www-data

mkdir /etc/squiremail/data chown -Rf www-data etc/squiremail/data

= PROBLEMS =


 * I found problems with the name server in the hub station, bind9 was given lots of messages regarding lameservers and downloading all the ROOT servers. FIXED! This was the result of not allowing direct DNS queries, it was needed to use the DNS in forwarded mode.


 * I have tried different IMAP implementations, WU-IMAP and Cyrus. Problems took place with the mbox and MailDir formats. (TO CHECK!). Default seetings for davecot seems to work.

Return to Inveneo Hub Server Linux 1.x Return to Main Page