Define mail user in rebuild_mail_domain_conf()

This commit is contained in:
myvesta 2021-09-30 15:44:18 +02:00 committed by GitHub
parent fd8a44ae23
commit 9eb21cef4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,6 +523,12 @@ rebuild_mail_domain_conf() {
fi
done
# Define mail user
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
MAIL_USER=Debian-exim
else
MAIL_USER=exim
fi
# Set permissions and ownership
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
chmod 660 $USER_DATA/mail/$domain.*