Re: spamd cannot trust envelope-from
Philip Ross <[email protected]> Tue, 02 Nov 2004 22:03:25 +0000
| Newsgroups | gmane.mail.exim.exiscan.user |
|---|---|
| Message-ID | <[email protected]> |
Søren Krøger wrote:
> my spamd won't run SPF checks on the X-Envelope-From address I'm adding
> manually by using acl_smtp_mail in the exim config.
>
> When running spamd with -D i get:
>
> debug: X-Envelope-From header found after 1 or more Received lines,
> cannot trust envelope-from
> debug: SPF: cannot get Envelope-From, cannot use SPF
>
> How can i fix this?
I've modified my received_header_text line to include the envelope from
in a form that SpamAssassin understands:
received_header_text = Received: \
${if def:sender_rcvhost {from $sender_rcvhost\n\t}\
{${if def:sender_ident {from $sender_ident }}\
${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}\
by $primary_hostname \
${if def:sender_address {(envelope-from\n\t\
<$sender_address>)\n\t}}\
${if def:received_protocol {with $received_protocol}} \
${if def:tls_cipher {($tls_cipher)\n\t}}\
(Exim $version_number)\n\t\
id $message_id\
${if def:received_for {\n\tfor $received_for}}
This format is described in the SpamAssassin Wiki:
http://wiki.apache.org/spamassassin/EnvelopeSenderInReceived
Phil