is this just me? SPF cannot find Envelope-From?

Julian Field mailscanner at
Tue Jul 25 19:06:39 IST 2006

Take a look in spam.assassin.prefs.conf. Mine says this:

# SpamAssassin will attempt to discover the address used in the 'MAIL 
# phase of the SMTP transaction that delivered this message, if this data
# has been made available by the SMTP server. This is used in the 
# pseudo-header, and for various rules such as SPF checking.

# This should be explicitly set for MailScanner
envelope_sender_header X-ECS-MailScanner-From

Basically you have to tell it where and how to find the Envelope From 
address in the headers. So make sure your MailScanner is adding this 
header (obviously you can call it whatever you like, this is for my site).

Furnish, Trever G wrote:
> Hope this isn't considered OT.  Not sure if the problem is MS, SA, or
> (more likely) me.
> No matter what I set the envelope_sender_header to in
> spam.assassin.prefs.conf, SA claims it "cannot get Envelope-From, cannot
> use SPF".
> Is my test method is bad?  I take a known spam message that has been
> quarantined on another system, add an X-MailScanner-From header with my
> own address (for which SPF records are defined), and pass it into
> spamassassin -D --lint.
> The SA lint output does show that spam.assassin.prefs.conf is being
> loaded, after  The server listed in the Received headers is
> not one of mine.  Here's the test message headers that I've been using:
> ------Begin-test-message-headers------
> Return-Path: <g>
> Received: from (hn.kd.dhcp [] (may be forged))
>         by ( with
> SMTP id k6L5NOr6032242;
>         Fri, 21 Jul 2006 01:23:26 -0400
> Message-Id: <200607210523.k6L5NOr6032242 at>
> From: "Chrystal Kincaid" <hjltcrk at>
> To: ksbillups at
> Reply-To: Ksbillupscd7 at
> Subject: Re: Our bonus for you: $888 FREE TODAY!
> Date: Fri, 21 Jul 2006 13:56:10 -0800
> MIME-Version: 1.0
> Content-Type: text/plain;
>         format=flowed;
>         charset="iso-8859-1";
>         reply-type=original
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-Mailer: Eudora mail 1.1.3
> X-HJMailScanner-From: tgfurnish at
> X-Envelope-From: tgfurnish at
> Envelope-From: tgfurnish at
> ------End-test-message-headers------
> There are three similar headers there only because I was trying to find
> a header format that would make the "cannot get Envelope-From" error go
> away.
> --
> Trever

Julian Field
Buy the MailScanner book at

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

More information about the MailScanner mailing list