I have Postfix configured to deliver to Maildir-format mailboxes:

$ cat /etc/postfix/main.cf
mail_location = maildir:~/Maildir

I have Dovecot configured the same:

$ cat /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir

But the mail command seems unable to read my Maildir mailboxes, and seems to be telling me that mail is not being delivered how I think.

Every time that mail is sent to user@xx.yy, it can be read by the command:

mail -f  /var/mail/user

indicating that it is being delivered there instead of into ~user/Maildir. Moreover, mail fails to read that mail directory when invoked as:

mail -f /home/user/Maildir/new

Why is this? How do I configure Postfix et al. to deliver to mail directories? And how do I get the mail command to show the mail that is in them?

closed as unclear what you're asking by Archemar, Romeo Ninov, Stephen Rauch, peterh, G-Man Oct 5 '17 at 20:28

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Because mail expects messages to start with From_, and Maildir down't allow From_ lines. – Satō Katsura Oct 5 '17 at 12:09
  • There are two questions here. Could you please clarify whether this is a question about Postfix or mail? Are mail being delivered (are there files in the Maildir folder)? – Kusalananda Oct 5 '17 at 18:40

The mail utility usually can't handle Maildir mailboxes.

Use another mail client, such as mutt for example, that can.

mutt -f /home/user/Maildir

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