Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clamav
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
docker
clamav
Commits
aa404d71
Commit
aa404d71
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Run clamav-milter as well
parent
fd56b324
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
build.sh
+1
-0
1 addition, 0 deletions
build.sh
conf/chaperone.d/clamav-milter.conf
+4
-0
4 additions, 0 deletions
conf/chaperone.d/clamav-milter.conf
conf/clamav/clamav-milter.conf
+8
-0
8 additions, 0 deletions
conf/clamav/clamav-milter.conf
gen-config.sh
+6
-3
6 additions, 3 deletions
gen-config.sh
with
19 additions
and
3 deletions
build.sh
+
1
−
0
View file @
aa404d71
...
@@ -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
"
"
...
...
This diff is collapsed.
Click to expand it.
conf/chaperone.d/clamav-milter.conf
0 → 100644
+
4
−
0
View file @
aa404d71
milter
.
service
: {
command
:
"/usr/sbin/clamav-milter --config-file=/tmp/clamav-milter.conf"
,
exit_kills
:
true
,
}
This diff is collapsed.
Click to expand it.
conf/clamav/clamav-milter.conf
0 → 100644
+
8
−
0
View file @
aa404d71
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
This diff is collapsed.
Click to expand it.
gen-config.sh
+
6
−
3
View file @
aa404d71
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment