Thread View: news.software.nntp
3 messages
3 total messages
Started by Stef SM
Wed, 17 Nov 2004 23:39
[INN 2.4] Scan posts for viruses + allow only text formated posts
Author: Stef SM
Date: Wed, 17 Nov 2004 23:39
Date: Wed, 17 Nov 2004 23:39
19 lines
1864 bytes
1864 bytes
Hello, I have a linux box (RH 9) with : - mail (smtp + pop) with procmail + spamassassin + virus scanning with fprot ; - news (inn 2.4.1), with only local groups with restricted access. The users who can post news are registered and can post attachments that i would like to scan for viruses as it is done for the e-mails. Does anyone know how to do that ? Another question is : i'd like to allow only text formated posts (no html). Is it possible to configure inn to do that ? Regards. Stef.
Re: [INN 2.4] Scan posts for viruses + allow only text formated posts
Author: Jeffrey M. Vinocur
Date: Thu, 18 Nov 2004 00:53
Date: Thu, 18 Nov 2004 00:53
25 lines
2128 bytes
2128 bytes
In article <mn.90277d4b23b86c4d.22232@nospam.com>, Stef SM <nospam@nospam.com> wrote: > >The users who can post news are registered and can post attachments >that i would like to scan for viruses as it is done for the e-mails. >Does anyone know how to do that ? > >Another question is : i'd like to allow only text formated posts (no >html). Is it possible to configure inn to do that ? INN has the ability to filter posts using Perl or Python scripts. You can write your own (directions are in the "hook-perl" and "hook-python" files that come with INN), or you can install an existing filter package like Cleanfeed. Cleanfeed is quite complex and takes some fiddling to configure as desired. I believe the default is to filter HTML posts, and you can also filter some aspects of posting binaries. However, if you want to plug in a third-party virus scanner, you'd have to write some of that interface code yourself. -- Jeffrey M. Vinocur jeff@litech.org
Re: [INN 2.4] Scan posts for viruses + allow only text formated posts
Author: Aioe
Date: Sat, 27 Nov 2004 11:45
Date: Sat, 27 Nov 2004 11:45
18 lines
1620 bytes
1620 bytes
Stef SM wrote:
> The users who can post news are registered and can post attachments
> that i would like to scan for viruses as it is done for the e-mails.
> Does anyone know how to do that ?
You may use moderated groups (this is the simplest way imho).
> Another question is : i'd like to allow only text formated posts (no
> html). Is it possible to configure inn to do that ?
add somewhat like this in filter_nnrpd.pl ( inside filter_post() function )
----
return "Invalid Content-Type" ( $hdr{'Content-Type'} !~ /text\/plain/i );
----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads