""""""""""
This commit is contained in:
parent
c760fdbbee
commit
d60c50bb89
@ -7,4 +7,4 @@ read emailto
|
|||||||
|
|
||||||
DIR=/etc/exim4/forward
|
DIR=/etc/exim4/forward
|
||||||
sed -i "s/$emailto,//g" "$DIR/$emailfrom"
|
sed -i "s/$emailto,//g" "$DIR/$emailfrom"
|
||||||
[[ ! -s $DIR/$emailfrom ]] && rm -f $DIR/$emailfrom
|
[[ ! -s "$DIR/$emailfrom" ]] && rm -f "$DIR/$emailfrom"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
DIR=/etc/exim4/forward
|
DIR=/etc/exim4/forward
|
||||||
for file in $DIR/*
|
for file in "$DIR/*"
|
||||||
do
|
do
|
||||||
echo "$file: $(cat $DIR/$file)"
|
echo "$file: $(cat $DIR/$file)"
|
||||||
done
|
done
|
||||||
|
@ -7,6 +7,6 @@ read domain
|
|||||||
|
|
||||||
DIR=/etc/exim4/domains
|
DIR=/etc/exim4/domains
|
||||||
sed -i "/$username/d" "$DIR/$domain"
|
sed -i "/$username/d" "$DIR/$domain"
|
||||||
[[ ! -s $DIR/$domain ]] && rm -f $DIR/$domain
|
[[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain"
|
||||||
userdb "$username@$domain" del
|
userdb "$username@$domain" del
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
Loading…
Reference in New Issue
Block a user