Issue Installing Postfix on Ubuntu 18.04

Posted July 3, 2020 469 views
Ubuntu 18.04

Hi there,

I’m following this tutorial on how to install Postfix on Ubuntu 18.04 and seem to have encountered an issue at the end of the tutorial under Step 7 which asks you to initialise the directory structure.

In the tutorial, it asks you to run the command echo ‘init’ | s-nail -s 'init’ -Snorecord sammy. I’m running 'echo ’init’ | s-nail -s 'init’ -Snorecord root’ however don’t receive any feedback.

Once I run ’ls -R ~/Maildir (the next step), I receive:
ls: cannot access ’/root/Maildir’: No such file or directory and aren’t able to proceed further.

Hoping someone might be able to push me in the right direction?


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.

Submit an Answer
1 answer

Hello, @wisie

In order to follow this guide, you should have access to a non-root user with sudo privileges. You can follow our Ubuntu 18.04 initial server setup guide to create the necessary user. -

From what I can see you are executing the commands as the root user - e.g ~/Maildir is giving the following output - ls: cannot access ’/root/Maildir’: No such file or directory

Hope that helps!


by Justin Ellingwood
When you first create a new Ubuntu 18.04 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent...
  • Thanks for responding @alexdo and link.

    I ended up creating an additional user under alex and following the steps in the tutorial all over again however when running the same command echo 'init' | s-nail -s 'init' -Snorecord alex`` it doesn't provide any feedback/response. When I then runls -R ~/Maildir, I receive/home/alex/Maildir’: No such file or directory`“.

    Any ideas?