Update install.sh

This commit is contained in:
Bozhidar 2024-09-30 18:18:32 +03:00
parent 36d4e283ed
commit 6ae9e2eb62

View file

@ -9,6 +9,20 @@ sudo apt-get --no-install-recommends install clamav clamav-daemon -yq
sudo apt-get --no-install-recommends install amavisd-new -yq sudo apt-get --no-install-recommends install amavisd-new -yq
sudo apt-get install libmysqlclient-dev libopendbx1-mysql -yq sudo apt-get install libmysqlclient-dev libopendbx1-mysql -yq
# Install SASL
sudo apt-get install sasl2-bin -yq
# auto start SASL file
echo 'START=yes' > /etc/default/saslauthd
systemctl restart saslauthd
groupadd -g 5000 vmail && mkdir -p /var/mail/vmail
useradd -u 5000 vmail -g vmail -s /usr/sbin/nologin -d /var/mail/vmail
chown -R vmail:vmail /var/mail/vmail
mkdir -p /etc/postfix/sql
# Enable email ports # Enable email ports
ufw allow 25 ufw allow 25
ufw allow 587 ufw allow 587