[Rspamd-Users] Data Persistence

David Reagan me at davidreagan.net
Sat Sep 19 16:07:59 UTC 2020


Hey all,

I'm a bit confused on how to make rspamd keep track of things.

I've configured a single redis instance in a docker container with a 
docker volume for it's data. I followed redis' docs on how to write the 
data to disk. But it doesn't seem like the data is sticking around. I'm 
not sure if it's redis, or rspamd that I haven't configured correctly...

Today, when I started testing things, rspamd's webui reported around 20 
scanned messages. Right now it's only reporting 10.

I have *not* restarted redis.

I *have* restarted rspamd.

Shouldn't rspamd have picked up on the data still in redis?

The docs say: "by default, Rspamd will use the default Redis database 
with number 0". Since I haven't said to use a different redis db, then 
I'd think it would use 0 every time.

My redis instance config:

```

protected-mode no
port 6379
loglevel notice
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
rdb-del-sync-files no
dir ./
appendonly yes
appendfsync everysec

```

My etc/rspamd/local.d/redis.conf:

```

write_servers = "spamfilter-db.example.org";
read_servers = "spamfilter-db.example.org";

```

What am I missing?


Thanks!


- David Reagan




More information about the Users mailing list