Skip to main content
Lettr analyzes incoming emails for spam characteristics. You can implement your own spam filtering logic in your webhook handler based on content analysis, sender reputation, and other signals.

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 DomainsInbound, 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

Begin with moderate spam filtering and adjust based on your false positive/negative rates. It’s better to quarantine than outright reject initially.
Keep detailed logs of why emails were filtered, quarantined, or blocked. This helps debug issues and tune your filters.
Allow users to report spam that got through and legitimate emails that were blocked. Use this feedback to improve your filtering.
Set up processes to review quarantined emails and release false positives promptly.
Don’t rely solely on the spam score. Combine it with allowlists, blocklists, rate limiting, and content analysis.
Be careful with aggressive spam filtering. False positives can cause you to miss important emails from customers or partners.

Webhooks

Webhook payload structure

Routing

Route emails based on rules

Security

Security best practices

Best Practices

Overall inbound best practices