Skip to content

Commit 6fdf2fb

Browse files
dirootsdiroots
andauthored
config changes for latest clamav-unofficial-sigs 7.2.5 (#46)
* config changes for latest clamav-unofficial-sigs 7.2.5 * update to new /etc/clamav-unofficial-sigs path in README * update makefile for pathes, and os.conf for restart option removal * change path in test/share as per makefile changes * changes in pathes --------- Co-authored-by: diroots <diroots@e.email>
1 parent fd6357c commit 6fdf2fb

8 files changed

Lines changed: 3209 additions & 1636 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ init_ldap: init_openldap init_redis
113113
-v "`pwd`/test/share/postfix/custom.conf":/var/mail/postfix/custom.conf \
114114
-v "`pwd`/test/share/postfix/sender_access":/var/mail/postfix/sender_access \
115115
-v "`pwd`/test/share/dovecot/conf.d":/var/mail/dovecot/conf.d \
116-
-v "`pwd`/test/share/clamav/unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
116+
-v "`pwd`/test/share/clamav-unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
117117
-h mail.domain.tld \
118118
-t $(NAME)
119119

@@ -194,7 +194,7 @@ init_ldap2: init_openldap init_redis
194194
-v "`pwd`/test/share/postfix/custom.conf":/var/mail/postfix/custom.conf \
195195
-v "`pwd`/test/share/postfix/sender_access":/var/mail/postfix/sender_access \
196196
-v "`pwd`/test/share/dovecot/conf.d":/var/mail/dovecot/conf.d \
197-
-v "`pwd`/test/share/clamav/unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
197+
-v "`pwd`/test/share/clamav-unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
198198
-h mail.domain.tld \
199199
-t $(NAME)
200200
fixtures_ldap2:
@@ -236,7 +236,7 @@ init_default: init_redis init_mariadb
236236
-v "`pwd`/test/share/postfix/custom.conf":/var/mail/postfix/custom.conf \
237237
-v "`pwd`/test/share/postfix/sender_access":/var/mail/postfix/sender_access \
238238
-v "`pwd`/test/share/dovecot/conf.d":/var/mail/dovecot/conf.d \
239-
-v "`pwd`/test/share/clamav/unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
239+
-v "`pwd`/test/share/clamav-unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
240240
-h mail.domain.tld \
241241
-t $(NAME)
242242

@@ -425,7 +425,7 @@ init_sieve: init_redis init_mariadb
425425
-v "`pwd`/test/share/postfix/custom.conf":/var/mail/postfix/custom.conf \
426426
-v "`pwd`/test/share/postfix/sender_access":/var/mail/postfix/sender_access \
427427
-v "`pwd`/test/share/dovecot/conf.d":/var/mail/dovecot/conf.d \
428-
-v "`pwd`/test/share/clamav/unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
428+
-v "`pwd`/test/share/clamav-unofficial-sigs/user.conf":/var/mail/clamav-unofficial-sigs/user.conf \
429429
-h mail.domain.tld \
430430
-t $(NAME)
431431

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,7 @@ Readme: https://github.com/extremeshok/clamav-unofficial-sigs
675675

676676
#### Enable clamav-unofficial-sigs
677677

678-
Create your `user.conf` file under `/mnt/docker/mail/clamav-unofficial-sigs` directory to configure clamav-unofficial-sigs updater. This file override the default configuration specified in [os.conf](https://github.com/mailserver2/mailserver/blob/master/rootfs/etc/clamav/unofficial-sigs/os.conf) and [master.conf](https://github.com/mailserver2/mailserver/blob/master/rootfs/etc/clamav/unofficial-sigs/master.conf). Don't forget, once you have completed the configuration of this file, set the value of `user_configuration_complete` to `yes` otherwise the script will not be able to execute.
679-
As [Yara rules are broken with Clamav = 0.100](https://github.com/extremeshok/clamav-unofficial-sigs/issues/203), we disable Yara rules for now.
678+
Create your `user.conf` file under `/mnt/docker/mail/clamav-unofficial-sigs` directory to configure clamav-unofficial-sigs updater. This file override the default configuration specified in [os.conf](https://github.com/mailserver2/mailserver/blob/master/rootfs/etc/clamav-unofficial-sigs/os.conf) and [master.conf](https://github.com/mailserver2/mailserver/blob/master/rootfs/etc/clamav-unofficial-sigs/master.conf). Don't forget, once you have completed the configuration of this file, set the value of `user_configuration_complete` to `yes` otherwise the script will not be able to execute.
680679

681680
```ini
682681
# /mnt/docker/mail/clamav-unofficial-sigs/user.conf
@@ -711,9 +710,12 @@ As [Yara rules are broken with Clamav = 0.100](https://github.com/extremeshok/cl
711710
# - 6. Enter the authorization signature into the config securiteinfo_authorisation_signature: replacing YOUR-SIGNATURE-NUMBER with your authorization signature from the link
712711
# securiteinfo_authorisation_signature="YOUR-SIGNATURE-NUMBER"
713712

714-
# We disable Yara rules for now because they are broken with Clamav releases > 0.100
715-
yararulesproject_enabled="no"
716-
enable_yararules="no"
713+
# We enable Yara rules as they are now working with Clamav releases > 0.100
714+
yararulesproject_enabled="yes"
715+
enable_yararules="yes"
716+
717+
# We enable interserver sigs
718+
interserver_enabled="yes"
717719

718720
# After you have completed the configuration of this file, set the value to "yes"
719721
user_configuration_complete="yes"

rootfs/etc/clamav/unofficial-sigs/master.conf renamed to rootfs/etc/clamav-unofficial-sigs/master.conf

Lines changed: 319 additions & 117 deletions
Large diffs are not rendered by default.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This file contains os configuration settings for clamav-unofficial-sigs.sh
2+
###################
3+
# This is property of eXtremeSHOK.com
4+
# You are free to use, modify and distribute, however you may not remove this notice.
5+
# Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
6+
# License: BSD (Berkeley Software Distribution)
7+
##################
8+
#
9+
# Script updates can be found at: https://github.com/extremeshok/clamav-unofficial-sigs
10+
#
11+
##################
12+
#
13+
# NOT COMPATIBLE WITH VERSION 3.XX / 4.XX CONFIG
14+
#
15+
################################################################################
16+
# SEE MASTER.CONF FOR CONFIG EXPLANATIONS
17+
################################################################################
18+
# Rename to os.conf to enable this file
19+
################################################################################
20+
21+
# Debian 9+ (stretch, buster)
22+
23+
clam_user="clamav"
24+
clam_group="clamav"
25+
26+
logrotate_group="adm"
27+
28+
clam_dbs="/var/lib/clamav"
29+
30+
clamd_pid="/run/clamav/clamd.pid"
31+
32+
clamd_reload_opt="s6-svc -2 /services/clamd"
33+
# this is in case the needed/expected keyword is now restart and not reload
34+
clamd_restart_opt="s6-svc -2 /services/clamd"
35+
36+
# this is enabled here https://github.com/mailserver2/mailserver/blob/master/rootfs/etc/clamav/unofficial-sigs/os.conf#L6
37+
clamd_socket="/run/clamav/clamd.ctl"
38+
39+
# https://eXtremeSHOK.com ######################################################

rootfs/etc/clamav/unofficial-sigs/os.conf

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)