Re: would SA benefit from port to Java

2006-11-19 Thread Justin Mason

Mark Martinec writes:
 On Friday November 17 2006 21:24, Giampaolo Tomassoni wrote:
  Besides, if there wasn't SA pluging, I would prefer a C/C++ version of SA.
  Wouldn't it run better? Wouldn't it be faster, wouldn't have a smaller
  memory footprint, better reclamation, better hooks for plugins etc? :)
 
 ...and buffer overruns, dangling pointers, poor maintainability,
 playground for security holes. If SA were written in C,
 I wouldn't let it examine mail being received from 'the wild'.

+1.

having perl's taint mode, as well, makes a big difference.

--j.


RE: Help with sa-learn when using Outlook 2003.

2006-11-19 Thread Jason Staudenmayer
I have a similar setup (qmail, clamav, spamassassin and qmail-scanner),
this setup works GREAT!!.
As for getting them back to the linux box, I use a public folder for all
spam and then use Pegasus mail to IMAP the folder and then save the
emails to files on a SMB share. Once on the share I run sa-learn and
then rsync to my other linux box and repeat. Works like a charm! I block
around 1000 msgs a day (I only have a 200 users and lots of spam)

Jason

P.S. If you would like some more info email off list.

 -Original Message-
 From: thekillerbean [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 19, 2006 2:59 AM
 To: users@spamassassin.apache.org
 Subject: Help with sa-learn when using Outlook 2003.
 
 
 
 We currently have an Exchange 2003 server that is under heavy 
 burden due to
 excessive SPAM.  The company is not willing to spend $$$ to 
 resolve the
 issue if it can be done on Linux - especially being that we 
 have several
 Linux boxes lying idle!  Hence, my plan is to implement 
 Sendmail as a front
 end mail server for Exchange that will do the SPAM fighting 
 (and possible
 virus scanning as well once I learn how to) then forward 
 e-mail to Exchange.
 
 My dilemma is that since all user accounts are on Exchange, 
 how do I bring
 these missed SPAM e-mail messages back to the Linux box for use with
 sa-learn?
 
 Cheers,
 tkb.
 
 -- 
 View this message in context: 
 http://www.nabble.com/Help-with-sa-learn-when-using-Outlook-20
03.-tf2663008.html#a7427062
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Help with sa-learn when using Outlook 2003.

2006-11-19 Thread Stuart Johnston

thekillerbean wrote:

We currently have an Exchange 2003 server that is under heavy burden due to
excessive SPAM.  The company is not willing to spend $$$ to resolve the
issue if it can be done on Linux - especially being that we have several
Linux boxes lying idle!  Hence, my plan is to implement Sendmail as a front
end mail server for Exchange that will do the SPAM fighting (and possible
virus scanning as well once I learn how to) then forward e-mail to Exchange.

My dilemma is that since all user accounts are on Exchange, how do I bring
these missed SPAM e-mail messages back to the Linux box for use with
sa-learn?


One option would be to use Maia Mailguard on the Linux box.  It can 
temporarily store a copy of all incoming mail.  When a user wants to 
report a message as spam, they log into the Maia web interface.  This 
way you can be certain that the message will not have been munged by the 
MUA.


Fwd: Àú=·Å=ÇÑ ¼­=¹Î= ÀÚ=±Ý=´ë==Ãô=¾È= ³»~!

2006-11-19 Thread Robert Nicholson

Is there any test that tests for high bit characters in the _header_?

I cannot find one and I notice this causes me to receive korean spam  
that's all image.





Problems running Spam Assassin

2006-11-19 Thread CosmicPerl

Hi,
  I installed the latest SpamAssassin on my server. At first all my tests
looked good, apart from load. So I setup spamc and spamd and everything
seemed great, for a short while at least.

A day later my mqueue had about 1500 messages in it, most with the error
local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL. This seems to be
coming up if the mailbox is full or the email is to an address that doesn't
exist.

It seemed that about every hour or so Sendmail was trying to flush out these
messages, causing 1000's of processes to be started and making the server
freeze up. Despite my Sendmail config having
define(`confMAX_DAEMON_CHILDREN', `12')dnl

In my procmailrc file I have:-
DROPPRIVS=yes
:0fw: spamassassin.lock
*  256000
| spamc

The SpamAssassin daemon was started with
/usr/bin/spamd -d -u nobody

At some point all mail stopped coming in. When I looked at the maillog file
it had lots of lines like:-
mkdir /root/.spamassassin: Permission denied
Which I guess was causing the problem. This wasn't a problem before so I'm
not sure why it happened. Any clues?


Basically I need to set things up so that when sendmail trys to flush I
don't get my server falling over.
Emails that are sent to addresses that don't exist that are currently
getting the error local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL
be delete from the queue automatically.
Ideally I'd like to give each different virtual server I have it's own
possibly spam folder. I'm using Webmin and have a 100 or so Virtual servers
so if anyone knows a good automated way of doing this that would be great.
Either way I can't have things go down again otherwise I'll loose all my
clients!

And SpamAssassin working again. At first it was just marking emails with
[spam] in the subject. Then Yesterday It then also started changing the
message to an attachment and having Spam detection software, running on the
system ns.cosmicsitehosting.com, has identified this incoming email as
possible spam... in the message text. I've no idea what was changed so that
this started happening. I didn't think I changed anything. Then last night
it stopped sending any emails.


Please help!

Thanks in advance.

Oh by the way my local.cf file contains
required_hits 10
rewrite_header Subject [SPAM]
report_safe 1
use_bayes 1
skip_rbl_checks 1
use_pyzor 1

-- 
View this message in context: 
http://www.nabble.com/Problems-running-Spam-Assassin-tf2664618.html#a7431008
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Fwd: Àú=·Å=ÇÑ ¼­=¹Î= ÀÚ=±Ý=´ë==Ãô=¾È= ³»~!

2006-11-19 Thread John D. Hardin
On Sun, 19 Nov 2006, Robert Nicholson wrote:

 Is there any test that tests for high bit characters in the _header_?
 
 I cannot find one and I notice this causes me to receive korean spam  
 that's all image.

I test apparently-foreign-language subject lines at the MTA level
using milter-regex. I think I posted my rules for that here a bit ago.

--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]FALaholic #11174 pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  Gun Control: The theory that a woman found dead in an alley, raped
  and strangled with her panty hose, is somehow morally superior to
  a woman explaining to police how her attacker got that fatal bullet
  wound. 
---



Re: would SA benefit from port to Java

2006-11-19 Thread Matt Kettler
Mark Martinec wrote:
 On Friday November 17 2006 21:24, Giampaolo Tomassoni wrote:
   
 Besides, if there wasn't SA pluging, I would prefer a C/C++ version of SA.
 Wouldn't it run better? Wouldn't it be faster, wouldn't have a smaller
 memory footprint, better reclamation, better hooks for plugins etc? :)
 

 ...and buffer overruns, dangling pointers, poor maintainability,
 playground for security holes. If SA were written in C,
 I wouldn't let it examine mail being received from 'the wild'.

   Mark

   

And postfix, your MTA, is written in ???

That said, I agree, trying to implement SA in C++ would be a NIGHTMARE.

C++ is NOT an optimal language for apps that are string-parsing intensive.

Drawbacks to C/C++:
- regex is not language native, added by PCRE library.
- Too many folks write C/C++ badly, failing to watch their memory.
This is substantially more likely in anything involving string handling,
which is everything SA does.
- C/C++ does not have many of the very nice libraries that perl has
for DNS, SPF, IP:Country, Base64, etc, etc.
-Again, the development team is perl programmers, unless you've got
a set of equivalent spam experts, or can prove the existing devs all
know your proposed language, even suggesting ANY port to ANY other
language is inane. You may as well suggest changing the spoken language
of the documentation to something other than English. Thus far, all the
writers speak English. Many know other spoken languages besides
English,  but I doubt you'd find another one that they ALL speak.







Re: Help with sa-learn when using Outlook 2003.

2006-11-19 Thread thekillerbean

Thanks guys.

I like the responses here.

However, I got a response to this post (see below) to my Nabble registered
email address and I highly suspected that it could be malicious.  There were
2 links in the response and funny enough, the Powerpoint related link works,
but the home page link reckons I'm forbidden access.  What is the policy on
such posters here on Nabble?

I can't trust such responses especially after you see the dialog I had with
the sender - definitely an arrogant individual who believes he has all the
answers!

Also, how can I block messages from coming back to me directly?  I'd like to
have responses only appear here, but I'd also like to retain the ability to
get emails when replies are added to my posts.

Cheers,
tkb.


--
-Original Message-
From: Michael Scheidell [mailto:[EMAIL PROTECTED] 
Sent: Monday, 20 November 2006 0:02
To: thekillerbean
Subject: Offlist: RE: Help with sa-learn when using Outlook 2003.

Point your self somewhere else then.

It works for everyone else in the world.

Works for firefox on linux, freebsd, macos, windows.
Works for IE on windows.

MAYBE there is something with your setup.

Have fun ever figuring out SA


 -Original Message-
 From: thekillerbean [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 19, 2006 8:35 AM
 To: Michael Scheidell
 Subject: RE: Offlist: RE: Help with sa-learn when using Outlook 2003.
 
 
 Why send me links that are not accessible???  I refuse to 
 download office apps due to high propensity for damage 
 especially being that I cannot even access your home page:
 
 
 Forbidden
 You don't have permission to access /spmtrap.php on this server.
 
 
 
 -Original Message-
 From: Michael Scheidell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, 20 November 2006 0:02
 To: thekillerbean
 Subject: Offlist: RE: Help with sa-learn when using Outlook 2003.
 
 
 
  -Original Message-
  From: thekillerbean [mailto:[EMAIL PROTECTED]
  Sent: Sunday, November 19, 2006 2:59 AM
  To: users@spamassassin.apache.org
  Subject: Help with sa-learn when using Outlook 2003.
  
  
  
  We currently have an Exchange 2003 server that is under heavy
  burden due to excessive SPAM.  The company is not willing to 
  spend $$$ 
 
 
  My dilemma is that since all user accounts are on Exchange, 
  how do I bring these missed SPAM e-mail messages back to the 
  Linux box for use with sa-learn?
 
 There really is more to it than that:
 The spam box needs to know  more about your users than a 
 standalone box
 does.
 It needs to pull information from, and send information to AD and
 exchange.
 
 If you time is worth nothing...  Set up spam assassin on linux, google
 for sa-learn+imap.
 
 It took us 12 years of twiddling with various products to finally get
 one that did what it should:
 Block spam, not block real email, let it administrators administer the
 box, let users have limited access to their own stuff.
 
 If there is any chance that they might consider a commercial solution,
 email me.
 
 I have provided links with information.
 http://www.spammertrap.com
 
 Ppt with pricing:
 http://www.spammertrap.com/downloads/spammertrap.ppt
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-with-sa-learn-when-using-Outlook-2003.-tf2663008.html#a7432834
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Àú=·Å=ÇÑ ¼­=¹Î= ÀÚ=±Ý=´ë==Ãô=¾È= ³»~!

2006-11-19 Thread Robert Nicholson
Yeah that was appreciated but in my case I don't have control over  
the MTA for my domain.


All of that said why isn't there any check for foreign language  
subjects in SA right now?



On Nov 19, 2006, at 11:08 AM, John D. Hardin wrote:


On Sun, 19 Nov 2006, Robert Nicholson wrote:


Is there any test that tests for high bit characters in the _header_?

I cannot find one and I notice this causes me to receive korean spam
that's all image.


I test apparently-foreign-language subject lines at the MTA level
using milter-regex. I think I posted my rules for that here a bit ago.

--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]FALaholic #11174 pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-- 
-

  Gun Control: The theory that a woman found dead in an alley, raped
  and strangled with her panty hose, is somehow morally superior to
  a woman explaining to police how her attacker got that fatal bullet
  wound.
-- 
-






Re: Help with sa-learn when using Outlook 2003.

2006-11-19 Thread Daryl C. W. O'Shea

On 11/19/2006 3:01 PM, thekillerbean wrote:


-Original Message-
From: Michael Scheidell [mailto:[EMAIL PROTECTED] 
Sent: Monday, 20 November 2006 0:02

To: thekillerbean
Subject: Offlist: RE: Help with sa-learn when using Outlook 2003.

Point your self somewhere else then.

It works for everyone else in the world.


Yeah, if they've got the required auth credentials.



Works for firefox on linux, freebsd, macos, windows.
Works for IE on windows.


Probably, but not on Windows, Linux and Solaris here without auth 
credentials.




MAYBE there is something with your setup.

Have fun ever figuring out SA



-Original Message-
From: Michael Scheidell [mailto:[EMAIL PROTECTED] 
Sent: Monday, 20 November 2006 0:02

To: thekillerbean
Subject: Offlist: RE: Help with sa-learn when using Outlook 2003.



It took us 12 years of twiddling with various products to finally get
one that did what it should:
Block spam, not block real email, let it administrators administer the
box, let users have limited access to their own stuff.

If there is any chance that they might consider a commercial solution,
email me.

I have provided links with information.
http://www.spammertrap.com

Ppt with pricing:
http://www.spammertrap.com/downloads/spammertrap.ppt


I'd seriously think, twice, no eight times, before considering buying a 
mail appliance from someone who took since 1995 to get it right.


Did it really take that long or are you just trying to scare people off 
of SA and on to your client list?



Daryl


Re: Help with sa-learn when using Outlook 2003.

2006-11-19 Thread Steven Stern
thekillerbean wrote:
 We currently have an Exchange 2003 server that is under heavy burden due to
 excessive SPAM.  The company is not willing to spend $$$ to resolve the
 issue if it can be done on Linux - especially being that we have several
 Linux boxes lying idle!  Hence, my plan is to implement Sendmail as a front
 end mail server for Exchange that will do the SPAM fighting (and possible
 virus scanning as well once I learn how to) then forward e-mail to Exchange.
 
 My dilemma is that since all user accounts are on Exchange, how do I bring
 these missed SPAM e-mail messages back to the Linux box for use with
 sa-learn?
 
 Cheers,
 tkb.
 

See this:

http://sstern.ccim.com/2006/07/14/training-sitewide-spam-filters/

It shows how I set up sitewide Bayes on 3 Linux MX servers using
Exchange/Outlook.

-- 

  Steve


Re: RFI scores, bad scores, etc

2006-11-19 Thread Matt Kettler
Michael Scheidell wrote:
 While we are talking about changing scores in 3.2 to eliminate spam, how
 about getting rid of negative HABEAS scores that allow spam?
   

Why not file a complaint against evite with habeas. After all, the
habeas accreditation system only works if abusers get reported.

In this case, evite is being abused by someone else, but that alone
suggests evite should NOT be on habeas. Anyone can use evite to send
messages...




SpamAssassin wins Best Linux-based Anti-spam Solution

2006-11-19 Thread Justin Mason
hi all --

I'm happy to announce that SpamAssassin has won the Best Linux-based
Anti-spam Solution award from Linux New Media Awards 2006, at LinuxWorld
in Cologne, Germany:

  http://www.linuxnewmedia.de/Award_2006

It got 69% of the vote, compared to bogofilter's 11% and Kaspersky
Anti-spam's 8%. sorry guys ;)

Linux New Media AG publishes Linux Magazine, along with several
other imprints in multiple countries:

  http://www.linux-magazine.com/

--j.


spamd error -- max-children?

2006-11-19 Thread Ron Freidel
Hi All,

We run a relatively small (amount of clients) freebsd email hosting
server, was running spamassassin: 3.0.2 on a qmail server. We took on a
new client who was recieving alot of spam, as their old provider kept
telling them there was nothing that could be done about spam.

Well, our server easily handled the spam prior to this client, then
suddenly the spam level increased from around 300 a day to about 6000 a
day. The server itself is a quad xeon with 1Gig of ram, I plan to
upgrade the ram tomorrow.

I upgraded spamassassin to 3.1.7 to take advantage of the
features/fixes, and to take care of the fact that while running 3.0.2
spamassassin eventually took all available ram and swap, then died, I
had to reboot anyway so did the upgrade.

After the upgrade I began seeing errors like...
prefork: server reached --max-children setting, consider raising it

This was while running spamassassin under freebsd's stock sa-spamd.sh,
and during a spam attack.

I made this change...
command_args=-d -m 10 -r ${pidfile}

So it is now running as...
/usr/local/bin/spamd -c -d -m 10 -r /var/run/spamd/spamd.pid
(perl5.8.5) root  

Now the error has changed to...
spamd[2817]: spamd: handled cleanup of child pid 9679 due to SIGCHLD
spamd[2817]:Use of uninitialized value in numeric
eq (==)
at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm
line 689

And here's line 689
687   foreach my $pid (@pids) {
688 my $k = $kids-{$pid};
689 if ($k == PFSTATE_IDLE) {
690   $statestr .= 'I';
691   $num_idle++;

Is this truely a problem with spamassassin? Or could I have a problem
elsewhere? Do I need to make an additional change in how it is running?

All perl mods and cpan have been updated to latest versions, --lint
contains no errors.

-- 
Ron
System Administrator
Computer Geex, Inc.
(406) 494-5806


Re: spamd error -- max-children?

2006-11-19 Thread Steven Stern
Ron Freidel wrote:
 Hi All,
 
 We run a relatively small (amount of clients) freebsd email hosting
 server, was running spamassassin: 3.0.2 on a qmail server. We took on a
 new client who was recieving alot of spam, as their old provider kept
 telling them there was nothing that could be done about spam.
 
 Well, our server easily handled the spam prior to this client, then
 suddenly the spam level increased from around 300 a day to about 6000 a
 day. The server itself is a quad xeon with 1Gig of ram, I plan to
 upgrade the ram tomorrow.
 
 I upgraded spamassassin to 3.1.7 to take advantage of the
 features/fixes, and to take care of the fact that while running 3.0.2
 spamassassin eventually took all available ram and swap, then died, I
 had to reboot anyway so did the upgrade.
 
 After the upgrade I began seeing errors like...
 prefork: server reached --max-children setting, consider raising it
 
 This was while running spamassassin under freebsd's stock sa-spamd.sh,
 and during a spam attack.
 
 I made this change...
 command_args=-d -m 10 -r ${pidfile}
 
 So it is now running as...
 /usr/local/bin/spamd -c -d -m 10 -r /var/run/spamd/spamd.pid
 (perl5.8.5) root  
 
 Now the error has changed to...
 spamd[2817]: spamd: handled cleanup of child pid 9679 due to SIGCHLD
 spamd[2817]:Use of uninitialized value in numeric
 eq (==)
 at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm
 line 689
 
 And here's line 689
 687   foreach my $pid (@pids) {
 688 my $k = $kids-{$pid};
 689 if ($k == PFSTATE_IDLE) {
 690   $statestr .= 'I';
 691   $num_idle++;
 
 Is this truely a problem with spamassassin? Or could I have a problem
 elsewhere? Do I need to make an additional change in how it is running?
 
 All perl mods and cpan have been updated to latest versions, --lint
 contains no errors.
 


--
This may seem dumb, but change -m 10 to -m10.  My command line has
-m5 with no space.

  Steve


Simple net tests command

2006-11-19 Thread Gary V
I understand since 3.1.6, 'spamassassin --lint -D' turns off net tests and 
AWL. I would like to request a feature that provides the functionality of 
what was lost here. It's a pain to have to perform the additional task of 
locating a test message so debug has something legitimate to work with. 
Maybe something like 'spamassassin --test -D' could bring back the old 
behavior. Some of us also counted on this to create initial user_prefs and 
AWL files for us.


Gary V

_
MSN Shopping has everything on your holiday list. Get expert picks by style, 
age, and price. Try it! 
http://shopping.msn.com/content/shp/?ctId=8000,ptnrid=176,ptnrdata=200601tcode=wlmtagline




Re: spamd error -- max-children?

2006-11-19 Thread Ron Freidel
On Sun, 19 Nov 2006 15:48:16 -0600

  command_args=-d -m 10 -r ${pidfile}

 --
 This may seem dumb, but change -m 10 to -m10.  My command line has
 -m5 with no space.
 
   Steve

I can't believe it was something so simple, while they havent been hit
with alot of spams while I have been watching, I have not seen that
error.

-- 
Ron
System Administrator
Computer Geex, Inc.
(406) 494-5806


sa-learn for normal users

2006-11-19 Thread Richard van der Hoff
I know this has come up before, but I've not really been able to find a 
satisfactory answer to it.


The problem I have is that there is no way for sa-learn to update scores 
in a Bayes or AWL SQL database without having full SELECT, INSERT, 
UPDATE and DELETE privileges on the relevant databases - which basically 
means that every user can see and alter every other user's data.


Is it possible to use spamd to help with the learning such that
privileges are appropriately restricted? I'd prefer to avoid solutions 
involving storing spam in temporary mailboxes if possible.


[I originally raised this as a bug, #5184... sorry if
that was the wrong thing to do... different projects, different
conventions].

Cheers

Richard



RE: RFI scores, bad scores, etc

2006-11-19 Thread Michael Scheidell

 -Original Message-
 From: Matt Kettler [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 19, 2006 3:59 PM
 To: Michael Scheidell
 Cc: users@spamassassin.apache.org
 Subject: Re: RFI scores, bad scores, etc
 
 
 Michael Scheidell wrote:
  While we are talking about changing scores in 3.2 to 
 eliminate spam, 
  how about getting rid of negative HABEAS scores that allow spam?

 
 Why not file a complaint against evite with habeas. After 
 all, the habeas accreditation system only works if abusers 
 get reported.

Done first thing.

 
 In this case, evite is being abused by someone else, but that 
 alone suggests evite should NOT be on habeas. Anyone can use 
 evite to send messages...
If it is so easy to spam using evite, why bother? 

 
 
 


Re: spamd error -- max-children?

2006-11-19 Thread Ron Freidel
On Sun, 19 Nov 2006 15:27:38 -0700
Ron Freidel [EMAIL PROTECTED] wrote:

 On Sun, 19 Nov 2006 15:48:16 -0600
 
   command_args=-d -m 10 -r ${pidfile}
 
  --
  This may seem dumb, but change -m 10 to -m10.  My command line has
  -m5 with no space.

I spoke too soon earlier, when the server gets hit hard with spam I am
still seeing the error

Use of uninitialized value in numeric eq (==)
at /usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm
line 689

-- 
Ron
System Administrator
Computer Geex, Inc.
(406) 494-5806


Re: spamd error -- max-children?

2006-11-19 Thread Stephen Walsh




On Sun, 19 Nov 2006 15:27:38 -0700
Ron Freidel [EMAIL PROTECTED] wrote:

I spoke too soon earlier, when the server gets hit hard with spam I am
still seeing the error

I had the same problem, and removed the --max-children arguement
completely. I know this is probably resulting in the death of small kittens
somewhere, but it's prevented my spamd from crashing due to no
childprocesses being available.

Now I just have the annoying bug #15999 where milter dies and needs
restarting.

Stephen Walsh
[EMAIL PROTECTED]
Red Hat Certified Technician
Client Support Officer (Technology)
Australian Catholic University (Limited)
PO Box 256, Dickson ACT 2602
Phone: +61 2 6209 1133
Fax: +61 2 6209 1179
Mobile: +61 419 496796
+
CRICOS Registration: 4G, 00112C, 00873F, 00885B
ABN 15 050 192 660

+




Re: Simple net tests command

2006-11-19 Thread Matt Kettler
Gary V wrote:
 I understand since 3.1.6, 'spamassassin --lint -D' turns off net tests
 and AWL. I would like to request a feature that provides the
 functionality of what was lost here. It's a pain to have to perform
 the additional task of locating a test message so debug has something
 legitimate to work with.
There's two included in the SA tarball.. It really shouldn't be *that* hard.

But I would agree with your suggestion below:
 Maybe something like 'spamassassin --test -D' could bring back the old
 behavior. 
Fair enough, although really this would have to be revamped
considerably. The old --lint did NOT contain any Received: headers, so
there wasn't any real testing of the DNS based network checks. I think a
good second reason why network tests were turned off in --lint is
because people actually thought it was a useful test for them. Other
than Razor/Pyzor/DCC, it's a pretty useless test case for network tests.

If SA adds a --test, the message used should be reasonably complete,
and not a trivial dummy.
 Some of us also counted on this to create initial user_prefs and AWL
 files for us.
Ouch. Well, that's what you get for counting on side effects.

It might be another good idea to add a --init which creates the
user_prefs, awl and bayes DB files, as appropriate for the current
config. This would also have the benefit of not populating the AWL with
a dummy record.

Even SA 2.60 never advertised --lint as being useful for anything but
checking the rulefile syntax:

--lint
Syntax check (lint) the rule set and configuration files, reporting
typos and rules that do not compile correctly. Exits immediately with 0
if there are no errors, or greater than 0 if any errors are found.



Re: sa-learn for normal users

2006-11-19 Thread Stuart Johnston

Richard van der Hoff wrote:
I know this has come up before, but I've not really been able to find a 
satisfactory answer to it.


The problem I have is that there is no way for sa-learn to update scores 
in a Bayes or AWL SQL database without having full SELECT, INSERT, 
UPDATE and DELETE privileges on the relevant databases - which basically 
means that every user can see and alter every other user's data.


Is it possible to use spamd to help with the learning such that
privileges are appropriately restricted? I'd prefer to avoid solutions 
involving storing spam in temporary mailboxes if possible.


You can learn with spamc and the -L switch.


Re: Simple net tests command

2006-11-19 Thread Gary V

Gary V wrote:



 I understand since 3.1.6, 'spamassassin --lint -D' turns off net tests
 and AWL. I would like to request a feature that provides the
 functionality of what was lost here. It's a pain to have to perform
 the additional task of locating a test message so debug has something
 legitimate to work with.


Matt wrote:

There's two included in the SA tarball.. It really shouldn't be *that* 
hard.


No, it's not, but if you are setting up a new system and installing from a 
package and wish to test Pyzor/Razor/DCC as you add and configure them it 
can be disruptive to have to download source code simply to obtain a test 
message.



But I would agree with your suggestion below:
 Maybe something like 'spamassassin --test -D' could bring back the old
 behavior.
Fair enough, although really this would have to be revamped
considerably. The old --lint did NOT contain any Received: headers, so
there wasn't any real testing of the DNS based network checks. I think a
good second reason why network tests were turned off in --lint is
because people actually thought it was a useful test for them. Other
than Razor/Pyzor/DCC, it's a pretty useless test case for network tests.

If SA adds a --test, the message used should be reasonably complete,
and not a trivial dummy.


Yes, that would be ideal.

Gary V

_
Share your latest news with your friends with the Windows Live Spaces 
friends module. 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmk




Re: would SA benefit from port to Java

2006-11-19 Thread Charlie Clark


Am 17.11.2006 um 20:36 schrieb Eric A. Hall:



Thinking about the GPL Java announcement some, and trying to  
imagine the
kinds of opportunities this allows for, it occurs to me that  
SpamAssassin

might be a natural fit for Java.


Why on earth do you come to that conclusion and what does Java going  
GPL have anything to do with it?


I'm just thinking out loud here, not advocating anything...



At best you are speculating rather thank thinking.

Would it run better? Would it be faster, have smaller memory  
footprint,
better reclamation, better hooks for plugins etc? OTOH, would it be  
harder

to build, given the dependence of SA on perl modules?


Please do some research on progam languages and domains because one  
size almost never fits all. While I personally very much dislike  
perl, it is extremely well-suited to this task: text-centric, rapidly  
changing. SA was the first out there, has a large body of active  
developers and is extensible by rules.


Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226