add forward
This commit is contained in:
parent
28fe0cb271
commit
d1cef6f149
8
commands/exim_forwardadd.sh
Normal file
8
commands/exim_forwardadd.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Forward FROM email: "
|
||||
read emailfrom
|
||||
echo "Forward TO email: "
|
||||
read emailto
|
||||
|
||||
echo "$(cat /etc/exim4/forward/$emailfrom)$emailto," > "/etc/exim4/forward/$emailfrom"
|
8
commands/exim_forwarddel.sh
Normal file
8
commands/exim_forwarddel.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Forward FROM email: "
|
||||
read emailfrom
|
||||
echo "Forward TO email: "
|
||||
read emailto
|
||||
|
||||
sed -i "s/$emailto,//g" "/etc/exim4/forward/$emailfrom"
|
Loading…
Reference in New Issue
Block a user