Use rspamd as a milter service instead of deprecated rmilter
parent
f943dc85a2
commit
1d9b3b00a7
@ -1,12 +1,9 @@
|
|||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
|
|
||||||
# We have to upgrade musl, or rspamd will not work.
|
RUN apk add --no-cache rspamd ca-certificates
|
||||||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
|
||||||
&& apk add --no-cache rspamd rsyslog ca-certificates
|
|
||||||
|
|
||||||
RUN mkdir /run/rspamd
|
RUN mkdir /run/rspamd
|
||||||
|
|
||||||
COPY conf/ /etc/rspamd
|
COPY conf/ /etc/rspamd
|
||||||
COPY start.sh /start.sh
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["rspamd", "-i", "-f"]
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
clamav {
|
||||||
|
attachments_only = true;
|
||||||
|
symbol = "CLAM_VIRUS";
|
||||||
|
type = "clamav";
|
||||||
|
servers = "antivirus:3310";
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
try_fallback = true;
|
||||||
|
path = "/dkim/$domain.$selector.key";
|
@ -0,0 +1 @@
|
|||||||
|
type=console
|
@ -0,0 +1,11 @@
|
|||||||
|
authenticated_headers = ["authentication-results"];
|
||||||
|
skip_local = false;
|
||||||
|
skip_authenticated = false;
|
||||||
|
|
||||||
|
use = ["x-spamd-bar", "x-spam-level", "x-virus", "authentication-results"];
|
||||||
|
|
||||||
|
routines {
|
||||||
|
x-virus {
|
||||||
|
symbols = ["CLAM_VIRUS", "FPROT_VIRUS", "JUST_EICAR"];
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
servers = "redis";
|
@ -0,0 +1 @@
|
|||||||
|
enabled = false;
|
@ -0,0 +1,8 @@
|
|||||||
|
bind_socket = "*:11332";
|
||||||
|
type = "proxy";
|
||||||
|
milter = yes;
|
||||||
|
timeout = 120s;
|
||||||
|
upstream "local" {
|
||||||
|
default = yes;
|
||||||
|
self_scan = yes;
|
||||||
|
}
|
@ -1,6 +1,5 @@
|
|||||||
worker {
|
worker "rspamd_proxy" {
|
||||||
bind_socket = "*:11333";
|
bind_socket = "*:11332";
|
||||||
.include "$CONFDIR/worker-normal.inc"
|
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-proxy.inc"
|
||||||
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-normal.inc"
|
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-proxy.inc"
|
||||||
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-normal.inc"
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue