From 2181423d9a7e4d07b68018e03c3937570fc6bdbd Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 3 Feb 2018 15:17:11 +0100 Subject: [PATCH] Integrate Sigmah with postfix --- sigmah.sh | 1 + sigmah/etc/init.d/sigmah | 3 ++- sigmah/srv/sigmah/conf/sigmah.properties | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sigmah.sh b/sigmah.sh index 44abf3f..d494162 100755 --- a/sigmah.sh +++ b/sigmah.sh @@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/sigmah # Check prerequisites docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh +docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh docker image ls | grep -q tomcat || $(realpath $(dirname "${0}"))/tomcat.sh # Build Docker container diff --git a/sigmah/etc/init.d/sigmah b/sigmah/etc/init.d/sigmah index dbe357f..0a91e64 100755 --- a/sigmah/etc/init.d/sigmah +++ b/sigmah/etc/init.d/sigmah @@ -4,7 +4,7 @@ description="Sigmah docker container" depend() { need docker net - use dns logger netmount + use dns logger netmount postfix after activemq postgres } @@ -12,6 +12,7 @@ start() { /usr/bin/docker run -d --rm \ --name sigmah \ -h sigmah \ + --link postfix \ --link postgres \ -p 127.0.0.1:8011:8011 \ -v /srv/sigmah/data:/srv/sigmah/data \ diff --git a/sigmah/srv/sigmah/conf/sigmah.properties b/sigmah/srv/sigmah/conf/sigmah.properties index 067d6de..c2cc462 100644 --- a/sigmah/srv/sigmah/conf/sigmah.properties +++ b/sigmah/srv/sigmah/conf/sigmah.properties @@ -23,7 +23,7 @@ files.upload.maxSize=20971520 # -- mail.hostname=postfix -mail.port=587 +mail.port=25 mail.from.address=sigmah@spotter.ngo mail.from.name=Sigmah # Authentication (leave empty if no authentication is required).