I am looking for advice on where to start for this project:

My plan is to use my RPi as an server to handle files. I thought an easy way to do this to setup an e-mail client that watches for new e-mails. In this way, I am able to e-mail a file as attachment to an e-mail adress, the RPi then receives this file, runs some scripts on the attached file (based on the subject or message body) and then replies with the result from the scripts. The files are relatively small, max. 500kb.

My question is: which email client is suited for this case?

I already found this list of text-based e-mail clients on Wikipedia, but it is not clear to me whether any of them meet my requirements:

  • run on a RPi
  • connect to standard POP3 or IMAP
  • run scripts as new messages arrive

Instant update: possibly related.

2 Answers 2


I found this example using fetchmail and procmail


I had a similar idea, but I'm trying to decide if I want it to operate as its own mail server as well.

I found this guide to install postfix though if it helps.

  • I think you need to expand on your answer a little
    – Darth Vader
    Apr 8, 2016 at 20:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.