Commit 471538dc authored by Lucas Détré's avatar Lucas Détré

enable spam checking by installing spamassassin

parent f92877a8
Pipeline #3295 passed with stages
in 1 minute and 57 seconds
......@@ -13,6 +13,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
lsof \
mariadb-client \
nodejs \
# Install spamassasin for spam checking incoming/outgoing messages
spamassasin \
# Install system-wide gems
&& gem install \
bundler \
## Replace values in spamassassin config file to enable spam checking
sed -i 's/ENABLED=0/ENABLED=1/' /etc/default/spamassassin
sed -i 's/CRON=0/CRON=1/' /etc/default/spamassassin
sudo systemctl restart spamassassin
## Wait for MySQL to start up
echo "== Waiting for MySQL to start up =="
while ! mysqladmin ping -h mysql --silent; do
......@@ -9,7 +9,7 @@ web_server:
# This can be changed to allow messages to be sent from multiple IP addresses
use_ip_pools: true
use_ip_pools: false
# Specify the connection details for your MySQL database
......@@ -60,3 +60,8 @@ smtp:
from_name: Postal
from_address: postal@{{ POSTAL_DOMAIN }}
#enabling spamassassin daemon for spam checking
enabled: true
port: 783
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment