Skip to content

[18.0][ADD] mail_recipient_blocklist: block outgoing recipients by pattern#222

Open
sergio-teruel wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-ADD-mail_recipient_blocklist
Open

[18.0][ADD] mail_recipient_blocklist: block outgoing recipients by pattern#222
sergio-teruel wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-ADD-mail_recipient_blocklist

Conversation

@sergio-teruel

@sergio-teruel sergio-teruel commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This module adds configurable recipient block rules for outgoing emails.

It allows administrators to define exact, domain, contains, wildcard, or regex
patterns to prevent Odoo from sending emails to matching recipients.

The block is applied at two levels:

  • mail.mail, filtering generated outgoing emails and cancelling emails where all recipients are blocked.
  • ir.mail_server, filtering direct SMTP deliveries as a final safeguard.

A default rule is included to block Amazon Marketplace aliases matching
@marketplace.amazon..

cc @Tecnativa TT63548

ping @carlosdauden @juancarlosonate-tecnativa

@OCA-git-bot OCA-git-bot added series:18.0 mod:mail_recipient_blocklist Module mail_recipient_blocklist labels Jul 2, 2026
@sergio-teruel sergio-teruel force-pushed the 18.0-ADD-mail_recipient_blocklist branch from bb14f28 to c524f1b Compare July 2, 2026 15:54
@sergio-teruel sergio-teruel force-pushed the 18.0-ADD-mail_recipient_blocklist branch from c524f1b to 7ce8da4 Compare July 2, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:mail_recipient_blocklist Module mail_recipient_blocklist series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants