foxcpp / foxcpp/maddy

Check the From header for inbound mail

Ouverte
#654 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
new feature
Langage dominant
Go
Étoiles
6.1k
Forks
327
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

# 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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par lire la documentation de check.authorize_sender et repérez les points d’entrée bodyCheck callback, mgspipeline et check_runner mentionnés dans l’issue. Déterminez où les MAIL FROM et les From headers entrants peuvent être comparés, puis vérifiez que le check par défaut prévu détecte la discordance sans configuration supplémentaire.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go
Domaine
authentication, security
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.