@@ -3,9 +3,17 @@ Dockerized version of rspamd, based on Ubuntu.
3
3
4
4
## ToDo
5
5
- 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 `
7
7
(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
+ ```
9
17
10
18
## Usage
11
19
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
125
133
| -------- | ------- | ----------- |
126
134
| tbd | tbd | to be done |
127
135
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
129
137
```
130
- /etc/rspamd/
138
+ /etc/rspamd
131
139
├── actions.conf
132
140
├── cgp.inc
133
141
├── common.conf
@@ -149,6 +157,8 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
149
157
│ ├── antivirus.conf
150
158
│ ├── arc.conf
151
159
│ ├── asn.conf
160
+ │ ├── aws_s3.conf
161
+ │ ├── bimi.conf
152
162
│ ├── chartable.conf
153
163
│ ├── clickhouse.conf
154
164
│ ├── dcc.conf
@@ -157,13 +167,15 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
157
167
│ ├── dmarc.conf
158
168
│ ├── elastic.conf
159
169
│ ├── emails.conf
170
+ │ ├── external_relay.conf
160
171
│ ├── external_services.conf
161
172
│ ├── force_actions.conf
162
173
│ ├── forged_recipients.conf
163
174
│ ├── fuzzy_check.conf
164
175
│ ├── greylist.conf
165
176
│ ├── hfilter.conf
166
177
│ ├── history_redis.conf
178
+ │ ├── http_headers.conf
167
179
│ ├── maillist.conf
168
180
│ ├── metadata_exporter.conf
169
181
│ ├── metric_exporter.conf
@@ -213,6 +225,8 @@ or simply edit __local.d/worker-controller.inc__ and change or add the line
213
225
├── worker-fuzzy.inc
214
226
├── worker-normal.inc
215
227
└── worker-proxy.inc
228
+
229
+ 5 directories, 84 files
216
230
```
217
231
## Useful infos
218
232
- ` options.inc ` contains reference for rspamd statistics (seen in UI)
0 commit comments