Hi, When following the example from the OpenSMTPD faq [0], first thing is to create a new user with:
useradd -g =uid -c "Virtual Mail" -d /var/vmail -s /sbin/nologin vmail which raises warnx("Warning: home directory `%s' doesn't exist, and -m was" " not specified", home); I don't think giving a command that produces a warning is a good thing in an official documentation. Also solving this problem make other commands useless so it's a bit shorter. [0]: https://opensmtpd.org/faq/example1.html Cheers, Daniel Index: opensmtpd/faq/example1.html =================================================================== RCS file: /cvs/www/opensmtpd/faq/example1.html,v retrieving revision 1.12 diff -u -p -r1.12 example1.html --- opensmtpd/faq/example1.html 31 Oct 2016 20:52:22 -0000 1.12 +++ opensmtpd/faq/example1.html 30 Jan 2017 23:35:54 -0000 @@ -90,9 +90,7 @@ virtual users. This user needs to be created: <blockquote><pre> -<strong># useradd -g =uid -c "Virtual Mail" -d /var/vmail -s /sbin/nologin vmail</strong> -<strong># mkdir /var/vmail</strong> -<strong># chown vmail:vmail /var/vmail</strong> +<strong># useradd -m -g =uid -c "Virtual Mail" -d /var/vmail -s /sbin/nologin vmail</strong> </pre></blockquote> Afterwards, the <tt>/etc/passwd</tt> file will contain an entry like