I have exim installed and configured as "internet site; mail is sent and received directly using SMTP". Mail is stored in /home/*user*/Maildir and it is really there. I can send and receive mail globally and internally, but my Debian Wheezy's mail program isn't showing any of it.

Does mail support Maildir format at all? The messages are there, I can access them via mutt -f Maildir. It's convenient to see a number of new e-mails at SSH logon.


1 Answer 1


Okay, @jordanm gave me a right direction, but information is scattered across the Net, so I think it is worth to post some kind of guide myself.

  1. Install mailutils and heirloom-mailx packages:

    sudo apt-get install mailutils heirloom-mailx
  2. Update alternatives for mailx — choose /usr/bin/heirloom-mailx:

    sudo update-alternatives --config mailx
  3. The last part: update 3 files in /etc/pam.d/. There is a string in each of three following files, which starts with session optional pam_mail.so, update it with the following values:


    session optional pam_mail.so dir=~/Maildir standard


    session optional pam_mail.so dir=~/Maildir nopen


    session optional pam_mail.so dir=~/Maildir standard 

Sources: Ask Ubuntu and this blog post.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .