send reports

This commit is contained in:
f 2020-09-24 09:23:56 -03:00
parent dfcb68260d
commit 2d31d01437
4 changed files with 10 additions and 5 deletions

View file

@ -1,10 +1,10 @@
FROM sutty/monit:latest
MAINTAINER "f <f@sutty.nl>"
RUN apk add --no-cache opendkim
RUN apk add --no-cache opendkim mini-sendmail
COPY ./monit.conf /etc/monit.d/opendkim.conf
COPY ./opendkim.sh /usr/local/bin/opendkim
RUN chmod 755 /usr/local/bin/opendkim
COPY ./opendkimd.sh /usr/local/bin/opendkimd
COPY ./sendmail.sh /usr/bin/sendmail
RUN install -dm 2750 -o opendkim -g opendkim /run/opendkim
EXPOSE 8891

View file

@ -1,3 +1,3 @@
check process opendkim with pidfile /tmp/opendkim.pid
start program = "/usr/local/bin/opendkim start"
stop program = "/usr/local/bin/opendkim stop"
start program = "/usr/local/bin/opendkimd start"
stop program = "/usr/local/bin/opendkimd stop"

0
opendkim.sh → opendkimd.sh Normal file → Executable file
View file

5
sendmail.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
/var/lib/mini-sendmail/mini_sendmail -s postfix $@
exit $?