create vmail user
This commit is contained in:
parent
ac28aa28f5
commit
dffcc43866
@ -5,4 +5,14 @@ echo "${PWD##*/}: started."
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
chown -Rh dovecot:dovecot -- /etc/dovecot
|
chown -Rh dovecot:dovecot -- /etc/dovecot
|
||||||
|
|
||||||
|
# For lmtp user 'vmail' so the dovecot has an access to drop the emails on FS.
|
||||||
|
VMAIL_USER=${VMAIL_USER:-vmail}
|
||||||
|
VMAIL_ID=${VMAIL_ID:-2700}
|
||||||
|
VMAIL_HOME=${VMAIL_HOME:-/vmail}
|
||||||
|
adduser -u ${VMAIL_ID} -D -s /bin/false -h ${VMAIL_HOME} ${VMAIL_USER}
|
||||||
|
# groupadd -g ${VMAIL_ID} ${VMAIL_USER}
|
||||||
|
# useradd -u ${VMAIL_ID} -g ${VMAIL_USER} -r -m -d ${VMAIL_HOME} -s /bin/false ${VMAIL_USER}
|
||||||
|
chown -Rh vmail:vmail -- ${VMAIL_HOME}
|
||||||
|
|
||||||
exec /usr/sbin/dovecot -F
|
exec /usr/sbin/dovecot -F
|
||||||
|
Loading…
Reference in New Issue
Block a user