List Info

Thread: Re: Brand-new viruses, banned content and spamassassin




Re: Brand-new viruses, banned content and spamassassin
user name
2007-01-24 10:17:48
From: amavis-user-bounceslists.sourceforge.net
> 
> Giampaolo,
> 
> > What if I put PASS as the final destiny of banned
> > content? Is the banned content checked against SA
*and*
> > defanged (in this order) before delivery?
> 
> > My setup specifies defanging for banned content.
So, instead of using
> > banned_file_lover setting, I should put D_PASS in
the banned ccat and I
> > would get banneds defanged AND delivered to the
the folder in the user
> > mailbox they belong according to their spam score,
right?
> 
> With 2.5.0 yes.

I want it. No, I need it! 

Oh, by the way. Is it a per-user config, right?


> With 2.4.* the defanging does notice and act on all
flagged content types,
> but the catch is the SA is not called when content is
known to be banned
> or infected, so defanging does not know that it should
encapsulate message
> and attach a spam report.

Ah, that's why!


> With 2.5.0, SA will still be called even if banned file
is detected, so
> defanging would reliably mark such banned+spam mail
with a banned+spam
> report.
> Note however that I'm reluctant to call SA when mail is
known to be
> infected (for security reasons), so even in 2.5.0 when
recipient is a
> virus lover, and mail is also spam, it would not be
known to be spam
> and flagged as such. Enabling this is just a matter of
commenting out
> some lines, but I believe I won't do this in a released
code.

Well, I don't see any problem about this with known viri.
However, one may occasionally get some unknown viri too,
which may behave as bad as the firsts. So, avoiding SA on
viri maybe limits the risk, but doesn't avoid it. Why not
spawn a new child to run SA only on the specific message in
which a virus or a banned had been detected? Would it reduce
the risk?

One more question. The defang message is a bit crude and I
would like to personalize it. 2.5.x supports a defang
message template?

Also about templating in general. Two or three years ago I
tried to do an html template, but amavisd refused to work
correctly with it. At the epoch, I was said that custom
templating was restricted to a single text/plain mime part.
Is 2.5.x finally overcaming this limitations?

Thanks,

Giampaolo


>   Mark


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/

Re: Brand-new viruses, banned content and spamassassin
user name
2007-01-24 10:52:44
Giampaolo,

> > With 2.5.0 yes.
> I want it. No, I need it! 

Ok, tomorrow or maybe even today...

> Oh, by the way. Is it a per-user config, right?

Which? Enabling defanging, *_lovers, blocking_ccat and such
is per-user, but when defanging strikes it, it still
currently
applies the same message modification for all recipients.
Mail header editing is per-user, mail body editing is still
per-message.

> Well, I don't see any problem about this with known
viri. However, one may
> occasionally get some unknown viri too, which may
behave as bad as the
> firsts. So, avoiding SA on viri maybe limits the risk,
but doesn't avoid
> it. Why not spawn a new child to run SA only on the
specific message in
> which a virus or a banned had been detected? Would it
reduce the risk?

Actually the 2.5.0 does allow calling SA in a subprocess and
retrieving
results over a pipe from it. Actually even 2.4.5 supports
it:

  $sa_spawned = 0;  # true: run SA in a subprocess;  false:
call SA directly

although I intended to keep it low-profile. It seems to work
just
fine, it adds about 20..30 ms per SA call on our server.
Benefits
are separation of potential problems in SA and its external
modules
from affecting amavisd, and cleaner timeout aborts.
Drawback
is there are more processes now, so worst case (when all
child
processes are doing spam checks) memory requirements
double.
Try and see, set $sa_spawned=1 in amavisd.conf and that's
it.

> One more question. The defang message is a bit crude
and I would like to
> personalize it. 2.5.x supports a defang message
template?

Indeed, defanging is rather crude currently. Its main
limitation is
that it does not support per-recipient mail handling, it
affects the
whole message and can not split it if different recipients
would
require different handling (unlike other header edits, which
fully
support per-recipient editing). This is on a to-do list...

Also there are currently no templates for defanging,
modifications
are hard-wired. Something for the future. If someone would
like
to work on it, go ahead.

> Also about templating in general. Two or three years
ago I tried to do an
> html template, but amavisd refused to work correctly
with it. At the epoch,
> I was said that custom templating was restricted to a
single text/plain
> mime part. Is 2.5.x finally overcaming this
limitations?

No, status quo, still on a to-do list. I never came around
to work
on this, there were always some other more pressing
needs...

  Mark


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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 )