Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I've got the courier-imap-ssl package installed and running alongside sendmail on a Linux box. However, I'm having a problem. I've changed the mail directory using MAILDIRPATH=/path/to/email/dir in both the imapd-ssl and imapd files, and was sure to use maildirmake /path/to/email/dir to create the directory.

What's even weirder is that when I try to send an email to myself (using Thunderbird, which doesn't appear to have any problems), the email appears in my sent folder, but I never receive it. Instead of my sent email being sent to /path/to/email/dir, it get put in /var/mail/user instead. My email goes to the same place when sent from an external host as well.

I can't find anything with a Google search, and I don't know where to even begin on finding the solution to this on my own. Is there some kind of configuration or missing program I need to fix this?

share|improve this question
up vote 0 down vote accepted

After relentless searching, I found the solution to my problem. sendmail uses this thing called procmail, which needs to be configured with the appropriate email directory.

  • To set the email directory of an individual user, create rw-r--r-- user:user /home/user/.procmailrc that contains:

  • To set a global email directory, create rw-r--r-- root:root /etc/procmailrc and add to it:

share|improve this answer

Your Answer


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

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