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
Weird data transfer technique avoids all standard security measures.
FIDO alliance declares the beginning of the end for old-style login authentication.
The Linux New Media Awards have honored the most significant products, projects, people, and organizations for open source/Linux every year since 2000.
Legendary Uber-distro splits over the systemd controversy.
New LTS version offers many refinements for the Cinnamon and Mate desktops and significant improvement under the hood.
One of CeBIT’s most successful forums returns in 2015.
A new study says it is possible to unmask 81% of TOR users.
Redmond joins the revolution by turning the .NET Core Runtime into a GitHub project.
Users only had 7 hours to update before the intrusions started.
It's official: The new web arrives