mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Autoreply permission fix. Thanks to l170v
This commit is contained in:
parent
99391909a7
commit
dc562aa526
1 changed files with 9 additions and 1 deletions
|
@ -44,7 +44,15 @@ is_object_unsuspended "mail/$domain" 'ACCOUNT' "$account"
|
|||
#----------------------------------------------------------#
|
||||
# Add exim autoreply
|
||||
echo -e "$autoreply" > $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
|
||||
chown -R root:mail $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
|
||||
|
||||
# Set ownership and permissions
|
||||
if [ "$MAIL_SYSTEM" = 'exim' ]; then
|
||||
mail_user=exim
|
||||
fi
|
||||
if [ "$MAIL_SYSTEM" = 'exim4' ]; then
|
||||
mail_user=Debian-exim
|
||||
fi
|
||||
chown $mail_user:mail $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
|
||||
chmod 660 $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue