Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add X-Envelope-From header#3512

Open
Mortza81 wants to merge 1 commit intopostalserver:mainfrom
Mortza81:fix/add-x-envelope-from-header
Open

fix: add X-Envelope-From header#3512
Mortza81 wants to merge 1 commit intopostalserver:mainfrom
Mortza81:fix/add-x-envelope-from-header

Conversation

@Mortza81
Copy link

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

@Mortza81
Copy link
Author

Related to #3482

michaeldoehler pushed a commit to relationsoftware/postal that referenced this pull request Jan 21, 2026
Adds X-Envelope-From header to incoming SMTP messages containing the
original envelope sender address.

Cherry-picked from postalserver/postal PR postalserver#3512

Co-authored-by: Mortza81 <[email protected]>
Co-authored-by: openhands <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 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.

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