crowdsec: Bug/notifications/email: Content needs ... tags
Describe the bug
The default config for email notifications can trigger a high-scoring Spamassassin rules due to bare HTML without <html>...</html> enclosing tags.
To Reproduce Steps to reproduce the behavior:
- Set up email notifications, with minimal edits to the default
notifications/email.yaml - Trigger an email
- Check the content of the solitary text/html attachment
Expected behavior All reasonable attempts should be made for these emails to not look like spam.
Technical Information (please complete the following information):
- OS: Debian buster (currently oldstable)
- Version: crowdsec 1.3.2 from the APT repository
Additional context Spamassassin reports the following on crowdsec notification emails:
* 3.8 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML
* tag
and indeed the only part of a crowdsec notification email starts with:
<a href=...
Now, obviously, I’ve gone and whitelisted (won’t even go through Spamassassin processing) the crowdsec emails in question now, and I can tweak my local config file to add the missing tags (presumably also <body>), but this is a small improvement that could be made to the defaults.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- fix #1316 : add html body — committed to crowdsecurity/crowdsec by buixor 2 years ago
I’ve not yet seen an email with multiple decisions in it. All I can say is that the lack of them at all in this single alert case is an issue.
A quick test shows SA not caring about multiple
<html><body>...</body></html>in the same attachment. I can’t speak for any other anti-spam detection.Yes, that’s exactly the sort of thing I’ve applied in my local version of the config:
neomutt is happy to display it, and … ah, well now Spamassassin (I stopped the ‘live’ messages from going through it) has another hit on its
SCC_BODY_URI_ONLYrule. Let me check into that and get back to you so we can fashion the best format for this in one go.