RE: fork is vfork? (was Re: With similar rules, rspamd is about ten times faster than SpamAssassin.)

2013-03-08 Thread Giampaolo Tomassoni
Memory management is tricky though. Hard to tell which values sum up to the real thing. Probably best meter on Linux is the actual free value highlighted below? Check it before starting amavisd/spamd/whatnot and check it again after running for a while. Also double check it after killing

Re: fork is vfork?

2013-03-08 Thread Bernd Petrovitsch
On Don, 2013-03-07 at 13:12 -0500, David F. Skoll wrote: On Thu, 07 Mar 2013 19:04:22 +0100 Bernd Petrovitsch be...@petrovitsch.priv.at wrote: MD forks the worker process and the worker process initializes libperl and loads the perl script. Nope. Hmm, I had the impression ages ago with

Re: R: Rspamd project

2013-03-08 Thread Vsevolod Stakhov
On 07/03/13 23:26, Giampaolo Tomassoni wrote: I see there would be problems in naming your project RSA. Nevertheless, is there any plan to have the current rspamd features in a library, in order to allow third-parties to develop their own message handling interface wrapping it? At the moment,

RE: R: Rspamd project

2013-03-08 Thread Giampaolo Tomassoni
On 07/03/13 23:26, Giampaolo Tomassoni wrote: I see there would be problems in naming your project RSA. Nevertheless, is there any plan to have the current rspamd features in a library, in order to allow third-parties to develop their own message handling interface wrapping it? At the

[OT] Re: R: Rspamd project

2013-03-08 Thread Kevin A. McGrail
On 3/8/2013 8:39 AM, Giampaolo Tomassoni wrote: Also, what if someone wants to integrate your product into some kind of javamail server? (Apache James, in example Vsevolod, do you have forum for your project that you can post as this are a bit off topic for an SA list? Regards, KAM

RE: [OT] Re: R: Rspamd project

2013-03-08 Thread Giampaolo Tomassoni
On 3/8/2013 8:39 AM, Giampaolo Tomassoni wrote: Also, what if someone wants to integrate your product into some kind of javamail server? (Apache James, in example Vsevolod, do you have forum for your project that you can post as this are a bit off topic for an SA list? Regards, KAM

RE: Checking for email attachment name for containing Javscript code that could get potentially executed when displayed on a webpage.

2013-03-08 Thread Sharma, Ashish
Can you pastebin an example? Not sure what you mean with the attachment *name* contains JS code. Here is the requested sample http://pastebin.com/DN7PRnH4 The attachment name contains the javascript code at the bottom of the pasted file. thanks Ashish -Original Message- From: Axb

Re: fork is vfork?

2013-03-08 Thread David F. Skoll
On Fri, 08 Mar 2013 13:26:50 +0100 Bernd Petrovitsch be...@petrovitsch.priv.at wrote: Hmm, I had the impression ages ago with md-2.56 - did this change since then? [ And I mean with embedded-perl compiled-in and activated. ] No, I think it's been that way for ages. Then I have no idea, why

[OT] Re: R: Rspamd project

2013-03-08 Thread Vsevolod Stakhov
On 08/03/13 13:48, Giampaolo Tomassoni wrote: On 3/8/2013 8:39 AM, Giampaolo Tomassoni wrote: Also, what if someone wants to integrate your product into some kind of javamail server? (Apache James, in example Vsevolod, do you have forum for your project that you can post as this are a bit off

Re: [OT] Re: R: Rspamd project

2013-03-08 Thread Kevin A. McGrail
On 3/8/2013 8:48 AM, Giampaolo Tomassoni wrote: On 3/8/2013 8:39 AM, Giampaolo Tomassoni wrote: Also, what if someone wants to integrate your product into some kind of javamail server? (Apache James, in example Vsevolod, do you have forum for your project that you can post as this are a bit

Re: fork is vfork?

2013-03-08 Thread Henrik K
On Fri, Mar 08, 2013 at 09:09:27AM -0500, David F. Skoll wrote: I think that's what I said originally... but was met with skepticism from some. There is a difference in saying something and actually providing some data. I'm sorry but this sounds like True Believers (no need to prove

How to log detected locale/language?

2013-03-08 Thread Dan Mahoney, System Admin
Hey there all, It seems a pretty core function in SA is the ok_languages and ok_locales function. I'd like to be able to turn on LOGGING of detected locales before I set which are ok (or specifically, which are less ok) I'm sure there's a knob for this somewhere, can anyone tell me where?

Re: fork is vfork?

2013-03-08 Thread David F. Skoll
On Fri, 8 Mar 2013 17:42:58 +0200 Henrik K h...@hege.li wrote: $ pgrep -f 'spamd child' | while read p; do grep Private_ /proc/$p/smaps; done | awk 'BEGIN {p=0;} $1 ~ /Private_/ {p += $2;} END {print p;}' I would be interested in seeing the output of: pgrep -f 'spamd child' | while read p;

Re: How to log detected locale/language?

2013-03-08 Thread Axb
On 03/08/2013 04:46 PM, Dan Mahoney, System Admin wrote: Hey there all, It seems a pretty core function in SA is the ok_languages and ok_locales function. I'd like to be able to turn on LOGGING of detected locales before I set which are ok (or specifically, which are less ok) I'm sure there's

Re: fork is vfork?

2013-03-08 Thread Henrik K
On Fri, Mar 08, 2013 at 11:26:39AM -0500, David F. Skoll wrote: On Fri, 8 Mar 2013 17:42:58 +0200 Henrik K h...@hege.li wrote: $ pgrep -f 'spamd child' | while read p; do grep Private_ /proc/$p/smaps; done | awk 'BEGIN {p=0;} $1 ~ /Private_/ {p += $2;} END {print p;}' I would be

Re: fork is vfork?

2013-03-08 Thread David F. Skoll
On Fri, 8 Mar 2013 18:44:54 +0200 Henrik K h...@hege.li wrote: Virgin childs: 79MB private; 2GB shared (~40MB shared/child) Used childs: 1.2GB private; 1.2GB shared (~24MB shared/child) This is roughly what I am seeing with MIMEDefang also: Only 50% shared. It's better than nothing, but not

Re: fork is vfork? (was Re: With similar rules, rspamd is about ten times faster than SpamAssassin.)

2013-03-08 Thread Matus UHLAR - fantomas
On Thu, 7 Mar 2013 14:18:12 +0100 Matus UHLAR - fantomas uh...@fantomas.sk wrote: I'm not talking about the semantics but about the implementation. Simply said, vfork() was developed to avoid process memory copying used at fork(). on linux, fork() does NOT copy process memory. On 07.03.13

Re: fork is vfork?

2013-03-08 Thread Henrik K
On Fri, Mar 08, 2013 at 11:55:43AM -0500, David F. Skoll wrote: On Fri, 8 Mar 2013 18:44:54 +0200 Henrik K h...@hege.li wrote: Virgin childs: 79MB private; 2GB shared (~40MB shared/child) Used childs: 1.2GB private; 1.2GB shared (~24MB shared/child) This is roughly what I am seeing

Re: Checking for email attachment name for containing Javscript code that could get potentially executed when displayed on a webpage.

2013-03-08 Thread Ned Slider
On 08/03/13 14:05, Sharma, Ashish wrote: Can you pastebin an example? Not sure what you mean with the attachment *name* contains JS code. Here is the requested sample http://pastebin.com/DN7PRnH4 The attachment name contains the javascript code at the bottom of the pasted file. thanks

Re: fork is vfork?

2013-03-08 Thread Henrik K
On Fri, Mar 08, 2013 at 07:09:12PM +0200, Henrik K wrote: On Fri, Mar 08, 2013 at 11:55:43AM -0500, David F. Skoll wrote: On Fri, 8 Mar 2013 18:44:54 +0200 Henrik K h...@hege.li wrote: Virgin childs: 79MB private; 2GB shared (~40MB shared/child) Used childs: 1.2GB private;

RE: Checking for email attachment name for containing Javscript code that could get potentially executed when displayed on a webpage.

2013-03-08 Thread Benny Pedersen
Sharma, Ashish skrev den 2013-03-08 15:05: The attachment name contains the javascript code at the bottom of the pasted file. extracttext plugin ?, so bayes learning javascript attachments ?

RE: Checking for email attachment name for containing Javscript code that could get potentially executed when displayed on a webpage.

2013-03-08 Thread Benny Pedersen
John Hardin skrev den 2013-03-08 20:31: This is a simple, standard and robust solution to your problem that also prevents other attack vectors you haven't thought of yet. if php build with tidy its simple :)

Re: How to log detected locale/language?

2013-03-08 Thread Benny Pedersen
Dan Mahoney, System Admin skrev den 2013-03-08 16:46: I'm sure there's a knob for this somewhere, can anyone tell me where? perldoc Mail::SpamAssassin::Conf did you ment syslog ?