[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:network_services:postfix_dovecot_mysql:uid_gid [2015/02/15 08:15 (UTC)] – created astrogeekhowtos:network_services:postfix_dovecot_mysql:uid_gid [2015/03/08 09:35 (UTC)] (current) – Sources and links astrogeek
Line 1: Line 1:
-===== Creating Required Users and Groups ===== +====== Creating Required Users and Groups =====
-<note important>This article is under construction and not complete! Please return later...</note>+ 
 +This page is supplemental to main article: [[howtos:network_services:postfix_dovecot_mysql|Creating a Virtual Mail Server with Postfix, Dovecot and MySQL]] 
 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.
  
 We will use the SBo assigned uid and gid for each user and group. We will use the SBo assigned uid and gid for each user and group.
  
-To prepare to build or run postfix, execute the following commands on the target machine:+To prepare to build or install postfix, execute the following commands on the target machine:
  
 <code> <code>
Line 13: Line 15:
 </code> </code>
  
-To prepare to build or run dovecot, execute the following commands on the target machine:+To prepare to build or install dovecot, execute the following commands on the target machine:
  
 <code> <code>
Line 22: Line 24:
 </code> </code>
  
-Additionally, to create the user, group and target directory for the virtual mail functions, execute the following commands on the install machine (these are not necessary when building):+Additionally, we must create user, group and target directory for the virtual mail functions. There is no recommended uid/gid for these but a common choice for both is 5000. You may wish to change these to suit your own environment. 
 + 
 +Execute the following commands on the install machine (these are not necessary when building):
  
 <code> <code>
-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 /var/vmail/vhosts mkdir -p /var/vmail/vhosts
 chown -R vmail:vmail /var/vmail chown -R vmail:vmail /var/vmail
 </code> </code>
 +
 +To test whether these users or groups already exist on a machine, substitute the user or group names into the respective commands:
 +<code>
 +cat /etc/passwd |grep ^postfix
 +cat /etc/group |grep ^postdrop
 +</code>
 +
 +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:network_services:postfix_dovecot_mysql|Return to main article page]] [[howtos:network_services:postfix_dovecot_mysql|Return to main article page]]
-{{tag>howtos template}}+====== Sources ====== 
 +  * Originally written by [[wiki:user:astrogeek | astrogeek]] 
 +{{tag>howtos email postfix dovecot}}
 howtos:network_services:postfix_dovecot_mysql:uid_gid ()