Replace amavis with rmilter plus clamav and rspamd
This commit is contained in:
10
rspamd/Dockerfile
Normal file
10
rspamd/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM alpine:edge
|
||||
|
||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
&& apk add --update \
|
||||
rspamd@testing rsyslog \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN mkdir /run/rspamd
|
||||
|
||||
CMD ["rspamd", "-f", "-i"]
|
||||
4
rspamd/rsyslog.conf
Normal file
4
rspamd/rsyslog.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
$ModLoad imuxsock
|
||||
$template noTimestampFormat,"%syslogtag%%msg%\n"
|
||||
$ActionFileDefaultTemplate noTimestampFormat
|
||||
*.*;auth,authpriv.none /dev/stdout
|
||||
4
rspamd/start.sh
Executable file
4
rspamd/start.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
rspamd -i
|
||||
rsyslogd -n
|
||||
Reference in New Issue
Block a user