Report this

What is the reason for this report?

Can not create the Maildir structure within my home directory is to send an email with the s-nail command

Posted on July 23, 2022

As I follow the tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-22-04#step-1-installing-postfix

I stucked at: echo ‘init’ | s-nail -s ‘init’ -Snorecord myuser It do not create directory structure

/home/myuser/Maildir/: cur new tmp

Please help, thanks



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!

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.

The problem may be due to the absence of a correctly configured mailbox for the user myuser on your Ubuntu server. Postfix needs this mailbox for storing and managing emails.

To ensure proper Postfix configuration and mailbox setup, please follow these steps:

  1. Create the myuser user if not already present:
  1. sudo adduser myuser
  1. Switch to the myuser:
  1. sudo su - myuser
  1. Manually make the Maildir directory:
  1. mkdir -p Maildir/{cur,new,tmp}
  1. Switch back to root user:
  1. exit
  1. Now, retry your command:
  1. echo 'init' | s-nail -s 'init' -Snorecord myuser

For more in-depth information, you can always refer to Postfix docs:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-22-04#step-1-installing-postfix

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.