Mail Loop Prevention

Stop Auto-Reply Communication Loops

Prevent infinite communication loops when two mail servers auto-reply to each other. This commonly occurs with delivery receipts, out-of-office messages, and automated notifications.

Features

Smart Detection

Detects duplicate messages by content hash with whitespace normalization. Only checks automated messages - never blocks user comments.

Configurable

Customize time window (default 48 hours) and threshold (default 3 messages) via system parameters.

How It Works

  1. Monitors automated messages (notifications, emails, auto-comments)
  2. Creates content hash of message body and subject
  3. Checks for identical messages within time window
  4. Blocks message if threshold is exceeded

Example: If 3 identical auto-replies are sent within 48 hours, the 4th attempt will be blocked, preventing an infinite loop.

Configuration

Configure via Settings → Technical → Parameters → System Parameters:

  • mail_loop_prevention.enabled - Enable/disable (default: True)
  • mail_loop_prevention.time_window_hours - Time window in hours (default: 48)
  • mail_loop_prevention.max_identical_messages - Max duplicates allowed (default: 3)