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