#!/bin/bash set -e DEBUG_PACKAGES=(procps) # libpam-pgsql is only available in debian sid at the moment; building in compile step DB_PACKAGES=(sasl2-bin libsasl2-modules postgresql) POSTFIX_PACKAGES=(postfix postfix-pgsql) DOVECOT_PACKAGES=(dovecot-core dovecot-imapd dovecot-pgsql) RSPAMD_PACKAGES=(rspamd redis-server) FAIL2BAN_PACKAGES=(fail2ban) PACKAGES=( tini supervisor ${DEBUG_PACKAGES[@]} ${DB_PACKAGES[@]} ${POSTFIX_PACKAGES[@]} ${DOVECOT_PACKAGES[@]} # ${RSPAMD_PACKAGES[@]} # ${FAIL2BAN_PACKAGES[@]} ) apt update apt install -y "${PACKAGES[@]}" apt clean # TODO: post-installation goes here