Skip to content

Add SPF/DNSBL/SpamAssassin/ClamAV headers to email #31

Description

@rrendec

Add SPF/DNSBL/SpamAssassin/ClamAV as X-Mailfilter-* headers to the email. This makes it much easier to diagnose unexpected email classification because scan results can be found inside the email and it's not necessary to dig up the logs.

Proposal:

  • X-Mailfilter-SPF - use Spf.resultStrMap[rsp.result]
  • X-Mailfilter-DNSBL - use a similar value as the Sys.log() call; add multiple headers (one for each DNSBL)
  • X-Mailfilter-SpamAssassin-Status - clean, spam or skipped (e.g. due to message size)
  • X-Mailfilter-SpamAssassin-Score - include score, required and bayes e.g. 2.7/5.0; 0.5
  • X-Mailfilter-SpamAssassin-Version - include version, subversion, rulesversion e.g. 3.4.6/2021-04-09/1923544
  • X-Mailfilter-ClamAV-Status - clean, infected; <virus_id> or skipped (e.g. due to message size)
  • X-Mailfilter-ClamAV-Version - include progver, dbver, dbdate e.g. ClamAV 1.0.7/27388/Wed Sep 4 04:40:46 2024

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions