Skip to content

Replica: fix: add X-Envelope-From header#56

Open
lucaforni wants to merge 1 commit intomain-modalsourcefrom
Mortza81-postal-fix/add-x-envelope-from-header
Open

Replica: fix: add X-Envelope-From header#56
lucaforni wants to merge 1 commit intomain-modalsourcefrom
Mortza81-postal-fix/add-x-envelope-from-header

Conversation

@lucaforni
Copy link

Questa PR replica la PR originale: postalserver#3512

Autore originale: @Mortza81
Branch originale: fix/add-x-envelope-from-header
Repository originale: Mortza81/postal


Summary

This PR adds the X-Envelope-From header to incoming messages to preserve the SMTP
envelope sender (MAIL FROM) for SPF evaluation by SpamAssassin.

Background

SpamAssassin relies on message headers to determine the envelope sender for SPF checks.
If no suitable header is present (e.g. Return-Path or X-Envelope-From), SPF evaluation
may be skipped and debug messages such as cannot get Envelope-From are logged.

Motivation

Providing X-Envelope-From ensures the envelope sender is always available for SPF
evaluation, improving accuracy and consistency with SpamAssassin’s documented behavior.

References

Impact

  • No change to message delivery
  • Improves SPF reliability for incoming mail only

Co-authored-by: jarqvi <jarqvi.jarqvi@gmail.com>
@github-actions
Copy link

github-actions bot commented Feb 1, 2026

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale label Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants