elearn
By:
elearn

is `drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail` or `drwxrwsr-x 3 root mail 4096 Jan 24 21:23 /var/mail`?

August 22, 2015 984 views
Email

I am installing mail server as the web:
https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

In the middle of the material :

Verify permissions
Enter this command:
ls -ld /var/mail
Ensure permissions are like this:
drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail

But what i get is
drwxrwsr-x 3 root mail 4096 Jan 24 21:23 /var/mail
There is no letter v in my output,
Which is correct?
drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail
or
drwxrwsr-x 3 root mail 4096 Jan 24 21:23 /var/mail
If the right format is
drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail

How to change my wrong format of
drwxrwsr-x 3 root mail 4096 Jan 24 21:23 /var/mail
into the right one
drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail
?

1 Answer

groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/mail

The two commands should be put at the beginning of the chapter.

Have another answer? Share your knowledge.