Try this method posted earlier.
The Directory error is gone but still not getting mail.
mail(1) isn't able to open Maildir mailbox
Update 1: I tried creating a new user after this, and it seemed to work. The files are showing up. Maybe it is a permissions issue. If I figure it out, I'll update this post.
Update 2:
Recreate these commands (Source) and post what you see.
Install mailx package for use as command mail utility program. Mail
command is installed with this package.
sudo apt-get install mailutils
Add a user before you start this.
sudo useradd -m -s /bin/bash fmaster
sudo passwd fmaster
Test your default installation using the following code segment.
telnet localhost 25
(if that doesn't work, check to see if postfix is running)
sudo postfix status
If it is not running, start it
sudo postfix start
Postfix will prompt like following in the terminal so that you can use
to type SMTP commands.
Trying 127.0.0.1...
Connected to mail.fossedu.org.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix (Ubuntu)
Type the following code segment in Postfix's prompt.
ehlo localhost
mail from: root@localhost
rcpt to: fmaster@localhost
data
Subject: My first mail on Postfix
Hi,
Are you there?
regards,
Admin
. # (Type the .[dot] in a new Line and press Enter )
quit
Check the mailbox of fmaster
su - fmaster
mail
When you type mail command an output like follows display in your
terminal.
Mail version 8.1.2 01/15/2001. Type ? for help.
"**/var/mail/fmaster**": 2 messages 2 new
>N 1 root@localhost Mon Mar 6 12:49 13/479 Just a test
N 2 root@localhost Mon Mar 6 12:51 15/487 My first mail
&
If you see the following line: /var/mail/fmaster
type:
sudo postconf -e "home_mailbox = Maildir/"
Repeat steps and see that your folder has changed to /home/fmaster/Maildir