Skip to content

Commit ce3e3d7

Browse files
committed
Upgrade ClamAV/1.0.5, enable DMARC check
1 parent 66a1a9b commit ce3e3d7

3 files changed

Lines changed: 39 additions & 8 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ RUN apt-get install -y --no-install-recommends \
3030
libgeo-ip-perl \
3131
libio-socket-ssl-perl \
3232
libnet-patricia-perl \
33+
libmail-dmarc-perl \
3334
razor \
3435
pyzor
3536

@@ -42,7 +43,7 @@ RUN apt-get install -y --no-install-recommends \
4243
# Amavis-new
4344
ENV AV_VERSION="1:2.13"
4445
ENV AV_REVISION="0"
45-
ENV AV_PACKAGE="1:2.13.0-3"
46+
ENV AV_PACKAGE="1:2.13.0-3+deb12u1"
4647
RUN apt-get install -y --no-install-recommends \
4748
amavisd-new=${AV_PACKAGE} \
4849
&& rm -rf /var/lib/apt/lists/*

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Related images:
1515
# Tags
1616
The following versions are available from DockerHub. The image tag matches the Amavisd-new version.
1717

18-
* [2.13.0.0, 2.13.0, 2.13, 2, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-amavis/tree/v2.13.0.0) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-amavis/blob/2.13.0.0/Dockerfile)
18+
* [2.13.0.1, 2.13.0, 2.13, 2, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-amavis/tree/v2.13.0.0) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-amavis/blob/2.13.0.1/Dockerfile)
1919

2020
# Features
2121
* [Amavis Checker](https://www.amavis.org/) v2.13.0
22-
* Virus detection using [ClamAV](https://www.clamav.net/) v1.0.3
22+
* Virus detection using [ClamAV](https://www.clamav.net/) v1.0.5
2323
* Spam detection using [SpamAssassin](https://spamassassin.apache.org/) v4.0.0
2424
* Seamless integration in any SMTP mail chain
2525

@@ -70,11 +70,7 @@ You can further customize Amavis, ClamAV and SpamAssassin configuration files. P
7070
1. (Re)Start the container. If you configuration was not copied correctly then log into the container (bash is available) and delete the changed files from the corresponding `/etc` folders. Then restart the container.
7171

7272
# Issues
73-
This Docker image is mature and provides scanning for my mailserver in production. However, several issues are still unresolved:
74-
75-
* [#2](https://github.com/technicalguru/docker-mailserver-amavis/issues/2) - DKIM support is missing
76-
* [#3](https://github.com/technicalguru/docker-mailserver-amavis/issues/3) - SPF support is missing
77-
* [#4](https://github.com/technicalguru/docker-mailserver-amavis/issues/4) - Add automatic SA and ClamAV rules refresh
73+
This Docker image is mature and provides scanning for my mailserver in production. No issues known right now.
7874

7975
# Contribution
8076
Report a bug, request an enhancement or pull request at the [GitHub Issue Tracker](https://github.com/technicalguru/docker-mailserver-amavis/issues). Make sure you have checked out the [Contribution Guideline](CONTRIBUTING.md)

etc/spamassassin/local.cf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,37 @@ ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
116116
# shortcircuit BAYES_00 ham
117117

118118
endif # Mail::SpamAssassin::Plugin::Shortcircuit
119+
120+
ifplugin Mail::SpamAssassin::Plugin::DMARC
121+
ifplugin Mail::SpamAssassin::Plugin::DKIM
122+
ifplugin Mail::SpamAssassin::Plugin::SPF
123+
dmarc_save_reports 0
124+
125+
header DMARC_REJECT eval:check_dmarc_reject()
126+
priority DMARC_REJECT 500
127+
describe DMARC_REJECT DMARC fail with reject policy
128+
score DMARC_REJECT 10
129+
130+
header DMARC_QUAR eval:check_dmarc_quarantine()
131+
priority DMARC_QUAR 500
132+
describe DMARC_QUAR DMARC fail with quarantine policy
133+
score DMARC_QUAR 6
134+
135+
header DMARC_NONE eval:check_dmarc_none()
136+
priority DMARC_NONE 500
137+
describe DMARC_NONE DMARC fail with none policy
138+
score DMARC_NONE 0.1
139+
140+
header DMARC_MISSING eval:check_dmarc_missing()
141+
priority DMARC_MISSING 500
142+
describe DMARC_MISSING DMARC policy missing
143+
score DMARC_MISSING 0.0
144+
145+
header DMARC_PASS eval:check_dmarc_pass()
146+
priority DMARC_PASS 500
147+
describe DMARC_PASS DMARC tests pass
148+
score DMARC_PASS -0.1
149+
endif
150+
endif
151+
endif
152+

0 commit comments

Comments
 (0)