Error with Postfix

I am trying to install postfix on Ubuntu with bellow tutorial

but while Initialize the Maildir and Test the Client i am getting below error

root@ubuntu-shm:~# ls -R ~/Maildir ls: cannot access ‘/root/Maildir’: No such file or directory

I havent created non root user.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m having similar issue. Please someone help.

I am getting same error. wondering if anyone found a fix. Thank you

I have got same issue.

sann@ububtu16Lamp:~# echo ‘init’ | mail -s ‘init’ -Snorecord sann Can’t canonicalize “/sann/Maildir” sann@ububtu16Lamp:~# ls -R ~/Maildir ls: cannot access ‘/sann/Maildir’: No such file or directory

This comment has been deleted

I fixed this by opening my postfix file:

sudo nano /etc/postfix/

and adding the following to the end of the file:

home_mailbox = Maildir/

and restarting postfix.

sudo /etc/init.d/postfix reload
sudo systemctl restart postfix

At that point running

echo 'init' | mail -s 'init' -Snorecord my_username


Can't canonicalize "/home/my_username/Maildir"

but when I ran

ls -R ~/Maildir

The mail directory was there!! Success!! Hope this helps future mail pioneers. ~ Gifford