mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
fwd-only flag
This commit is contained in:
parent
6e75b6e4b4
commit
3e521cb8a2
11 changed files with 202 additions and 6 deletions
|
@ -435,8 +435,10 @@ rebuild_mail_domain_conf() {
|
|||
rm -f $HOMEDIR/$user/conf/mail/$domain/antivirus
|
||||
rm -f $HOMEDIR/$user/conf/mail/$domain/protection
|
||||
rm -f $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
rm -f $HOMEDIR/$user/conf/mail/$domain/fwd_only
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/aliases
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
touch $HOMEDIR/$user/conf/mail/$domain/fwd_only
|
||||
|
||||
# Adding antispam protection
|
||||
if [ "$ANTISPAM" = 'yes' ]; then
|
||||
|
@ -519,6 +521,9 @@ rebuild_mail_domain_conf() {
|
|||
if [ ! -z "$FWD" ]; then
|
||||
echo "$account@$domain:$FWD" >> $dom_aliases
|
||||
fi
|
||||
if [ "$FWD_ONLY" = 'yes' ]; then
|
||||
echo "$account" >> $HOMEDIR/$user/conf/mail/$domain/fwd_only
|
||||
fi
|
||||
done
|
||||
|
||||
# Set permissions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue