From: Petter Reinholdtsen Date: Sun, 9 Aug 2020 20:23:47 +0000 (+0200) Subject: Try to set up tor even if exim4 is already configured. X-Git-Url: https://pere.pagekite.me/gitweb/exim4-smtorp.git/commitdiff_plain/67348da76bbe2cb2b58eb0cac6a1d800090050bd Try to set up tor even if exim4 is already configured. --- diff --git a/setup-exim-hidden-service b/setup-exim-hidden-service index 76c68c3..d14a3ae 100644 --- a/setup-exim-hidden-service +++ b/setup-exim-hidden-service @@ -3,15 +3,6 @@ # Configure a machine without exim installed as a mail server receiving # email using SMTP via Tor. -if dpkg -l exim4-config > /dev/null ; then - echo "******************************************************************" - echo "* Unable to set up SMTP over Tor, exim4-config already installed *" - echo "* Purge the package and try again, or *" - echo "* run "dpkg-reconfigure exim4-config" to configure manually. *" - echo "******************************************************************" - exit 1 -fi - append_if_missing() { file="$1" string="$2" @@ -49,6 +40,16 @@ else fi fi +if dpkg -l exim4-config > /dev/null ; then + echo "******************************************************************" + echo "* Unable to set up SMTP over Tor, exim4-config already installed *" + echo "* Purge the package and try again, or *" + echo "* run "dpkg-reconfigure exim4-config" to configure manually. *" + echo "******************************************************************" + echo "* Enable '$torhsname' as mail domain. + exit 1 +fi + cat <