fetchmail to get the mails from your imap account
2014-03-11
169 words
1 min read
Now, that you have set the RPi to send emails, lets do the next best thing. Setup fetchmail so that we can setup a cron job to run and get us the emails on Raspberry Pi. What can we do with these emails, lots 🙂 (I hope you already have a Raspberry Pi, if not then head over to element14.)
For now, first install fetchmail:
sudo apt-get install fetchmail
and if you are one of the guys who wants easy configuration then :
sudo apt-get install fetchmailconf
If you are using fetchmailconf, then just fire up “fetchmailconf”. You will get a GUI, where you can configure the setting. If not, then you can create a file “~/.fetchmailrc” which should look something like this:
poll protocol IMAP user "" with password "" mda "" folder 'INBOX' fetchlimit 1 # do not delete the mails on server. keep # do not re-write the headers for the mail, get saner headers for the script to process. no rewrite # use ssl ssl
Related Articles:
- 2011/02/19 Using ssmtp to send mail using gmail.
- 2010/07/25 importing outlook pst files in evolution in Fedora 13 ( Goddard)
- 2014/03/10 Raspberry Pi automate certain tasks – script example
- 2014/02/09 nautilis fork ( File manager ) with tree view in sidebar.
- 2013/04/19 sendmail or sending mail
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.