Exim/commands/exim_forwardadd.sh
2016-10-07 11:15:13 +02:00

10 lines
186 B
Bash

#!/usr/bin/env bash
echo "Forward FROM email: "
read emailfrom
echo "Forward TO email: "
read emailto
DIR=/etc/exim4/forward
echo "$(cat $DIR/$emailfrom)$emailto," > "$DIR/$emailfrom"