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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
I fixed this by opening my postfix main.cf file:
sudo nano /etc/postfix/main.cf
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
returned
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.