From 85a1b2ded57e098899024c76fe60c353161634d9 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 17 Nov 2022 14:43:25 -0800 Subject: [PATCH] fix check for /etc/firewalld/ --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2194879..7d65d33 100755 --- a/install.sh +++ b/install.sh @@ -55,7 +55,7 @@ mysql -e "GRANT ALL PRIVILEGES ON vmail.* TO 'vmail'@'localhost';" mysqladmin flush-privileges # install mail server software -DEBIAN_FRONTEND=noninteractive apt-get -y install exim4-daemon-heavy spf-tools-perl spamassassin srs libclass-dbi-mysql-perl dovecot-core dovecot-imapd dovecot-mysql dovecot-pop3d dovecot-lmtpd +DEBIAN_FRONTEND=noninteractive apt-get -y install exim4-daemon-heavy spf-tools-perl spamassassin srs libclass-dbi-mysql-perl dovecot-core dovecot-imapd dovecot-mysql dovecot-pop3d dovecot-lmtpd mailutils # configure system users DEBIAN_FRONTEND=noninteractive apt-get -y install ssl-cert @@ -161,7 +161,7 @@ systemctl enable vmail-cron.timer systemctl start vmail-cron.timer # enable email ports in firewalld -[[ -d /etc/firewalld/ ]]; then +if [[ -d /etc/firewalld/ ]]; then firewall-cmd --permanent --zone=public --add-service=smtp firewall-cmd --permanent --zone=public --add-service=smtp-submission firewall-cmd --permanent --zone=public --add-service=smtps