Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

A bounce in one organization suppresses the recipient for every organization

未关闭
#320 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
python
领域
backend

调研方向

Start by reading services/email/msa/models.py, especially SuppressionQuerySet.is_suppressed, then trace the only writer in services/email/msa/tasks.py at record_bounce. Determine the intended organization scope, expiry, and owner-visible behavior for cross-organization bounces; done means those decisions are recorded and covered by the relevant behavior tests.

由索引模型根据 Issue 内容生成。

描述

bug real

A bounce in one organization suppresses the recipient for every organization. One tenant can block a shared recipient address for all tenants for 30 days.

SuppressionQuerySet.is_suppressed treats a bounce entry from any organization as suppressing for 30 days, regardless of which organization is sending:

models.Q(org=org)
| models.Q(reason=self.model.Reason.BOUNCE, created_at__gte=bounce_cutoff)

A single permanent 5xx for a shared recipient address therefore blocks that address relay-wide for every other tenant. Examples of such a 5xx are a policy refusal, a spam block, or a full mailbox at the receiving host. The block also hits tenants that have a healthy relationship with the recipient. The suppression entry carries no indication of which tenant produced it. There is no owner-visible reason beyond the word "bounce".

Evidence:

  • services/email/msa/models.py: SuppressionQuerySet.is_suppressed
  • services/email/msa/tasks.py: record_bounce, the only writer of bounce entries

Decisions to make:

  • Must a cross-organization bounce suppress at all?
  • Must it expire faster than an organization's own bounce?
  • How does an organization learn that a recipient it never mailed is suppressed for it?

Found during the sandbox-credentials change (#259). This fault is older than that change.

主要语言
Python
星标
4
派生
0
平均合并
2 小时 40 分钟
30 天内合并 PR
163

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codingjoe/relay 的其他 Issue

查看 codingjoe/relay 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。