Permalink
Browse files

Autoreply permission fix. Thanks to l170v

  • Loading branch information...
serghey-rodin committed Sep 30, 2013
1 parent 9939190 commit dc562aa526e2a395a23aab065674221ac37e9fa9
Showing with 9 additions and 1 deletion.
  1. +9 −1 bin/v-add-mail-account-autoreply
@@ -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

0 comments on commit dc562aa

Please sign in to comment.