mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Fix Autoreply issue with Exim 4.94+
This commit is contained in:
parent
fc483f5d3c
commit
2ac72e00fb
7 changed files with 25 additions and 2 deletions
|
@ -61,6 +61,8 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|||
fi
|
||||
str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota"
|
||||
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
userstr="$account:$account:$user:mail:$HOMEDIR/$user"
|
||||
echo $userstr >> $HOMEDIR/$user/conf/mail/$domain/accounts
|
||||
fi
|
||||
|
||||
# Create mail account folder (mailbox)
|
||||
|
|
|
@ -91,6 +91,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|||
touch $HOMEDIR/$user/conf/mail/$domain/aliases
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/fwd_only
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/accounts
|
||||
ln -s $HOMEDIR/$user/conf/mail/$domain \
|
||||
/etc/$MAIL_SYSTEM/domains/$domain_idn
|
||||
|
||||
|
@ -119,6 +120,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|||
# Set ownership
|
||||
chown -R $MAIL_USER:mail $HOMEDIR/$user/conf/mail/$domain
|
||||
chown -R dovecot:mail $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
chown $MAIL_USER:mail $HOMEDIR/$user/conf/mail/$domain/accounts
|
||||
chown $user:mail $HOMEDIR/$user/mail/$domain_idn
|
||||
fi
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
|
|||
|
||||
sed -i "/^$account@$domain_idn:/d" $HOMEDIR/$user/conf/mail/$domain/aliases
|
||||
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/accounts
|
||||
rm -rf $HOMEDIR/$user/mail/$domain/$account
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue