Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since my mail provider unfortunately offers neither an autoresponder nor forwarding mail to others during vacancy, I'd like to setup e.g. a RaspberryPi to regularly check my mail account (via POP3 or IMAP), and react on new email by sending an autoreply à la "I'm currently on vactation" to the sender (maybe with some smart only-once-per-week-and-recepient mechanism) and redirecting (not forwarding; i.e. resending the original mail) the mail to someone else (without deleting it of course). What's the simplest way to achieve this? Solutions that do not require me to set up my own mailserver would be appreciated...

edit Sending should simply use SMTP on the same account the mail is retrieved from, i.e. basically the solution should simply automate what I can locally already do using Thunderbird, without requiring any mailserver setup edit2 Could a simple cronjob involving mutt suffice for this?

share|improve this question
You could use e.g. getmail to fetch the mails, procmail to process them (forwarding / auto-responding) and nullmailer for sending mails. See unix.stackexchange.com/questions/5771/… or unix.stackexchange.com/questions/1449/… for related threads. – jofel Jan 24 '13 at 10:52
@jofel Thanks for the hint and the links, I'll check if they already answer my question – Tobias Kienzler Jan 24 '13 at 10:56
Instead of procmail you can also use maildrop which could be easier. The getmail FAQ contains the information how you can link these programs. – jofel Jan 24 '13 at 11:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.