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
One thought on “fetchmail to get the mails from your imap account”
You must log in to post a comment.