mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
remote mail support
This commit is contained in:
parent
d08ee4b8c6
commit
972ecfaa74
33 changed files with 288 additions and 271 deletions
|
@ -42,25 +42,21 @@ is_object_unsuspended "mail/$domain" 'ACCOUNT' "$account"
|
|||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
# Add exim autoreply
|
||||
echo -e "$autoreply" > $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
|
||||
|
||||
# Set ownership and permissions
|
||||
if [ "$MAIL_SYSTEM" = 'exim' ]; then
|
||||
mail_user=exim
|
||||
# Adding exim autoreply
|
||||
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
||||
msg="$HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg"
|
||||
echo -e "$autoreply" > $msg
|
||||
chown $MAIL_USER:mail $msg
|
||||
chmod 660 $msg
|
||||
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
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Adding vesta alias
|
||||
# Adding autoreply message
|
||||
echo -e "$autoreply" > $USER_DATA/mail/$account@$domain.msg
|
||||
chmod 660 $USER_DATA/mail/$account@$domain.msg
|
||||
update_object_value "mail/$domain" 'ACCOUNT' "$account" '$AUTOREPLY' 'yes'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue