SA 3 - I'm Totally Stuck!
Hi, I'm trying to install Spamassassin 3 on a Linux box w/Ensim control panel installed, but I'm experiencing a variety of errors. I've modified each users' .procmailrc file, but the logs are showing that spamc cannot be found (regardless of how I address it, and I know it's there - I can run it from the command line). Copying spamc to each users' home directory allows it to be run, but it then has difficulty chmodding to the correct user, and the logs report that the user cannot be found. If I try copying the spamassassin file to the users' directory, this also runs, but gives a perl error. My procmail log file shows messages like the following: //*** >From [EMAIL PROTECTED] Thu Jan 6 13:28:05 2005 Subject: New Year, New You--save up to 50% and discover great ways to change y Folder: /var/spool/mail/mil 47993 /usr/bin/spamc: /usr/bin/spamc: cannot execute binary file procmail: Error while writing to "/usr/bin/spamc" procmail: Rescue of unfiltered data succeeded //*** My .procmailrc file is as follows: //*** DROPPRIVS=yes LOGFILE=$HOME/procmail.log :0fw: spamassassin.lock | /usr/bin/spamc -u [EMAIL PROTECTED] #:0fw #| $HOME/.spamassassin/spamc -u [EMAIL PROTECTED] #| spamd -u [EMAIL PROTECTED] :0: * ^X-Spam-Status: Yes /dev/null # enf of file //*** Just to confirm I can run Spamassassin from the command line passing it a text file, and it works fine. Previously, I had version 2.6 working quite happily, so this is confusing the hell out of me! Any help most gratefully received! Cheers, mil.
RE: SA 3 - I'm Totally Stuck!
> Drop the -u [EMAIL PROTECTED], its not needed since its > being run as the user and is semi-> obsolete anyway. Plus > you don't put @domain for a username. > > Martin The "@" symbol does actually exist in the username - the "-u [EMAIL PROTECTED]" parameter worked OK in SA 2.6. I've tried removing "-u [EMAIL PROTECTED]" as suggested, which has changed the error in my procmail log to: /usr/bin/spamc: /usr/bin/spamc: cannot execute binary file procmail: Program failure (126) of "/usr/bin/spamc" procmail: Rescue of unfiltered data succeeded >From [EMAIL PROTECTED] Fri Jan 7 10:47:44 2005 Subject: spam test Folder: /var/spool/mail/mil Is this a problem with permissions? If I SSH into the box I can run /usr/bin/spamc from the command line and it works just fine. mil.
RE: SA 3 - I'm Totally Stuck!
> notice my .procmailrc has a lot more enviroment settings, don't know > enough about procmail to know if they are all needed but here's my > .procmailrc as an expample that works fine for various users:- [snip] I tried that, but not luck unfortunately :(
RE: SA 3 - I'm Totally Stuck!
> Are you sure that the user calling procmail is the same user you are if you > run spamc from the command line? When I run spamc from the command line, I've done so as root. I take it I need to change the permission of spamc? Oh, and happy birthday! mil
RE: SA 3 - I'm Totally Stuck!
> Here, spamc has 555 (-r-xr-xr-x), owned by root. > I am pretty sure that these are the default permissions set by "make install". My permissions are exactly the same (with group "mail"). > Anyway: to test whatever software, it is wise to switch to the user who will > run this software. I thought that was why the -u flag was used with spamassassin? But, having seen your .procmailrc file, it appears that this is unneccessary. Any other suggestions? I'm at my wits end with this, and I'm suffering from a deluge of spam! mil
RE: SA 3 - I'm Totally Stuck!
Hi, I've made some progress, but it's still not working :( Procmail is now running spamc, but the maillog shows the error: Jan 7 15:51:36 srv01 spamd[1314]: connection from localhost.localdomain [127.0.0.1] at port 34674 Jan 7 15:51:36 srv01 spamd[1314]: info: setuid to root succeeded Jan 7 15:51:36 srv01 spamd[1314]: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody. Jan 7 15:51:36 srv01 spamd[1314]: fatal: setuid to nobody failed Jan 7 15:51:36 srv01 spamd[1314]: error: Died at /etc/rc3.d/S79spamd line 1054, line 4._ , continuing If I specify the user with the -u flag, I get the error: Jan 7 15:59:29 srv01 spamd[1313]: connection from localhost.localdomain [127.0.0.1] at port 34680 Jan 7 15:59:29 srv01 spamd[1313]: handle_user: unable to find user 'mil'! Jan 7 15:59:29 srv01 spamd[1313]: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody. Jan 7 15:59:29 srv01 spamd[1313]: fatal: setuid to nobody failed Jan 7 15:59:29 srv01 spamd[1313]: error: Died at /etc/rc3.d/S79spamd line 1054, line 4._ , continuing It's complaining that it can't find the user, but the username is definitely correct. Am I missing a parameter? Is there anything else I may have overlooked? TIA, mil -----Original Message- From: bubba [mailto:[EMAIL PROTECTED] Sent: 07 January 2005 13:45 To: users@spamassassin.apache.org Subject: RE: SA 3 - I'm Totally Stuck! > Here, spamc has 555 (-r-xr-xr-x), owned by root. > I am pretty sure that these are the default permissions set by "make install". My permissions are exactly the same (with group "mail"). > Anyway: to test whatever software, it is wise to switch to the user > who will > run this software. I thought that was why the -u flag was used with spamassassin? But, having seen your .procmailrc file, it appears that this is unneccessary. Any other suggestions? I'm at my wits end with this, and I'm suffering from a deluge of spam! mil
RE: SA 3 - I'm Totally Stuck!
> Meaning you're trying to install it through the control panel rather than using a real > login shell? Or only meaning that you're using Ensim to set up the .procmailrc files? I'm doing everything via the shell. > And did you install 2.6x yourself? Yep. The last email I sent has a bit more detail... I'm now running spamc OK, but it's unable to run as the correct user
SA 2.63 Not Processing All Email
Hi, I'm running Spamassassin 2.63, which is successfully tagging *most* messages. However, some mail is getting through untagged. The main differences between the headers of those that are tagged and those that aren't are the "for" secion in each received section. Example headers from a succesfully tagged message: ** Received: from srv.my_server.com ([EMAIL PROTECTED]) by my_domain.com (8.21.6/8.21.6) with ESMTP id j0DABKT13250 for <[EMAIL PROTECTED]>; Thu, 13 Jan 2005 10:11:20 GMT X-ClientAddr: 195.10.244.146 Received: from dylan.cwazy.net (dylan.cwazy.net [195.10.244.146]) by srv.my_server.com (8.21.6/8.21.6) with ESMTP id j0DABJv13245 for <[EMAIL PROTECTED]>; Thu, 13 Jan 2005 10:11:19 GMT Received: from www.valid.co.uk (localhost [127.0.0.1]) by dylan.cwazy.net (Postfix) with ESMTP id 82478CBFBB for <[EMAIL PROTECTED]>; Thu, 13 Jan 2005 10:21:27 + (GMT) Received: from 213.219.49.18 (SquirrelMail authenticated user bubba); by www.cwazy.net with HTTP; Thu, 13 Jan 2005 10:21:27 - (GMT) ... And headers from a message that hasn't been tagged: ** Received: from srv.my_server.com ([EMAIL PROTECTED]) by my_domain.com (8.21.6/8.21.6) with ESMTP id j0D4pTe1562; Thu, 13 Jan 2005 04:51:29 GMT X-ClientAddr: 209.30.229.186 Received: from adsl-209-30-229-186.dsl.ksc2mo.swbell.net (adsl-209-30-229-186.dsl.ksc2mo.swbell.net [209.30.229.186]) by srv.my_server.com (8.21.6/8.21.6) with SMTP id j0D4pSv10556; Thu, 13 Jan 2005 04:51:28 GMT Received: from dnjachwdxq.jskk.com (lbbrgyjnsg.jskk.com [62.208.240.214]) by 209.30.229.186 Microsoft SMTPSVC(5.0.2195.6713); Wed, 12 Jan 2005 23:06:08 -0600 Any obvious reason why this might be happening? milan.
20_porn.cf/SUBJECT_SEXUAL not picking up new subjects
I've been getting many sexy subject emails lately that are not getting properly categorized by the SUBJECT_SEXUAL rule in 20_porn.cf. These new-to-me subjects are: SEUAL-EXPLCIT: SEEUAL-EXPLlClT: I've modified my rule locally but figured I'd pass along my changes should the rule actually be updated: Subject =~ /[EMAIL PROTECTED]|1]( ?:[l!|1]y)?.{0,3}[e3\xE8-\xEB]xp[l!|1][i1!|l\xEC-\xEF]?c[i1!|l\xEC-\xEF]t/i Thanks, Bubba