imap config

Discuss Applications
Post Reply
User avatar
cdhgold
administrator
administrator
Posts: 382
Joined: Tue Mar 18, 2003 6:11 pm
Location: Texas

imap config

Post by cdhgold »

i have setup up my first mail server pop3/imap (dovecot) . i have not dealt with IMAP before but have been told it is possible to create folders under the imap account and set filters like you would in thunderbird to sort mail automatically only have this happen server side. so that when viewing the mail thru a web interface (am using squirrelmail) or downloading the messages they are already sorted. is this possible and if so can anyone recommend software packages to do this with .. server in question is RHEL4 box

thanks in advance as always
cdhgold

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

IMAP/POP is simple to install and set up and you should have everything you need already installed. Just configure your client to use IMAP and point to your server (I use Evolution but most clients support IMAP). In Evolution you just create folders with whatever names you want (works just like Exchange regarding mail folders if you are familiar with that). The folders actually get created on the server as separate mbox files under your $HOME/mail directory. It's great because no matter where you are and what client you have installed you have access to all your mail and mail folders on your server. Nothing is stored locally (well, some apps like Evolution will cache your mail locally).

Now, regarding server side filtering that is something I haven't really done although I have parsed mbox files for other projects. It appears there is a plugin for Dovecot for this called sieve:

http://wiki.dovecot.org/LDA/Sieve

There are also simple Perl modules for parsing mbox files you could write something that runs from cron (or however/whenever you want to run it) to read /var/spool/mail/$USER and parse it into the appropriate mbox files in $HOME/mail:

http://perl.overmeer.net/mailbox/

P.S. I also have Squirrelmail installed and you can access your folders in it just as well. I also used Horde/IMP for the longest time as a webmail app which is probably a lot more robust than Squirrelmail but a little harder to set up and configure.

Post Reply