haraka / haraka-plugin-rspamd

Rspamd plugin for Haraka
https://www.npmjs.com/package/haraka-plugin-rspamd
MIT License
15 stars 14 forks source link

rmilter_headers.enabled=true does not add "Authentication-Results" header to mail #14

Closed PHPGangsta closed 5 years ago

PHPGangsta commented 5 years ago

system info

Haraka Haraka.js — Version: 2.8.23
Node v8.10.0
OS Linux testmaschine01 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
openssl OpenSSL 1.1.0g 2 Nov 2017

Expected behavior

in config/rspamd.ini: rmilter_headers.enabled=true

I expect headers from rspamd in the mail, for example "Authentication-Results" coming from SPF+DKIM+DMARC checks in rspamd.

Observed behavior

No "Authentication-Results" header found in the mail.

PHPGangsta commented 5 years ago

The problem is connected to adding "Authentication-Results" header, because it's an object and not a string: https://github.com/haraka/haraka-plugin-rspamd/issues/11#issuecomment-457873179

After fixing it, it's working. Sorry for the noise here.