Start postfix

make fixtures was failing because connection to port 25 failed as postfix
was not running to be listening on port 25.
This commit is contained in:
Kyle Ondy 2016-04-22 21:13:53 -04:00
parent 4203ec0263
commit e08579178f
1 changed files with 3 additions and 2 deletions

View File

@ -81,10 +81,10 @@ if [ -f /tmp/vhost.tmp ]; then
cat /tmp/vhost.tmp | sort | uniq > /etc/postfix/vhost && rm /tmp/vhost.tmp
fi
: <<'END'
echo "Postfix configurations"
touch /etc/postfix/vmailbox && postmap /etc/postfix/vmailbox
touch /etc/postfix/virtual && postmap /etc/postfix/virtual
: <<'END'
# DKIM
# Check if keys are already available
@ -262,13 +262,14 @@ fi
/etc/init.d/opendkim start
/etc/init.d/opendmarc start
/etc/init.d/postfix start
END
postfix start
if [ "$ENABLE_FAIL2BAN" = 1 ]; then
echo "Starting fail2ban service"
touch /var/log/auth.log
/etc/init.d/fail2ban start
fi
END
echo "Listing users"
/usr/sbin/dovecot user '*'