Theo Van Dinter writes:

>HUPping spamd won't do anything for you, you have to fully stop/start it.
>In fact, sending it a HUP causes it to die because there's no handler
>for it.


That's too bad.  It would be useful to be able to force spamd to 
reread its configuration file without having to kill it completely 
and restart it.


>In one window, run it without the -d and with the -D.  That'll run it in
>debug mode in the foreground.  In another window, run something through
>spamc and see what happens.


A good suggestion, and I did just that.  Here's the spamd startup:


debug: ignore: test message to precompile patterns and load modules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: is Net::DNS::Resolver unavailable? 0
debug: looking up MX for 'microsoft.com.'
debug: MX for 'microsoft.com.' exists? 1
debug: is DNS available? 1
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=4.4
debug: running uri tests; score so far=4.4
debug: uri tests: Done uriRE
debug: running raw-body-text per-line regexp tests; score so far=4.4
debug: running full-text regexp tests; score so far=4.8
debug: Razor is not available
debug: spam-phrase score: 23.5949726847598: hits: this message
dccproc: not found
debug: DCC is available:
dccproc: not found
debug: DCC: got response:
debug: DCC -> check failed - no X-DCC returned (did you create a map file?):
debug: Ran run_rbl_eval_test rule RCVD_IN_DSBL but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_MULTIHOP_DSBL but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_ORBS but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_OSIRUSOFT_COM but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_RELAYS_ORDB_ORG but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_RFCI but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_VISI but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_DUL_FH but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_SPAMWARE_SITE but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_SPAM_SRC but did not get hit
debug: Ran run_rbl_eval_test rule X_RCVD_IN_DUL_FH but did not get hit
debug: Ran run_rbl_eval_test rule X_RCVD_IN_UNCONFIRMED_DSBL but did 
not get hit
debug: Ran run_rbl_eval_test rule FUDGE_DUL_MAPS_OSIRU but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_DUL_OSIRU_FH but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_MULTIHOP_RELAY but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_RELAY_OSIRU but did not get hit
debug: AWL active, pre-score: 10.4, mean: undef
debug: Post AWL score: 10.4
debug: is spam? score=10.4 required=5
server started on port 783
server pid: 82183
logmsg: server started on port 783


So far, so good.  And /etc/mail/spamassassin/local.cf (which contains 
only one entry: "all_spam_to [EMAIL PROTECTED]") is apparently 
being read, because spamc complained ("debug: Failed to parse line in 
SpamAssassin configuration, skipping: all_spam_to") when I tried to 
start it after deliberately entering "all_spam_to" with no address 
following.)  Next, I fed it a message with "spamc < spam.msg" and 
here's the result:


logmsg: connection from localhost [ 127.0.0.1 ] at port 4424
logmsg: info: setuid to root succeeded
read_scoreonly_config: cannot open "/root/.spamassassin/user_prefs": 
No such file or directory
logmsg: Still running as root: user not specified, not found, or set 
to root.  Fall back to nobody.
debug: is Net::DNS::Resolver unavailable? 0
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=1.9
debug: running uri tests; score so far=11.5
debug: uri tests: Done uriRE
debug: running raw-body-text per-line regexp tests; score so far=10.3
debug: running full-text regexp tests; score so far=16.4
debug: Razor is not available
debug: spam-phrase score: 6.70255686292441: hits: absolutely free, 
dream vacation, fill out, first month, get your, not only, that you, 
you for, you want
dccproc: not found
debug: DCC is available:
dccproc: not found
debug: DCC: got response:
debug: DCC -> check failed - no X-DCC returned (did you create a map file?):
debug: DNS MX records found: 1
debug: Ran run_rbl_eval_test rule RCVD_IN_DSBL but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_MULTIHOP_DSBL but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_ORBS but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_OSIRUSOFT_COM but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_RELAYS_ORDB_ORG but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_RFCI but did not get hit
debug: Ran run_rbl_eval_test rule RCVD_IN_VISI but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_DUL_FH but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_SPAMWARE_SITE but did not get hit
debug: Ran run_rbl_eval_test rule X_OSIRU_SPAM_SRC but did not get hit
debug: Ran run_rbl_eval_test rule X_RCVD_IN_DUL_FH but did not get hit
debug: Ran run_rbl_eval_test rule X_RCVD_IN_UNCONFIRMED_DSBL but did 
not get hit
debug: Ran run_rbl_eval_test rule FUDGE_DUL_MAPS_OSIRU but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_DUL_OSIRU_FH but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_MULTIHOP_RELAY but did not get hit
debug: Ran run_rbl_eval_test rule FUDGE_RELAY_OSIRU but did not get hit
debug: AWL active, pre-score: 17.1, mean: undef
debug: Post AWL score: 17.1
debug: is spam? score=17.1 required=5
logmsg: identified spam (17.1/5.0) for root:65534 in  10 seconds, 4304 bytes.


Here are the headers added to the message:


X-Spam-Status: Yes, hits=17.1 required=5.0
         tests=PLING_PLING,NO_REAL_NAME,INVALID_DATE,PLING,OPPORTUNITY,
               ONE_HUNDRED_PC_FREE,SUBJ_REMOVE,REMOVE_SUBJ,EXCUSE_7,
               DOUBLE_CAPSWORD,LINES_OF_YELLING,LINES_OF_YELLING_2,
               MAILTO_TO_SPAM_ADDR,MAILTO_TO_REMOVE,BIG_FONT,
               FORM_W_MAILTO_ACTION,MAILTO_LINK,DATE_IN_PAST_03_06
         version=2.31
X-Spam-Flag: YES
X-Spam-Level: *****************
X-Spam-Checker-Version: SpamAssassin 2.31 (devel $Id: 
SpamAssassin.pm,v 1.94.2.2 2002/06/20 17:20:29 hughescr Exp $)
X-Spam-Prev-Content-Transfer-Encoding: 7bit

SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam.  The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future.
SPAM: See http://spamassassin.org/tag/ for more details.
SPAM:
SPAM: Content analysis details:   (17.1 hits, 5 required)
SPAM: PLING_PLING        (0.8 points)  Subject has lots of exclamation marks
SPAM: NO_REAL_NAME       (0.5 points)  From: does not include a real name
SPAM: INVALID_DATE       (0.5 points)  Invalid Date: header (not RFC 822)
SPAM: PLING              (0.1 points)  Subject has an exclamation mark
SPAM: OPPORTUNITY        (1.1 points)  BODY: Gives information about 
an opportunity
SPAM: ONE_HUNDRED_PC_FREE (3.4 points)  BODY: No such thing as a free lunch (2)
SPAM: SUBJ_REMOVE        (-0.8 points) BODY: List removal information
SPAM: REMOVE_SUBJ        (3.4 points)  BODY: List removal information
SPAM: EXCUSE_7           (1.3 points)  BODY: Claims you can be 
removed from the list
SPAM: DOUBLE_CAPSWORD    (1.1 points)  BODY: A word in all caps 
repeated on the line
SPAM: LINES_OF_YELLING   (-0.0 points) BODY: A WHOLE LINE OF YELLING DETECTED
SPAM: LINES_OF_YELLING_2 (0.1 points)  BODY: 2 WHOLE LINES OF YELLING DETECTED
SPAM: MAILTO_TO_SPAM_ADDR (0.5 points)  URI: Includes a link to a 
likely spammer email address
SPAM: MAILTO_TO_REMOVE   (-1.7 points) URI: Includes a 'remove' email address
SPAM: BIG_FONT           (2.1 points)  BODY: FONT Size +2 and up or 3 and up
SPAM: FORM_W_MAILTO_ACTION (3.2 points)  BODY: Includes a form which 
will send an email
SPAM: MAILTO_LINK        (0.8 points)  BODY: Includes a URL link to 
send an email
SPAM: DATE_IN_PAST_03_06 (0.7 points)  Date: is 3 to 6 hours before 
Received: date
SPAM:
SPAM: -------------------- End of SpamAssassin results ---------------------


Slap me and call me Sally if I'm wrong, but it looks to me from the 
results that the "all_spam_to [EMAIL PROTECTED]" entry in 
local.cf has no effect whatsoever on spamc's filtering.  One good 
thing:  spamc doesn't die when it processes a message like it was 
doing before when running in daemon mode server-wide, but this is a 
test local.cf with only one entry, so it's possible something was 
malformed in the one I was using before.  The only directories that 
exist in my server-wide configuration are /usr/share/spamassassin and 
/etc/mail/spamassassin.

So the test you suggested seems to offer proof for my theory that the 
entries in /etc/mail/spamassassin/local.cf have no effect on spamd, 
either 2.20 or 2.31 (all installed on FreeBSD 4.5 servers, the 2.20 
versions using CPAN, and 2.31 from source).  I'm not familiar enough 
with spamd to know whether the startup dialog reproduced above 
indicates a problem.  At this point, I have no answer that doesn't 
involve the supernatural.  I do hope you or someone on the list can 
shed some light.

Best,
.\\ichelle
---------------------
Michelle Brownsworth
System Administrator
PrimeLogic Corporation
http://www.primelogic.com


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to