emailwiz

Script for setting up an email server automatically
Log | Files | Refs | README

commit f41246d575d5d9de7156973ad1bcf36b50cb91d7
parent 983b99e86d9865e6ec82856f192461cbbdde56a5
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 11 Oct 2020 14:46:45 -0400

more robust

Diffstat:
Memailwiz.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emailwiz.sh b/emailwiz.sh @@ -253,7 +253,7 @@ sed -i '/^#Canonicalization/s/simple/relaxed\/simple/' /etc/opendkim.conf sed -i '/^#Canonicalization/s/^#//' /etc/opendkim.conf sed -e '/Socket/s/^#*/#/' -i /etc/opendkim.conf -sed -i '/\local:\/var\/run\/opendkim\/opendkim.sock/a \Socket\t\t\tinet:12301@localhost' /etc/opendkim.conf +grep -q "^Socket\s*inet:12301@localhost" /etc/opendkim.conf || echo "Socket inet:12301@localhost" >> /etc/opendkim.conf # OpenDKIM daemon settings, removing previously activated socket. sed -i "/^SOCKET/d" /etc/default/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/default/opendkim