Older rules causing problems...but which ones?
When I start spamassassin, I'm getting these types of errors in my mail log: Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_HEAD_8BIT_NOSPM has undefined dependency '__SARE_HEAD_8BIT_DATE' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_HEAD_8BIT_NOSPM has undefined dependency '__SARE_HEAD_8BIT_RECV' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MULT_RATW_03 has undefined dependency '__SARE_MULT_RATW_03E' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test DRUGS_ERECTILE has undefined dependency '__DRUGS_ERECTILE7' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_SPEC_PROLEO_M2a has dependency 'MIME_QP_LONG_LINE' with a zero score Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG40 has undefined dependency '__SARE_MSGID_LONG50' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG40 has undefined dependency '__SARE_MSGID_LONG55' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG40 has undefined dependency '__SARE_MSGID_LONG65' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG40 has undefined dependency '__SARE_MSGID_LONG75' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG45 has undefined dependency '__SARE_MSGID_LONG50' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG45 has undefined dependency '__SARE_MSGID_LONG55' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG45 has undefined dependency '__SARE_MSGID_LONG65' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_MSGID_LONG45 has undefined dependency '__SARE_MSGID_LONG75' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test VIRUS_WARNING_DOOM_BNC has undefined dependency 'VIRUS_WARNING_MYDOOM4' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test FP_MIXED_PORN3 has undefined dependency 'FP_PENETRATION' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_HEAD_SUBJ_RAND has undefined dependency 'SARE_XMAIL_SUSP2' Aug 22 09:36:55 eisenhower spamd[96202]: rules: meta test SARE_HEAD_SUBJ_RAND has undefined dependency 'SARE_HEAD_XAUTH_WARN' So, when I ty to run: Spamassassin -D to see what is going on, it just stops at this point: [96288] dbg: logger: adding facilities: all [96288] dbg: logger: logging level is DBG [96288] dbg: generic: SpamAssassin version 3.1.4 [96288] dbg: config: score set 0 chosen. [96288] dbg: util: running in taint mode? yes [96288] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH [96288] dbg: util: PATH included '/sbin', keeping [96288] dbg: util: PATH included '/usr/sbin', keeping [96288] dbg: util: PATH included '/bin', keeping [96288] dbg: util: PATH included '/usr/bin', keeping [96288] dbg: util: PATH included '/usr/local/sbin', keeping [96288] dbg: util: PATH included '/usr/local/bin', keeping [96288] dbg: util: PATH included '/usr/X11R6/bin', keeping [96288] dbg: util: final PATH set to: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin [96288] dbg: message: MIME PARSER START [96288] dbg: message: main message type: text/plain [96288] dbg: message: parsing normal part [96288] dbg: message: added part, type: text/plain [96288] dbg: message: MIME PARSER END [96288] dbg: dns: is Net::DNS::Resolver available? yes [96288] dbg: dns: Net::DNS version: 0.58 I'm not sure what is going on. SA starts, stops and seems to work just fine. I suspect there are some older rules somewhere causing some problems, but I can't figure out where. -- Mike Loiterman GrantAdler Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
RE: Strange error after enabling SMP
Mike Loiterman <mailto:[EMAIL PROTECTED]> wrote: > I just enabled SMP on my kernel in FreeBSD 6.0-RELEASE. > > Now, when I get messages, I'm getting these errors in my maillog: > > Nov 20 17:32:23 eisenhower spamd[998]: spamd: got connection > over /tmp/spamd.sock > Nov 20 17:32:23 eisenhower spamd[998]: spamd: setuid to root succeeded > Nov 20 17:32:23 eisenhower spamd[998]: spamd: still running > as root: user not specified with -u, not found, or set to root, falling back to nobody at /usr/local Never mind, the DROPPRIVS line in my procmailrc line get blown away by accident, which resulted in this error. Had nothing to do with SMP. ------ Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
Strange error after enabling SMP
: running tests for priority: 1000 [1266] dbg: rules: running meta tests; score so far=0.307 [1266] dbg: rules: running header regexp tests; score so far=0.307 [1266] dbg: plugin: registering glue method for check_from_in_auto_whitelist (Mail::SpamAssassin::Plugin::AWL=HASH(0x90984ac)) [1266] dbg: config: using "/root/.spamassassin" for user state dir [1266] dbg: locker: safe_lock: created /root/.spamassassin/auto-whitelist.lock.eisenhower.ascendency.net.1266 [1266] dbg: locker: safe_lock: trying to get lock on /root/.spamassassin/auto-whitelist with 0 retries [1266] dbg: locker: safe_lock: link to /root/.spamassassin/auto-whitelist.lock: link ok [1266] dbg: auto-whitelist: tie-ing to DB file of type DB_File R/W in /root/.spamassassin/auto-whitelist [1266] dbg: auto-whitelist: db-based [EMAIL PROTECTED]|ip=none scores 0/0 [1266] dbg: auto-whitelist: AWL active, pre-score: 0.307, autolearn score: 0.307, mean: undef, IP: undef [1266] dbg: auto-whitelist: DB addr list: untie-ing and unlocking [1266] dbg: auto-whitelist: DB addr list: file locked, breaking lock [1266] dbg: locker: safe_unlock: unlink /root/.spamassassin/auto-whitelist.lock [1266] dbg: auto-whitelist: post auto-whitelist score: 0.307 [1266] dbg: rules: running body-text per-line regexp tests; score so far=0.307 [1266] dbg: uri: running uri tests; score so far=0.307 [1266] dbg: rules: running raw-body-text per-line regexp tests; score so far=0.307 [1266] dbg: rules: running full-text regexp tests; score so far=0.307 [1266] dbg: check: is spam? score=0.307 required=5 [1266] dbg: check: tests=BAYES_00,MISSING_SUBJECT,NO_REAL_NAME,NO_RECEIVED,NO_RELAYS,TO_CC_NONE [1266] dbg: check: subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SAN E_MSGID,__UNUSABLE_MSGID -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
RE: Bayes mysql db error
Michael Parker <mailto:[EMAIL PROTECTED]> wrote: > Mike Loiterman wrote: > >> Mysql 4.1.15 >> >> DBD 3.0002 >> DBI 1.48 >> >> I can't get the --lint output into a filebut it doesn't say much >> else besides what I've listed above. >> >> >> > Ahh yes, but it puts it in context which your other cut-and-paste does > not, for instance I believe that the error is harmless. > > spamassassin -D --lint > debug.txt 2>&1 > > Also, and sa-learn -u root --dump magic > > Which Bayes Storage engine are you using? > > Michael G...pesky tcsh shell...switching back to bash for good: spamassassin -D --lint > debug.txt 2>&1 [22511] dbg: logger: adding facilities: all [22511] dbg: logger: logging level is DBG [22511] dbg: generic: SpamAssassin version 3.1.0 [22511] dbg: config: score set 0 chosen. [22511] dbg: util: running in taint mode? yes [22511] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH [22511] dbg: util: PATH included '/sbin', keeping [22511] dbg: util: PATH included '/usr/sbin', keeping [22511] dbg: util: PATH included '/bin', keeping [22511] dbg: util: PATH included '/usr/bin', keeping [22511] dbg: util: PATH included '/usr/local/sbin', keeping [22511] dbg: util: PATH included '/usr/local/bin', keeping [22511] dbg: util: PATH included '/usr/X11R6/bin', keeping [22511] dbg: util: final PATH set to: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin [22511] dbg: dns: is Net::DNS::Resolver available? yes [22511] dbg: dns: Net::DNS version: 0.53 [22511] dbg: dns: name server: 192.168.1.1, family: 2, ipv6: 0 [22511] dbg: diag: perl platform: 5.008007 freebsd [22511] dbg: diag: module installed: Digest::SHA1, version 2.10 [22511] dbg: diag: module installed: MIME::Base64, version 3.05 [22511] dbg: diag: module installed: HTML::Parser, version 3.45 [22511] dbg: diag: module installed: DB_File, version 1.811 [22511] dbg: diag: module installed: Net::DNS, version 0.53 [22511] dbg: diag: module installed: Net::SMTP, version 2.29 [22511] dbg: diag: module installed: Mail::SPF::Query, version 1.997 [22511] dbg: diag: module not installed: IP::Country::Fast ('require' failed) [22511] dbg: diag: module installed: Razor2::Client::Agent, version 2.77 [22511] dbg: diag: module not installed: Net::Ident ('require' failed) [22511] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed) [22511] dbg: diag: module installed: IO::Socket::SSL, version 0.97 [22511] dbg: diag: module installed: Time::HiRes, version 1.66 [22511] dbg: diag: module installed: DBI, version 1.48 [22511] dbg: diag: module installed: Getopt::Long, version 2.34 [22511] dbg: diag: module not installed: LWP::UserAgent ('require' failed) [22511] dbg: diag: module not installed: HTTP::Date ('require' failed) [22511] dbg: diag: module not installed: Archive::Tar ('require' failed) [22511] dbg: diag: module not installed: IO::Zlib ('require' failed) [22511] dbg: ignore: using a test message to lint rules [22511] dbg: config: using "/usr/local/etc/mail/spamassassin" for site rules pre files [22511] dbg: config: read file /usr/local/etc/mail/spamassassin/init.pre [22511] dbg: config: read file /usr/local/etc/mail/spamassassin/v310.pre [22511] dbg: config: using "/usr/local/share/spamassassin" for sys rules pre files [22511] dbg: config: using "/usr/local/share/spamassassin" for default rules dir [22511] dbg: config: read file /usr/local/share/spamassassin/10_misc.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_advance_fee.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_anti_ratware.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_body_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_compensate.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_fake_helo_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_head_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_html_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_meta_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_net_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_phrases.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf [22511] dbg: config: read file /usr/local/share/spamassassin/20_uri_tests.cf [22511] dbg: config: read file /usr/local/share/spamassassin
RE: Bayes mysql db error
Michael Parker <mailto:[EMAIL PROTECTED]> wrote: > Mike Loiterman wrote: > >> Mysql 4.1.15 >> >> DBD 3.0002 >> DBI 1.48 >> >> I can't get the --lint output into a filebut it doesn't say much >> else besides what I've listed above. >> >> >> > Ahh yes, but it puts it in context which your other cut-and-paste does > not, for instance I believe that the error is harmless. > > spamassassin -D --lint > debug.txt 2>&1 > > Also, and sa-learn -u root --dump magic > > Which Bayes Storage engine are you using? > > Michael 8:24:50 [EMAIL PROTECTED]: /home/mike]# spamassassin -D --lint > debug.txt 2>&1 Ambiguous output redirect. 8:22:54 [EMAIL PROTECTED]: /home/mike/mailsort]# sa-learn -u root --dump magic ERROR: Bayes dump returned an error, please re-run with -D for more information I'm using mysql...if that's what you mean wrt to a storage engine. -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
RE: Bayes mysql db error
Michael Parker <mailto:[EMAIL PROTECTED]> wrote: > Mike Loiterman wrote: > >> FreeBSD vesion 5.4 >> SA version 3.1.0_3 >> Perl version 5.8.7 >> >> I keep getting these errors when spamd tries to work with the mysql >> db I setup: >> >> [2615] dbg: bayes: database connection established >> [2615] dbg: bayes: found bayes db version 3 >> [2615] dbg: bayes: unable to initialize database for root user, >> aborting! [2615] dbg: bayes: not scoring message, returning undef >> [2615] dbg: bayes: opportunistic call attempt failed, DB not readable >> >> I've checked that the db name, user, host, and password are correct >> about 1000 times. The db exists, can be logged into, the tables are >> there and it seems completely functional, expcept for this error. >> For now, I'm using root, so there shouldn't be any problems. >> >> > > Somewhat odd. You failed to mention what version of MySQL you are > using, what version of DBI/DBD::mysql you are using, that might shed > some light. Also, a little fuller debug, including the output from > spamassassin -D --lint might help. > > Michael Mysql 4.1.15 DBD 3.0002 DBI 1.48 I can't get the --lint output into a filebut it doesn't say much else besides what I've listed above. I am so frustrated. I can't get anything to work. I've been wrestling with this all night. Grr. -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
Bayes mysql db error
FreeBSD vesion 5.4 SA version 3.1.0_3 Perl version 5.8.7 I keep getting these errors when spamd tries to work with the mysql db I setup: [2615] dbg: bayes: database connection established [2615] dbg: bayes: found bayes db version 3 [2615] dbg: bayes: unable to initialize database for root user, aborting! [2615] dbg: bayes: not scoring message, returning undef [2615] dbg: bayes: opportunistic call attempt failed, DB not readable I've checked that the db name, user, host, and password are correct about 1000 times. The db exists, can be logged into, the tables are there and it seems completely functional, expcept for this error. For now, I'm using root, so there shouldn't be any problems. -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
Missing socket file for spamd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I ty to have procmail engage the spamd binary, I get this error in my maillog. Sep 19 19:25:53 eisenhower spamc[640]: connect(AF_UNIX) to spamd /tmp/spamd.sock failed: Socket operation on non-socket I tried touching a file called spamd.sock and chmoding it to 777 but that doesn't work. How can I create the socket file or have spamd create one for me? - -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E -BEGIN PGP SIGNATURE- Version: PGP Desktop 9.0.2 (Build 2424) Comment: Secured by PGP 9.0.2 iQA/AwUBQy9YUmjZbUnRudGOEQJ4XwCgiTA7zMtyXtm77+iLmtEwk08rZ0QAn2Rn rCzV+K2vGDXnwDxPvtdJjEvK =itgS -END PGP SIGNATURE-
Messages not being scanned
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For some reason, some messages are not being scanned. I watch my logs and I can see SA working on a messages, then another comes in and it just get delivered directly. I suspect that it as something to do with a timeout on one of the third-party scanns (razor, pyzor, etc), but don't have any evidence to support my theory. I've turned on -D, but don't know what to look for. Any ideas? - -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E -BEGIN PGP SIGNATURE- Version: PGP 8.1 iQA/AwUBQxeNqmjZbUnRudGOEQJZjwCgrGyPhNjzRN3x5CsjR4ePhn3aWrcAoM49 y1mpk6KUlOVQ8+Usp+/3otGq =/MYV -END PGP SIGNATURE-
RE: Recreate bayes_toks and bayes_seen
Tuc at Beach House <mailto:[EMAIL PROTECTED]> wrote: >> I've tried touching bayes_seen and bayes_toks, but when I go to >> learn I get this error: Cannot open bayes databases > /etc/mail/spamassassin/bayes/bayes_* R/O: >> tie failed: Inappropriate file type or format >> >> How can I create the files? >> >> I'm using 2.63. >> > I cheated this morning myself and just picked a ham message and used > sa-learn to do it. > > Tuc I just turned on auto-learn temporarily and that seemed to do the tick. -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E
Recreate bayes_toks and bayes_seen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I had to blow away my bayes dbs and now I want to start over. I've tried touching bayes_seen and bayes_toks, but when I go to learn I get this error: Cannot open bayes databases /etc/mail/spamassassin/bayes/bayes_* R/O: tie failed: Inappropriate file type or format How can I create the files? I'm using 2.63. - - -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E - -BEGIN PGP SIGNATURE- Version: PGP 8.1 Comment: Digitally signed by Mike Loiterman iQA/AwUBQZvIg2jZbUnRudGOEQI/qACeObvdUaWQcpyK11oQhEqr7VmzMp4An0I1 oUywg46Yps2CHgAy5s5W11yY =ewia - -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: PGP 8.1 Comment: Digitally signed by Mike Loiterman iQA/AwUBQZvKDGjZbUnRudGOEQKZqACfdrW0Rv+yCXTgWToOXLYfn2Q5WOUAoLV6 JbBrPRkPSb0JTsbivVkYkR6Y =8qV/ -END PGP SIGNATURE-
timeout waiting for input from local during Draining Input
I periodically get these errors in my log and when I do the messages are not scanned. What's going on and how do I stop it? -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518
RE: Running spamd on different server and user profiles
Darren Casey <mailto:[EMAIL PROTECTED]> wrote: >> If I run spamd on a different server, how are the user > profiles for my > local >> users handled? > > We use MySQL and it means this is fairly easy > > Darren Can you tell me more about your setup? I keep getting a failed sanity check error after the message has been scanned and sent back to the machine running spamc. I think its because the user ids are different. How are you getting around this? -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518
RE: Spamd running on a different server
Matt Kettler <mailto:[EMAIL PROTECTED]> wrote: > At 03:50 AM 9/12/2004 -0500, you wrote: >> 1. On the return trip back to spamc...spamc dies with a failed >> sanity check error. > > >> I suspect this is an error related to the user running spamc being >> different then the user running spamd. > > It shouldn't be.. Perhaps it might happen if the user running > spamc doesn't > exist on the machine spamd runs on, but otherwise you should be OK The user names are the same, but the ids are different. Any workaround for this? -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518
Spamd running on a different server
I'm trying to get my spamc to send to a spamd running on another server on my network. So far, this has been partially successful -- messages are being sent from the machine running spamc to the machine running spamd and then scanned. Two problems: 1. On the return trip back to spamc...spamc dies with a failed sanity check error. I suspect this is an error related to the user running spamc being different then the user running spamd. I tried running spamd with the --username=root, but the spamd wouldn't start saying that it won't run as a non-exsistant user or as root. 2. I can't figure out how to get the spamd running on the other machine to read the user pref files located on the machine running spamc. Any ideas? ------ Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518
RE: Running spamd on different server and user profiles
> They would not be used, unless you did a lot of fancy > configuration so that spamd could find them. Where would I do this fancy configuration? -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518
Running spamd on different server and user profiles
If I run spamd on a different server, how are the user profiles for my local users handled? -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E GPG Key: 0x661D0518