Issue Installing Postfix on 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?



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.

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!

Regards, Alex

Same issue echo 'init' | s-nail -s 'init' -Snorecord sammy doesn’t create Maildir structure

I’ve to create it manually: mkdir -p ~/Maildir/{cur,new,tmp}