vstakhov / rmilter

Another sendmail milter for different mail checks.
86 stars 18 forks source link

DKIM not working. File exists but not used. #165

Closed virusmoere closed 7 years ago

virusmoere commented 8 years ago

Error:

Nov 22 10:40:29 inter rmilter[10418]: <5edaaf838e>; cannot find key for domain domain.de at /etc/dkim/domain.de.dkim.key Nov 22 10:40:29 inter rmilter[10418]: <5edaaf838e>; cannot find key for domain domain.de at /etc/dkim/domain.de.rdkim-2016.key Nov 22 10:40:29 inter rmilter[10418]: <5edaaf838e>; cannot add signature for domain domain.de: not found

Config:

dkim { enable = true; domain { key = /etc/dkim; domain = "*"; selector = "dkim"; }; header_canon = relaxed; body_canon = relaxed; sign_alg = sha256; }

Any Ideas? Tried stable and unstable versions on the Ubuntu 16.04 Repository. Also tried the "dkim" selector and generated new keys for that. The files exist and have the correct permissions.

fatalbanana commented 8 years ago

The error message seems to suggest stat() on the file failed, does the rmilter user have permission to read & traverse the parent directory (/etc/dkim)?

You may want to consider using rspamd for DKIM signing

virusmoere commented 8 years ago

Thanks it works now after reowning the directory to the _rmilter user...

Why would I use rspamd for DKIM signing? Seems to be very complex in comparison to rmilter.

Thanks :-)