User Tools

Site Tools


rspamd_installieren_und_dkim_key_erstellen

This is an old revision of the document!


rspamd und DKIM

apt install rspamd

Dann als nächstes den DKIM Key erzeugen. Falls Eurer DNS Server keine 2048 Bytes langen KEys handeln kann, ändert es ab auf 1024. Hetzner kann damit umgehen.

mkdir /var/lib/rspamd/dkim/
rspamadm dkim_keygen -b 2048 -s 2021 -k /var/lib/rspamd/dkim/2021.key > /var/lib/rspamd/dkim/2021.txt
chown -R _rspamd:_rspamd /var/lib/rspamd/dkim
chmod 440 /var/lib/rspamd/dkim/*

Ich nehme als Bezeichner für den Key das Jahr in dem ich ihn erstellt ahbe, aber das kann man handeln wie man will. Den fertigen DNS Eintrag bekommt ihr mit:

cat /var/lib/rspamd/dkim/2021.txt

Jetzt noch die Konfigurationsdatei für rspamd anlegen in /etc/rspamd/local.d/dkim_signing.conf mit folgendem Inhalt.

path = "/var/lib/rspamd/dkim/$selector.key";
selector = "2021";

### Enable DKIM signing for alias sender addresses
allow_username_mismatch = true;
rspamd_installieren_und_dkim_key_erstellen.1613039408.txt.gz · Last modified: 2021/02/11 10:30 by admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki