Skip to content

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants