Question

Issue Installing Postfix on Ubuntu 18.04

Posted July 3, 2020 642 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?

Cheers.

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. - https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04

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

by Justin Ellingwood
by Erika Heidi
This guide will walk you through a few procedures that you should take early on in order to create a solid foundation for your new Ubuntu 18.04 server, before moving on to installing and configuring any software or services.
  • 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?

    Cheers!