foxcpp / foxcpp/maddy

Check the From header for inbound mail

オープン
#654 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

new feature
主要言語
Go
スター
6.1k
フォーク
327
PR マージ指標
30日以内にマージされた PR はありません

説明

# Use case

I have received spam email whose domain of MAIL FROM is valid and the EHLO host is also allowed by the SPF.
However, the From header in the body is not match the MAIL FROM command.

This is a clear clue of spam. We need to check this situation. I have read the doc of check.authorize_sender,
it can be only used for checking the From header for outbound mail.

# Your idea for a solution

One solution is to add an additional new check for the FROM header, and implement the check logic in the bodyCheck callback.

However, this solution need to add certain configure in the configure file.

I suggest to write a fix check function in the mgspipeline or check_runner and make this as default check so that there is no need to add new configuration.

- [x] I'm willing to help with the implementation

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず check.authorize_sender のドキュメントを読み、issue で言及されている bodyCheck callback、mgspipeline、check_runner のエントリポイントを見つけます。受信した MAIL FROM と From headers を比較できる場所を特定し、意図されたデフォルトの check が追加設定なしで不一致を検出することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go
領域
authentication, security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。