OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Envelope-from headers for SPF

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Tue May 02 2006 - 11:54:28 CDT


At 10:00 AM 5/2/2006, Ramprasad wrote:
>Hi,
> I am using spamassassin 3.1.1 + postfix 2.2.5 for my
> mailservers. I am
>trying to get def_spf_whitelist_from working but I am
>getting errors
>like
>
>----------------
>[29194] dbg: spf: cannot get Envelope-From, cannot use SPF
>[29194] dbg: spf: def_spf_whitelist_from: could not find
>useable
>envelope sender
>--------------------
>
>Which headers is spamassassin looking for and how do I get
>postfix put
>those headers.

add a custom header:
# main.cf
smtpd_data_restrictions =
    check_sender_access regexp:/etc/postfix/add_x_envelope_from

# add_x_envelope_from
/^$/ PREPEND X-Envelope-From: <>
/^(.*)$/ PREPEND X-Envelope-From: <$1>

--
Noel Jones