spamassassin

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-09-09 21:41:19 +02:00
parent 4f7ed676bd
commit 14d6914588
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Custom SpamAssassin configuration for phishing template testing
# This file uses higher priority (99_) to override default score files
# that are loaded from updates_spamassassin_org
# Disable MISSING_DATE rule - phishing templates often don't have proper dates
score MISSING_DATE 0.0
# Disable WEIRD_PORT rule - we use non-standard ports for testing (8005, 8102, etc.)
score WEIRD_PORT 0.0
# Disable MIME_HTML_ONLY rule - phishing emails are typically HTML-only
score MIME_HTML_ONLY 0.0
# Disable MSGID_FROM_MTA_HEADER rule - our test environment may not have proper MTA headers
score MSGID_FROM_MTA_HEADER 0.0
# Disable ALL_TRUSTED rule - our test environment uses trusted hosts only
score ALL_TRUSTED 0.0
# Additional rules that might trigger in phishing templates
score HTML_MESSAGE 0.0
score MISSING_HEADERS 0.0
score MISSING_MID 0.0
score NO_RECEIVED 0.0
score NO_RELAYS 0.0
# Enable more detailed logging for debugging
# log_level 2

View File

@@ -77,6 +77,19 @@ services:
environment: environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1 MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1 MP_SMTP_AUTH_ALLOW_INSECURE: 1
MP_ENABLE_SPAMASSASSIN: spamassassin:783
depends_on:
- spamassassin
networks:
- default
# SpamAssassin - Spam detection and scoring
spamassassin:
image: axllent/spamassassin
container_name: spamassassin
restart: unless-stopped
volumes:
- ./config/spamassassin/99_local_override.cf:/etc/mail/spamassassin/99_local_override.cf:ro
networks: networks:
- default - default