10 lines
214 B
Bash
10 lines
214 B
Bash
#!/usr/bin/env bash
|
|
|
|
echo "Forward FROM email: "
|
|
read emailfrom
|
|
echo "Forward TO email: "
|
|
read emailto
|
|
|
|
DIR=/etc/exim4/forward
|
|
echo "$([[ -f $DIR/$emailfrom ]] && cat $DIR/$emailfrom)$emailto," > "$DIR/$emailfrom"
|