Skip to content
Snippets Groups Projects
Commit aa404d71 authored by ale's avatar ale
Browse files

Run clamav-milter as well

parent fd56b324
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# chaperone (installed via pip). # chaperone (installed via pip).
PACKAGES=" PACKAGES="
clamav-daemon clamav-daemon
clamav-milter
curl curl
" "
......
milter.service: {
command: "/usr/sbin/clamav-milter --config-file=/tmp/clamav-milter.conf",
exit_kills: true,
}
Foreground true
MilterSocket inet:@MILTER_PORT@@0.0.0.0
ClamdSocket tcp:127.0.0.1:@CLAMD_PORT@
SupportMultipleRecipients true
TemporaryDirectory /tmp
OnInfected Reject
RejectMsg Rejecting harmful email: %v found
#!/bin/sh #!/bin/sh
# Generate the configuration by patching in environment variables. # Generate the configuration by patching in environment variables.
for file in clamd.conf clamav-milter.conf ; do
sed -e s,@CLAMD_PORT@,${CLAMD_PORT:-4494},g \ sed -e s,@CLAMD_PORT@,${CLAMD_PORT:-4494},g \
< /etc/clamav/clamd.conf \ -e s,@MILTER_PORT@,${MILTER_PORT:-4495},g \
> /tmp/clamd.conf < /etc/clamav/${file} \
> /tmp/${file}
done
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment