Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

exim 4.63 and spamassasin

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


G.De_Leeuw at eurofer

Feb 4, 2007, 6:59 AM

Post #1 of 9 (366 views)
Permalink
exim 4.63 and spamassasin

hello the list

Actually I have this kind of headers produced by exim and sa-exim :
-Spam-Status: Yes, score=5.0 required=5.0 tests=BAYES_60,
MSGID_FROM_MTA_HEADER autolearn=no

I try to activate the full report in X-Spam-Report
like :

X-Spam-Report:
X-Spam-Report: SPAM: -------------------- Start SpamAssassin results ----------------------
X-Spam-Report: SPAM: This mail is probably spam. The original message has been altered
X-Spam-Report: SPAM: so you can recognise or block similar unwanted mail in future.
X-Spam-Report: SPAM: See http://spamassassin.org/tag/ for more details.
X-Spam-Report: SPAM:
X-Spam-Report: SPAM: Content analysis details: (6.6 hits, 5 required)
X-Spam-Report: SPAM: Hit! (0.6 points) From: does not include a real name
X-Spam-Report: SPAM: Hit! (0.5 points) Subject has an exclamation mark
X-Spam-Report: SPAM: Hit! (1.5 points) BODY: Asks you to click below
X-Spam-Report: SPAM: Hit! (1.1 points) BODY: Tells you how to stop further SPAM
X-Spam-Report: SPAM: Hit! (1.1 points) BODY: Contains a tollfree number
X-Spam-Report: SPAM: Hit! (1.8 points) BODY: Tells you to click on a URL
X-Spam-Report: SPAM:
X-Spam-Report: SPAM: -------------------- End of SpamAssassin results ---------------------

how can I do that ? I'm run on debian etch (testing)

Thanks in advance
Guy




--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


oliver at heesakkers

Feb 4, 2007, 7:15 AM

Post #2 of 9 (347 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

Op zondag 04 februari 2007 15:59, schreef De Leeuw Guy:
> ...
> I try to activate the full report in X-Spam-Report
> like :
>
> X-Spam-Report:
> X-Spam-Report: SPAM: -------------------- Start SpamAssassin results
> ---------------------- X-Spam-Report: SPAM: This mail is probably spam.
> The original message has been altered X-Spam-Report: SPAM: so you can
> ...
>
> how can I do that ? I'm run on debian etch (testing)
>

man Mail::SpamAssassin::Conf

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


holmgren at lysator

Feb 4, 2007, 7:37 AM

Post #3 of 9 (349 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

On Sunday 04 February 2007 15:59, De Leeuw Guy wrote:
> Actually I have this kind of headers produced by exim and sa-exim :
> -Spam-Status: Yes, score=5.0 required=5.0 tests=BAYES_60,
> MSGID_FROM_MTA_HEADER autolearn=no
>
> I try to activate the full report in X-Spam-Report

> how can I do that ? I'm run on debian etch (testing)

If you're using SA-Exim you get the headers defined
in /etc/spamassassin/local.cf (or other .cf files).

If report_safe is set to 0, you automatically get a "X-Spam-Report: _REPORT_"
header, where _REPORT_ is a list of rules hit, with descriptions, suitable
for placing in a header. But I think that if you use clear_headers *after*
report_safe 0, you have to use "add_header Report _REPORT_" yourself.

However, you can't get exactly the format you suggest (with multiple
X-Spam-Report fields). Is that necessary?

--
Magnus Holmgren holmgren [at] lysator
(No Cc of list mail needed, thanks)

"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans


G.De_Leeuw at eurofer

Feb 4, 2007, 9:52 AM

Post #4 of 9 (348 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

Yes I can read but report_safe does not working
Thanks for yor help
Guy

Oliver Heesakkers a écrit :
> Op zondag 04 februari 2007 15:59, schreef De Leeuw Guy:
>
>> ...
>> I try to activate the full report in X-Spam-Report
>> like :
>>
>> X-Spam-Report:
>> X-Spam-Report: SPAM: -------------------- Start SpamAssassin results
>> ---------------------- X-Spam-Report: SPAM: This mail is probably spam.
>> The original message has been altered X-Spam-Report: SPAM: so you can
>> ...
>>
>> how can I do that ? I'm run on debian etch (testing)
>>
>>
>
> man Mail::SpamAssassin::Conf
>
>

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


holmgren at lysator

Feb 4, 2007, 9:59 AM

Post #5 of 9 (347 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

On Sunday 04 February 2007 18:52, De Leeuw Guy wrote:
> Yes I can read but report_safe does not working

If you want to use report_safe (value 1 or 2), you have to set SARewriteBody:
0 in sa-exim.conf.

--
Magnus Holmgren holmgren [at] lysator
(No Cc of list mail needed, thanks)

"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans


holmgren at lysator

Feb 4, 2007, 10:00 AM

Post #6 of 9 (355 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

On Sunday 04 February 2007 18:59, Magnus Holmgren wrote:
> On Sunday 04 February 2007 18:52, De Leeuw Guy wrote:
> > Yes I can read but report_safe does not working
>
> If you want to use report_safe (value 1 or 2), you have to set
> SARewriteBody: 0 in sa-exim.conf.

I mean that you have to set SARewriteBody: 1, of course.

--
Magnus Holmgren holmgren [at] lysator
(No Cc of list mail needed, thanks)

"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans


G.De_Leeuw at eurofer

Feb 4, 2007, 10:01 AM

Post #7 of 9 (349 views)
Permalink
Re: exim 4.63 and spamassasin [In reply to]

Hello

Thanks for your attention.


Magnus Holmgren a écrit :
> If you're using SA-Exim you get the headers defined
> in /etc/spamassassin/local.cf (or other .cf files).
>
> If report_safe is set to 0, you automatically get a "X-Spam-Report: _REPORT_"
> header, where _REPORT_ is a list of rules hit, with descriptions, suitable
> for placing in a header. But I think that if you use clear_headers *after*
> report_safe 0, you have to use "add_header Report _REPORT_" yourself.
>
report_safe is commented
# report_safe 1 (may be the default value)
clear_headers is not on my local.cf

I try report_safe 0


> However, you can't get exactly the format you suggest (with multiple
> X-Spam-Report fields). Is that necessary?
>
No is not needed, just the score given by spamassasin.

Guy


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


G.De_Leeuw at eurofer

Feb 4, 2007, 1:43 PM

Post #8 of 9 (350 views)
Permalink
Re: exim 4.63 and spamassasin [solved] [In reply to]

Hello,

On /etc/exim4/conf.d/acl/40_exim4-config_check_data

# warn
# spam = Debian-exim:true
# message = X-Spam_score: $spam_score\n\
# X-Spam_score_int: $spam_score_int\n\
# X-Spam_bar: $spam_bar\n\
# X-Spam_report: $spam_report

I uncomment the line that I need

Thanks for your help Magnus

Guy


De Leeuw Guy a écrit :
> Hello
>
> Thanks for your attention.
>
>
> Magnus Holmgren a écrit :
>
>> If you're using SA-Exim you get the headers defined
>> in /etc/spamassassin/local.cf (or other .cf files).
>>
>> If report_safe is set to 0, you automatically get a "X-Spam-Report: _REPORT_"
>> header, where _REPORT_ is a list of rules hit, with descriptions, suitable
>> for placing in a header. But I think that if you use clear_headers *after*
>> report_safe 0, you have to use "add_header Report _REPORT_" yourself.
>>
>>
> report_safe is commented
> # report_safe 1 (may be the default value)
> clear_headers is not on my local.cf
>
> I try report_safe 0
>
>
>
>> However, you can't get exactly the format you suggest (with multiple
>> X-Spam-Report fields). Is that necessary?
>>
>>
> No is not needed, just the score given by spamassasin.
>
> Guy
>
>
>

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


holmgren at lysator

Feb 5, 2007, 4:34 AM

Post #9 of 9 (338 views)
Permalink
Re: exim 4.63 and spamassasin [solved] [In reply to]

On Sunday 04 February 2007 22:43, De Leeuw Guy wrote:
> On /etc/exim4/conf.d/acl/40_exim4-config_check_data
>
> # warn
> # spam = Debian-exim:true
> # message = X-Spam_score: $spam_score\n\
> # X-Spam_score_int: $spam_score_int\n\
> # X-Spam_bar: $spam_bar\n\
> # X-Spam_report: $spam_report
>
> I uncomment the line that I need

In the original post you were talking about the sa-exim package, but the above
has nothing to do with that; it uses the built-in "spam" condition and
corresponding expansion variables (aka Exiscan). You have to choose which to
use - there is no point using both. See the README.Debian.gz file of the
sa-exim package for a comparison.

If you decide to use Exiscan you might want to change the report template into
something more suitable for putting in the mail header. In local.cf put:

clear_report_template
report _REPORT_

--
Magnus Holmgren holmgren [at] lysator
(No Cc of list mail needed, thanks)

"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.