mpaperno / spampd

SpamPD - Spam Proxy Daemon. A spam-filtering SMTP/LMTP proxy server using SpamAssassin in Perl. Since 2002.
GNU General Public License v3.0
34 stars 9 forks source link

Add X-Envelope-* headers before Received so they are not ignored by SpamAssassin #14

Closed kevinoid closed 6 years ago

kevinoid commented 7 years ago

When X-Envelope-From is added after Received, it is ignored by SpamAssassin, which logs the following message:

message: X-Envelope-From header found after 1 or more Received lines, cannot trust envelope-from

For reference, see /lib/Mail/SpamAssassin/PerMsgStatus.pm:2859.

To avoid this, add the headers to the beginning of the message.

Thanks for considering, Kevin

mpaperno commented 6 years ago

Thanks, sorry I missed this earlier!

kevinoid commented 6 years ago

No worries. Thanks @mpaperno!