2016-10-05 23:04:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
echo "Forward FROM email: "
|
|
|
|
read emailfrom
|
|
|
|
echo "Forward TO email: "
|
|
|
|
read emailto
|
|
|
|
|
2016-10-07 09:15:13 +00:00
|
|
|
DIR=/etc/exim4/forward
|
|
|
|
sed -i "s/$emailto,//g" "$DIR/$emailfrom"
|
2016-10-07 17:47:43 +00:00
|
|
|
[[ ! -s "$DIR/$emailfrom" ]] && rm -f "$DIR/$emailfrom"
|