update command line
This commit is contained in:
parent
d1cef6f149
commit
6016eb13be
@ -5,4 +5,5 @@ read emailfrom
|
|||||||
echo "Forward TO email: "
|
echo "Forward TO email: "
|
||||||
read emailto
|
read emailto
|
||||||
|
|
||||||
echo "$(cat /etc/exim4/forward/$emailfrom)$emailto," > "/etc/exim4/forward/$emailfrom"
|
DIR=/etc/exim4/forward
|
||||||
|
echo "$(cat $DIR/$emailfrom)$emailto," > "$DIR/$emailfrom"
|
||||||
|
@ -5,4 +5,6 @@ read emailfrom
|
|||||||
echo "Forward TO email: "
|
echo "Forward TO email: "
|
||||||
read emailto
|
read emailto
|
||||||
|
|
||||||
sed -i "s/$emailto,//g" "/etc/exim4/forward/$emailfrom"
|
DIR=/etc/exim4/forward
|
||||||
|
sed -i "s/$emailto,//g" "$DIR/$emailfrom"
|
||||||
|
[[ ! -s $DIR/$emailfrom ]] && rm -f $DIR/$emailfrom
|
||||||
|
7
commands/exim_forwardlist.sh
Normal file
7
commands/exim_forwardlist.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR=/etc/exim4/forward
|
||||||
|
for file in $DIR/*
|
||||||
|
do
|
||||||
|
echo "$file: $(cat $DIR/$file)"
|
||||||
|
done
|
@ -5,6 +5,8 @@ read username
|
|||||||
echo "Domain: "
|
echo "Domain: "
|
||||||
read domain
|
read domain
|
||||||
|
|
||||||
sed "/$username/d" "/etc/exim4/domains/$domain"
|
DIR=/etc/exim4/domains
|
||||||
|
sed -i "/$username/d" "$DIR/$domain"
|
||||||
|
[[ ! -s $DIR/$domain ]] && rm -f $DIR/$domain
|
||||||
userdb "$username@$domain" del
|
userdb "$username@$domain" del
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
3
commands/exim_userlist.sh
Normal file
3
commands/exim_userlist.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
userdb -show
|
Loading…
Reference in New Issue
Block a user