Check the From header for inbound mail
- Vorherrschende Sprache
- Go
- Sterne
- 6.1k
- Forks
- 327
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
# 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
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Lesen der Dokumentation zu check.authorize_sender und finde die im Issue erwähnten Einstiegspunkte bodyCheck callback, mgspipeline und check_runner. Ermittle, wo sich eingehendes MAIL FROM und From headers vergleichen lassen, und überprüfe anschließend, dass der beabsichtigte standardmäßige check die Abweichung ohne zusätzliche Konfiguration erkennt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- authentication, security
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100