[Feature request] Add official Stalwart Mail Server support to the CrowdSec Hub

Open
#1,938 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active

Research direction

Nothing in the payload names a file yet, so start by reading the existing Dovecot collection in the hub repository for the parser, scenario and hubtest layout, and the community bu5hm4nn/crowdsec-stalwart project as a reference. The issue asks for a Stalwart parser and a tested scenario for repeated SMTP and IMAP authentication failures, which needs sanitized sample logs from the requester. It is done when the collection has passing hubtests built on those logs and maintainers have agreed to adopt it.

Written by the indexing model from the issue text.

Description

What would you like to be added?

Please add an officially maintained CrowdSec Hub collection for Stalwart Mail Server.

A useful initial scope would include:

  • A parser for Stalwart authentication-related log events
  • A tested scenario for repeated SMTP and IMAP authentication failures
  • Acquisition and installation instructions
  • Sanitized sample logs and hubtest fixtures

Additional scenarios, such as user enumeration, SMTP scanning, ManageSieve or JMAP abuse, could be added where Stalwart's logs provide reliable event and source-IP data.

There is an existing community implementation that may be useful as a reference:
https://github.com/bu5hm4nn/crowdsec-stalwart

Would the CrowdSec maintainers consider reviewing or adopting a first-party implementation in the Hub? I can provide sanitized sample logs and help test it if useful.

Why is this needed?

Stalwart is a modern mail server, but I could not find an officially maintained Stalwart parser or protection collection in the CrowdSec Hub. CrowdSec already provides an official Dovecot collection, so administrators have a supported option for Dovecot logs but need to build or maintain Stalwart support themselves.

The existing crowdsec-stalwart project is community-maintained and is not an official CrowdSec Hub collection. A first-party, tested integration would make Stalwart easier to deploy with CrowdSec and provide users with a clear, maintained path for log acquisition, parsing, and detection.

Stalwart exposes structured event data, while its built-in file tracer writes text logs. The implementation should therefore be based on real, sanitized log samples and tests for the supported Stalwart versions.

Dominant language
Python
Stars
257
Forks
235
Avg merge
2d 10h
Merged PRs (30d)
26

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from crowdsecurity/hub

All issues in crowdsecurity/hub

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.