fix check for /etc/firewalld/
This commit is contained in:
parent
882df54bd8
commit
85a1b2ded5
|
@ -55,7 +55,7 @@ mysql -e "GRANT ALL PRIVILEGES ON vmail.* TO 'vmail'@'localhost';"
|
||||||
mysqladmin flush-privileges
|
mysqladmin flush-privileges
|
||||||
|
|
||||||
# install mail server software
|
# 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
|
# configure system users
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install ssl-cert
|
DEBIAN_FRONTEND=noninteractive apt-get -y install ssl-cert
|
||||||
|
@ -161,7 +161,7 @@ systemctl enable vmail-cron.timer
|
||||||
systemctl start vmail-cron.timer
|
systemctl start vmail-cron.timer
|
||||||
|
|
||||||
# enable email ports in firewalld
|
# 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
|
||||||
firewall-cmd --permanent --zone=public --add-service=smtp-submission
|
firewall-cmd --permanent --zone=public --add-service=smtp-submission
|
||||||
firewall-cmd --permanent --zone=public --add-service=smtps
|
firewall-cmd --permanent --zone=public --add-service=smtps
|
||||||
|
|
Loading…
Reference in New Issue
Block a user