From 30e2072783aa0941ee67ef0c38f2566ebb646f81 Mon Sep 17 00:00:00 2001 From: pellertson Date: Mon, 2 Sep 2019 19:40:20 -0600 Subject: [PATCH] Fixed a bug with installing opendkim (#1) The main command for generating DKIM keys (`opendkim`) wasn't installed with just the `opendkim` package. Added a fix so it would be installed should it not be there the first time `apt` is ran. --- emailwiz.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emailwiz.sh b/emailwiz.sh index cd42e76..ff39ac2 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -17,6 +17,8 @@ echo "Installing programs..." apt install postfix dovecot-imapd opendkim spamassassin spamc +# Install another requirement for opendikm only if the above command didn't get it already +[ -e $(which opendkim-genkey) ] || apt install opendkim-tools domain="$(cat /etc/mailname)" subdom="mail" maildomain="$subdom.$domain"