Guardian Digital Inc. >
InfoCenter >
Mailing List Archives >
Amavis
Amavis Mailing List Archive
Hi Shahid,
>>>Hello,
>>>
>>>I have sent a spam test and it seem to work and the subject it
>>>changed to "*** SPAM **. I also want original message to be in
>>>the attachment rather in BODY? Perhap the BODY will contain
>>>Info about the spam. That is related to 'report_safe 1'?
>>>
>>>In /usr/local/etc/mail/spamassassin/local.cf - I included this
>>>only: report_safe 1
>>>
>>>Then restart amavisd and no effect it made.
>>>
>>>Any clue?
>>
>> See amavisd faq:
>>
>> amavisd-new does not modify mail body or lets SA do it (with the
>> exception of
>> defanging, introduced with amavisd-new-2.0). All mail (header)
>> editing is done by amavisd-new and not by SA. Even though SA does
>> observe options in its configuration file to rewrite mail body and
>> modify mail header, the result is purposely not used by amavisd-new.
>>
>> You have the option to use defang in amavisd.conf.
>>
>> # 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)
>>
>> The option is: $defang_spam = 1;
>>
>> But it's only active when you use spam_lover or final_destiny=D_PASS.
>>
>> Daniel
>>
>
> That didnt seem to work:
>
> I have:
> $defang_spam = 1;
> $final_spam_destiny = D_PASS;
>
> So that mean I when I receive spam - it should put spam message in
> attachment?
This is correct. If the score of the incoming email is higher than the
value of "spam_kill_level" and the recipient of the mail is defined as
"spam_lover" or your final_destiny is D_PASS then the emails gets
wrapped in an attachment.
> Just another question I like to ask about virus.
> When a user send a virus to Shahid for example. The virus info is to
> be sent to Admin address. I like the virus detail to be sent Shahid
> rather all to virus detail to Admin?
You can handle this with several lookups. You can define a global
"virus admin" for example with the amavisd.conf setting
$virus_admin = "virusalert\@$mydomain";
If some notifications should be send to another account then you must
define this in a hash lookup table. This overrides the global setting.
Here's an example:
#advanced example, using a hash lookup table and a scalar default,
#lookup key is a recipient envelope address:
#@virus_admin_maps = ( # by-recipient maps
# { 'baduser@sub1.example.com' => 'HisBoss@sub1.example.com',
# '.sub1.example.com' => 'virusalert@sub1.example.com',
# '.example.com' => 'noc@example.com', # default for our virus senders
# },
# 'virusalert@hq.example.com', # catchall for the rest
#);
> It is like letting user know someone attempted to send a virus.
I've turned on the recipient notification for users. This is done by
the setting #$warnvirusrecip = 1; But you should not turn on the
sender notifications for spam and/or viruses because most of the
sender email adresses are faked.
> I like the way MailScanner handle this.
You can find interested answers here:
http://marc.theaimsgroup.com/?l=amavis-user&m=108362517406184&w=2
--
Best Regards
Daniel Luttermann
mailto:daniel.luttermann@t-online.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
|