Turn Raspberry Pi into an Email Archiver
Having your email up in the cloud is very convenient, until your Internet connection is down or email provider is having technical issues. In situations like these, having a searchable backup of all your emails which you can access locally can be a real life-saver. Fortunately, setting up an email archiving solution isn't all that difficult, and you can use a Raspberry Pi (or any spare machine for that matter) for that. If your email service provides IMAP support, then the best tool for the job is OfflineIMAP. This software is available in the Debian official software repository, so you can install it on RPi (assuming it runs the Raspbian distro) using the sudo apt-get install offlineimap command. Once you've done that, create a text file and specify OfflineIMAP's settings. The following minimal configuration should be enough to fetch emails from a remote IMAP server (replace placeholders in square brackets with actual values):
[general] accounts = [NAME] ui = Noninteractive.Basic [Account FastMail] localrepository = Local remoterepository = Remote [Repository Local] type = Maildir localfolders = [PATH TO MAIL DIR] [Repository Remote] type = IMAP ssl = yes remotehost = [IMAPSERVER] remoteuser = [EMAIL] remotepass = [PASSWORD]
Create then a simple cron job to schedule regular email backup:
crontab -e @hourly offlineimap
Obviously, the backup archive is not much use if you can't search and read it, and you have several options to access archived emails. You can install the mutt mailer and use it to browse and search emails. If you plan to use mutt only for that purpose you don't have to configure it: simply use the -f argument to point mutt to the desired folder:
mutt -f ~/Mail/INBOX
You can then use the / (find) or l (limit) commands in the index view to quickly find messages. Alternatively, you can use the mu tool which is designed specifically for searching through a large body of messages. mu is available on Debian under the maildir-utils name, so to install it, use the sudo apt-get install maildir-utils command. Use then mu's cheat sheet to master the tool's basic functionality.comments powered by Disqus
Mozilla’s script blocker add-on could be putting malware sites on the whitelist.
The Internet community officially banishes the notoriously unsafe Secure Sockets Layer protocol.
Popular desktop environment continues the Gnome 2 legacy – with new support for the Gnome 3 toolkit.
The Obama White House has issued a memorandum telling all US government agencies they must use HTTPS for all websites and web communication.
New program will dial up security for the Firefox browser.
Red Hat's community distro embraces the cloud.
New partnership will bring more and better CS training to US schools
Criminals offer online help over Tor network
Sophisticated malware is still present on Joomla and WordPress sites around the world.
Future versions of Ubuntu's code service will support the popular Git version control system used with Linux and other open source projects.