Spam Detection
You can analyze incoming emails for spam characteristics by examining the email content and headers delivered in the relay webhook payload. Implement your own scoring based on patterns, sender reputation, and content analysis.Basic Spam Filtering
Implement basic spam filtering based on the score:Configuring Spam Sensitivity
You can configure spam filtering sensitivity for your inbound domain through the Lettr dashboard under Domains → Inbound, then selecting your domain.Regardless of your dashboard filtering configuration, you can always implement your own filtering logic in your webhook handler.
Advanced Spam Detection
Combine spam score with additional checks:Allowlisting and Blocklisting
Maintain lists of trusted and blocked senders:Rate Limiting by Sender
Protect against email flooding:Quarantine Management
Implement a quarantine system for suspicious emails:Reporting Spam
When spam gets through your filters, maintain a local blocklist to prevent future deliveries from the same sender:Best Practices
Start with moderate filtering
Start with moderate filtering
Begin with moderate spam filtering and adjust based on your false positive/negative rates. It’s better to quarantine than outright reject initially.
Log all filtering decisions
Log all filtering decisions
Keep detailed logs of why emails were filtered, quarantined, or blocked. This helps debug issues and tune your filters.
Provide user feedback mechanisms
Provide user feedback mechanisms
Allow users to report spam that got through and legitimate emails that were blocked. Use this feedback to improve your filtering.
Review quarantine regularly
Review quarantine regularly
Set up processes to review quarantined emails and release false positives promptly.
Combine multiple signals
Combine multiple signals
Don’t rely solely on the spam score. Combine it with allowlists, blocklists, rate limiting, and content analysis.
Related Topics
Webhooks
Webhook payload structure
Routing
Route emails based on rules
Security
Security best practices
Best Practices
Overall inbound best practices