[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:network_services:postfix_dovecot_mysql:uid_gid [2015/02/15 08:35 (UTC)] – astrogeek | howtos:network_services:postfix_dovecot_mysql:uid_gid [2015/02/16 09:45 (UTC)] – First complete version astrogeek | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Creating Required Users and Groups ===== | ===== Creating Required Users and Groups ===== | ||
- | <note important> | ||
You will need to create a few special users and groups to be able to build and/or run your mail server components. | You will need to create a few special users and groups to be able to build and/or run your mail server components. | ||
Line 22: | Line 21: | ||
</ | </ | ||
- | Additionally, | + | Additionally, |
+ | |||
+ | Execute | ||
< | < | ||
- | groupadd -g 303 vmail | + | groupadd -g 5000 vmail |
- | useradd -d /var/vmail -s /bin/false -u 303 -g 303 vmail | + | useradd -d /var/vmail -s /bin/false -u 5000 -g 5000 vmail |
mkdir -p / | mkdir -p / | ||
chown -R vmail:vmail /var/vmail | chown -R vmail:vmail /var/vmail | ||
</ | </ | ||
+ | |||
+ | To test whether these users or groups already exist on a machine, substitute the user or group names into the respective commands: | ||
+ | < | ||
+ | cat /etc/passwd |grep ^postfix | ||
+ | cat /etc/group |grep ^postdrop | ||
+ | </ | ||
+ | |||
+ | If the corresponding name exists it will be shown, otherwise you will see only an empty prompt in response. | ||
+ | |||
+ | For troubleshooting you should verify that each user and group is defined on your machine as shown here. | ||
[[howtos: | [[howtos: | ||
{{tag> | {{tag> |