Archive for the Squirrelmail Category

SquirrelMail Folder Scan with ClamAV

Posted by Filed Under Squirrelmail with Comments Off

Transferring Mail to IMAP
You may have mail that you want to move to the new IMAP account you created with Postfix and Squirrelmail.  In this case create a directory, in the example OldMail has been created.

The Postfix Training Manual has more information.

If you move mail from a different account, or from another Outlook Express account by either forwarding mail to a folder or drag and drop you may want to scan for viruses.  You can do this manually with clamav.  In this example the virtual mail is located in  /var/vmail and it is a recursive scan “-r” and only going to put infected file discoveries on screen.

clamscan -r –infected /var/vmail

———– SCAN SUMMARY ———–
Known viruses: 806314
Engine version: 0.96.1
Scanned directories: 116
Scanned files: 129
Infected files: 0
Data scanned: 0.24 MB
Data read: 0.24 MB (ratio 1.00:1)
Time: 6.315 sec (0 m 6 s)

SquirrelMail Folders with Outlook

Posted by Filed Under Squirrelmail with Comments Off

Outlook Express and SquirrelMail Folders

The first problem that you may experience with Outlook Express or other email clients is that you have these multiple folders that seem to be duplicated.  The problem is that by default Squirrelmail places folders under the INBOX locations while Outlook and other clients will place them at a top level.  This is a problem that can be easily fixed.

Here you can see the problem in Outlook Express.

This is the way it looks in Squirrelmail with the problem.

The first thing to do is to consolidate your mail directories so that if you have mail in INBOX:Drafts you forward or move it to Drafts.

Once you have consolidated mail then Unsubscribe from the mailbox and upon refresh the mailbox will be removed.

You may also want to remove the unused mailboxes in Outlook Express.

The next thing you want to do is to modify the mailboxes in Squirrelmail.  Execute the configuration script and modify the mailbox directories so that instead of having the prefix INBOX , they are at a top level so they work with your clients.

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

Select Folder defaults.

[INBOX.Sent]: Sent
[INBOX.Drafts]: Drafts

Save the changes in Squirrelmail.

The result will be cleaned up mailboxes and then you can add ones that you want to add.

IMAP and SquirrelMail Install

Posted by Filed Under Squirrelmail with Comments Off

IMAP offers the flexibility that most people want with email. Access mail from different computers, locations and also access from PDAs, TV, etc. IMAP by default stores mail on a central server that provides access to a mail account from anywhere in the world.
SquirrelMail is a standards-based program that offers you an easy way to set up an IMAP web based email server. It is written in PHP4 and provides support for both IMAP and SMTP. One advantage of SquirrelMail is that the javaScript is an option not a requirement for users making it more browser compatible. The setup on a  CentOS or RHEL  server is an effective way to provide email access to roaming users from an office or from home.
In order to use Squirrelmail you must have installed:
PHP4.1.2 or better
Browser – cookies must be enabled
SquirrelMail has become an option for install on most Linux distributions.

yum install squirrelmail

apt-get install squirrelmail
SquirrelMail is installed in /usr/share/squirrelmail typically.
Some directories for queuing & attachments are set up in /var/lib.
The config files are found in /etc/squirrelmail.
A config file for httpd is added to /etc/http/conf.d which creates the alias, webmail for SquirrelMail. The webmail alias allows you to access SquirrelMail by using the link,
This will then bring up the login for the server. A cron job is activated to purge the attachments directory.

SquirrelMail and TLS

Posted by Filed Under Squirrelmail with Comments Off

In order to have TLS work with SquirrelMail you need to start the configuration script at /usr/share/squirrelmail/config/   When the script opens choose “Server Settings” and then edit the IMAP port settings and change them from port 143 to port 993.

SquirrelMail Configuration : Read: config.php (1.4.0)
Server Settings

1.  Domain                 : localhost
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

IMAP Settings
4.  IMAP Server            : localhost
5.  IMAP Port              : 993
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : uw
9.  Delimiter              : /

B.  Update SMTP Settings   : localhost:25
H.  Hide IMAP Server Settings

R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit

Restart Dovecot and httpd and you should be able to login to SquirrellMail using the https on the browser and the encrypted communication on port 993 for Dovecot.  To the user the only decision they need to make is to accept the self-signed certificate and point their browser to https.