This page is part of the EmailServer article. UsersThere are plenty of different ways to authenticate users for mail access. Using LDAP, virtual users, MySQL databases, NIS, SMB or any other scheme is of course possible but in our case I wanted to keep things simple and allow this server to later become say a file server as well without too much hassle. Changing the authentication scheme can be necessary if you're managing virtual email accounts with lots of different domains (if you're and ISP for instance). Having said that, there are a few of drawbacks to using standard user accounts:
I will assume that all our users will not need to login onto the machine by default. If you need such users, you can still override these settings. Edit the # useradd defaults file GROUP=100 HOME=/mail INACTIVE=-1 EXPIRE= SHELL=/bin/nologin SKEL=/etc/skelmail CREATE_MAIL_SPOOL=no Note: set the Now create the skeleton directory: # mkdir -p /etc/skelmail/{cur,new,tmp} # chmod 700 -R /etc/skelmail Now, whenever we use the Note: It's very important that the email folder is not world-accessible: Postfix will otherwise refuse to write any email in it as it would be a security hazard. That's why we set it to Should you need to add normal login users accounts, you can override the default settings of # adduser -m -k /etc/skel -s /bin/bash -d /home/susan susan Will add the normal login user susan to the system. < Preparation | EmailServer | Postfix > Comments |