On 07/23/07 11:56, Yousef Raffah wrote:
> Hello,
>
> I have spamassassin configured and running fine with postfix,
> amavisd-new and clamav. However, I would like to have spamassassin
> attach the spam message and report it to my recipient when I receive a
> spam message.



AFAIK, with amavisd-new, you need to configure that in amavisd.conf
using $defang_spam

See amavisd.conf-sample and amavisd.conf-default

# MIME defanging wraps the entire original mail in a MIME container of type
# 'Content-type: multipart/mixed', where the first part is a text/plain with
# a short explanation, and the second part is a complete original mail,
# enclosed in a 'Content-type: message/rfc822' MIME part.
# Defanging is only done when enabled (selectively by malware type),
# and mail is considered malware (virus/spam/...), and the malware is
allowed
# to pass (*_lovers or *_destiny=D_PASS)
#
$defang_virus = 1; # default is false: don't modify mail body
$defang_banned = 1; # default is false: don't modify mail body
# $defang_bad_header = 1; # default is false: don't modify mail body
# $defang_undecipherable = 1; # default is false: don't modify mail body
# $defang_spam = 1; # default is false: don't modify mail body

I think it is the same message that appears when you:
>
> spamassassin -tD < mail.txt
>
> Also how can I customize that message?
>
> Pointing me to the right direction or documentation will be highly
> appreciated as I don't know where to look for it in the spamassassin
> docs.
>
> Thanks in advance for any help..
>