diff --git a/kanboard.sh b/kanboard.sh index 4474085..c60f8f9 100755 --- a/kanboard.sh +++ b/kanboard.sh @@ -3,6 +3,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/kanboard # Check prerequisites +docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh # Build Docker container diff --git a/kanboard/etc/init.d/kanboard b/kanboard/etc/init.d/kanboard index 818d25c..6ca0c2c 100755 --- a/kanboard/etc/init.d/kanboard +++ b/kanboard/etc/init.d/kanboard @@ -4,7 +4,7 @@ description="KanBoard docker container" depend() { need docker net - use dns logger netmount + use dns logger netmount postfix after postgres } @@ -12,6 +12,7 @@ start() { /usr/bin/docker run -d --rm \ --name kanboard \ -h kanboard \ + --link postfix \ --link postgres \ -p 127.0.0.1:8009:8009 \ -v /srv/kanboard/data:/srv/kanboard/data/files \ diff --git a/kanboard/srv/kanboard/conf/config.php b/kanboard/srv/kanboard/conf/config.php index 59eae1d..5ef0d64 100644 --- a/kanboard/srv/kanboard/conf/config.php +++ b/kanboard/srv/kanboard/conf/config.php @@ -41,10 +41,10 @@ define('MAIL_CONFIGURATION', true); define('MAIL_FROM', 'kanboard@spotter.ngo'); // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid" -define('MAIL_TRANSPORT', 'sendmail'); +define('MAIL_TRANSPORT', 'smtp'); // SMTP configuration to use when the "smtp" transport is chosen -define('MAIL_SMTP_HOSTNAME', ''); +define('MAIL_SMTP_HOSTNAME', 'postfix'); define('MAIL_SMTP_PORT', 25); define('MAIL_SMTP_USERNAME', ''); define('MAIL_SMTP_PASSWORD', '');