List Info

Thread: amavisd-new, spamassassin and sendmail milter




amavisd-new, spamassassin and sendmail milter
user name
2006-05-26 13:31:49
From: Bowie Bailey <Bowie_BaileyBUC.com>
>Lucio Chiappetti wrote:
 
>> We use sendmail 8.13.1, amavisd-new-2.1.2 in the
"milter"
>> configuration and spamassassin (spamd) 3.0.4. With
the exception of
>> spamassassin (newest release) the software is the
one which comes
>> bundled with Linux SuSE 9.2. 
>
>The newest version of SpamAssassin is 3.1.1.

OK, I should have said "newer", not
"newest". The choice was done by our 
system manager to align with the recommendation we got (see
original 
post), instead of sticking to the SuSE bundled stuff (which
we generally 
prefer).

But is the spamassassin version relevant at all to the
questions I asked ?

The only other reply I got (privately) was by Petr Rehor,
saying

Milter from amavisd-new package can't add detailed headers.
When you
use amavisd-new 2.2.0 or higher, you can use
http://amavisd-milter.sf
.net

I assume this definitely answers "NO" to my
questions (numbering in my 
previous post)

  1) can one generate the detailed spamassassin report with
milter ?
  2) can one generate the X-Spam headers with milter ?

I guess it might answer "NO" also to the
questions

  4) can one replace the default X-Virus-Scanned by
amavisd-new with
     a more detailed X-Spam-Virus-Scanned by amavis... on
host xxxx ?
  6) can one customize the reject=550 5.7.1 Message content
rejected
     with a longer and clearer message ?

Can anybody confirm ?
If all answers are negative, will they be positive with the
milter in
http://amavisd-milter.sf
.net ?

Most of this is something would be nice to have but we can
live without, 
the only one which is somehow relevant is question 6 (the
reject message).

However other questions are still unanswered. I'll repost a
shorter 
request for clarification soon.

------------------------------------------------------------
----------------
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133
Milano (Italy)
For more info : h
ttp://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------
----------------


_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
amavisd-new, spamassassin and sendmail milter
user name
2006-05-26 15:39:17
Lucio,

> But is the spamassassin version relevant at all to the
questions I asked ?

Not directly. But the quality of results you get from it
implies: the newer the better.

> The only other reply I got (privately) was by Petr
Rehor, saying
>
> Milter from amavisd-new package can't add detailed
headers. When you
> use amavisd-new 2.2.0 or higher, you can use
> http://amavisd-milter.sf
.net

Yes, using Petr Rehor's amavisd-milter is a must if you
need dynamic
headers (like X-Spam*) to be inserted, or Subject to be
edited (inserting
***SPAM***).  I'd recommend it even if you don't.

> I assume this definitely answers "NO" to my
questions (numbering in my
> previous post)
>
>   1) can one generate the detailed spamassassin report
with milter ?

Yes, sensible detailed reports in the header
($sa_spam_report_header=1)
are possible with 2.4.1 and Petr Rehor's milter.

Detailed reports in the mail body are not possible.
(unless you switch to Postfix, which opens a choice
for a working $defang_spam=1)

>   2) can one generate the X-Spam headers with milter ?

Yes, with Petr Rehor's milter.

>   4) can one replace the default X-Virus-Scanned by
amavisd-new with
>      a more detailed X-Spam-Virus-Scanned by amavis...
on host xxxx ?

Yes, you can place any reasonable text in $X_HEADER_LINE.
The default is:
  $X_HEADER_TAG = 'X-Virus-Scanned';
  $X_HEADER_LINE= "$myproduct_name at
$mydomain";

>   6) can one customize the reject=550 5.7.1 Message
content rejected
>      with a longer and clearer message ?

Not without modifying the program.
Here is the relevant code section (from 2.4.1):

my($status_and_reason) =
$r->setting_by_contents_category({
  CC_VIRUS,
    ["550 5.7.1", "VIRUS:
".join(", ", virusname)],
  CC_BANNED,
    ["550 5.7.1", "BANNED:
".join(", ",{$r->banned_parts ||
[]})],
  CC_SPAM,
    ["550 5.7.1", "SPAM".
($r->recip_blacklisted_sender ?
                          ', sender blacklisted' : '')],
  CC_SPAMMY,
    ["550 5.7.1", "SPAMMY"],
  CC_BADH.",1",
    ["550 5.6.3", "BAD_HEADER:
".(split(/\n/,$bad_headers[0]))[0]],
  CC_BADH,
    ["550 5.7.1", "BAD_HEADER:
".(split(/\n/,$bad_headers[0]))[0]],
  CC_OVERSIZED,
    ["552 5.3.4", "Message size
($mail_size B) ".
                  "exceeds recipient's size
limit"],
  CC_CATCHALL,
    ["550 5.7.1", "CLEAN"],
});


Mark


_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )