Skip to content

Commit 61a57af

Browse files
committed
Rspamd 3.4
1 parent d573da3 commit 61a57af

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM neomediatech/ubuntu-base:20.04
22

3-
ENV VERSION=3.2-1~focal \
3+
ENV RSPAMD_VERSION=3.4-1~focal \
44
SERVICE=rspamd
55

66
LABEL maintainer="[email protected]" \
7-
org.label-schema.version=$VERSION \
7+
org.label-schema.version=$RSPAMD_VERSION \
88
org.label-schema.vcs-type=Git \
99
org.label-schema.vcs-url=https://github.com/Neomediatech/${SERVICE} \
1010
org.label-schema.maintainer=Neomediatech

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ Dockerized version of rspamd, based on Ubuntu.
33

44
## ToDo
55
- LOG ROTATION.
6-
`mv rspamd.log rspamd.log.1 && touch rspamd.log && chmod 666 rspamd.log`
6+
~~`mv rspamd.log rspamd.log.1 && touch rspamd.log && chmod 666 rspamd.log`
77
(inside the container) `kill -SIGUSR1 1`
8-
Thanks also to `tail -F `, commands above do their the job. Maybe there are better solutions (where?)
8+
Thanks also to `tail -F `, commands above do their the job. Maybe there are better solutions (where?)~~
9+
UPDATE:
10+
In /srv/scripts/logrotate.sh there's a script to rotate logs. It run on entrypoint.sh, prior to start rspamd.
11+
Default settings are:
12+
```
13+
LOG_SIZE=10485760 # after this size (in byte) the log is rotated
14+
DAYS_2_ROTATE=7 # but only after these days has been passed
15+
RETENTION=52 # how many logs to keep?
16+
```
917

1018
## Usage
1119
You can run this container with this command:
@@ -125,9 +133,9 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
125133
| -------- | ------- | ----------- |
126134
| tbd | tbd | to be done |
127135

128-
## Original rspamd tree (from Ubuntu 18.04 install) for reference
136+
## Original rspamd tree, from Ubuntu 20.04 install and rspamd 3.4, for reference
129137
```
130-
/etc/rspamd/
138+
/etc/rspamd
131139
├── actions.conf
132140
├── cgp.inc
133141
├── common.conf
@@ -149,6 +157,8 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
149157
│   ├── antivirus.conf
150158
│   ├── arc.conf
151159
│   ├── asn.conf
160+
│   ├── aws_s3.conf
161+
│   ├── bimi.conf
152162
│   ├── chartable.conf
153163
│   ├── clickhouse.conf
154164
│   ├── dcc.conf
@@ -157,13 +167,15 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
157167
│   ├── dmarc.conf
158168
│   ├── elastic.conf
159169
│   ├── emails.conf
170+
│   ├── external_relay.conf
160171
│   ├── external_services.conf
161172
│   ├── force_actions.conf
162173
│   ├── forged_recipients.conf
163174
│   ├── fuzzy_check.conf
164175
│   ├── greylist.conf
165176
│   ├── hfilter.conf
166177
│   ├── history_redis.conf
178+
│   ├── http_headers.conf
167179
│   ├── maillist.conf
168180
│   ├── metadata_exporter.conf
169181
│   ├── metric_exporter.conf
@@ -213,6 +225,8 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
213225
├── worker-fuzzy.inc
214226
├── worker-normal.inc
215227
└── worker-proxy.inc
228+
229+
5 directories, 84 files
216230
```
217231
## Useful infos
218232
- `options.inc` contains reference for rspamd statistics (seen in UI)

0 commit comments

Comments
 (0)