[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] (no subject)



Hi

I've been trying to get some help from the Spamassassin list and not
had any replies so far.  I was wondering if Richard Stevenson or
someone else might know a bit more about the internal workings of
Spamassassin than myself.

Seems that shortly after I set up my Mail::Audit application yesterday
Spamassassin did try to work in the way that it should.  However, it
looks as though the logs point towards the fact that it was trying to
run as user Richard but didn't quite make it.  The Mail::Audit script
which lives in a /home/richard/.spam files reads as....

#!/usr/bin/perl

  use Mail::Audit;
  use Mail::SpamAssassin;
  my $item  = Mail::Audit->new(nomime => 1);
  my $maildir = "/home/richard/inbox";
  while (<DATA>) {
        chomp;
        next unless $from =~ /$_/i or $to =~ /$_/i;
        print LOG "$from:$subject:Spam?\n";
        $item->accept($folder."/home/richard/Spam");
        my $spamtest = Mail::SpamAssassin->new();
        my $status = $spamtest->check($mail);

        if ($status->is_spam ()) {
        $status->rewrite_mail() };
        $mail->accept("/home/richard/Spam");
    }

  $item->accept;



Can anyone shed some light on how spamd and spamc work so that I might
be able to work out why Spamassassin isn't working properly on my
machine ?

.spam is set as chmod 700 in /home/richard.  Spamassassin probably has
different permissions ?   This may be the problem.  This is working
well
but it needs some support from Spamassassin to process mail properly
when it is spam. Some spam isn't detected or processed by Mail::Audit
at all.

Mail.info logs attached





Richard


May 15 20:00:56postfix/smtpd[16475]: disconnect from localhost[127.0.0.1]
May 15 20:12:18spamc[18416]: connect() to spamd at 127.0.0.1 failed, retrying (1/3):
Connection refused
May 15 20:12:19spamc[18416]: connect() to spamd at 127.0.0.1 failed, retrying (2/3):
Connection refused
May 15 20:12:20spamc[18416]: connect() to spamd at 127.0.0.1 failed, retrying (3/3):
Connection refused
May 15 20:12:21spamc[18416]: connection attempt to spamd aborted after 3 retries
May 15 20:12:23spamd[18419]: server started on port 48373 (running version 2.54) 
May 15 20:12:24spamd[18419]: connection from localhost [127.0.0.1] at port 4270 
May 15 20:12:24spamd[18422]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:24spamd[18422]: processing message <78w08.t365th3y6x7h [at] yahoo.com> for
root:65534. 
May 15 20:12:24spamd[18422]: identified spam (18.3/5.0) for root:65534 in 0.1 seconds,
1617 bytes. 
May 15 20:12:24spamd[18419]: server killed by SIGTERM, shutting down 
May 15 20:12:26spamd[18425]: server started on port 48373 (running version 2.54) 
May 15 20:12:27spamd[18425]: connection from localhost [127.0.0.1] at port 4271 
May 15 20:12:27spamd[18428]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:27spamd[18428]: checking message <9PS291LhupY> for root:65534. 
May 15 20:12:27spamd[18425]: server killed by SIGTERM, shutting down 
May 15 20:12:27spamd[18428]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:28spamc[18430]: connect() to spamd at 127.0.0.1 failed, retrying (1/3):
Connection refused
May 15 20:12:29spamc[18430]: connect() to spamd at 127.0.0.1 failed, retrying (2/3):
Connection refused
May 15 20:12:30spamc[18430]: connect() to spamd at 127.0.0.1 failed, retrying (3/3):
Connection refused
May 15 20:12:31spamc[18430]: connection attempt to spamd aborted after 3 retries
May 15 20:12:33spamd[18433]: server started on port 48373 (running version 2.54) 
May 15 20:12:33spamd[18433]: connection from localhost [127.0.0.1] at port 4275 
May 15 20:12:33spamd[18436]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:33spamd[18436]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:33spamd[18436]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:33spamd[18433]: server killed by SIGTERM, shutting down 
May 15 20:12:36spamd[18439]: server started on port 48373 (running version 2.54) 
May 15 20:12:36spamd[18439]: connection from localhost [127.0.0.1] at port 4276 
May 15 20:12:37spamd[18442]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:37spamd[18442]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:37spamd[18442]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:37spamd[18439]: connection from localhost [127.0.0.1] at port 4277 
May 15 20:12:37spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:37spamd[18458]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:37spamd[18458]: processing message
<000042a071ee$00001aa9$00003e50 [at] mx14.hotmail.com> for root:65534. 
May 15 20:12:37spamd[18458]: identified spam (34.5/5.0) for root:65534 in 0.2 seconds,
8464 bytes. 
May 15 20:12:37spamd[18439]: connection from localhost [127.0.0.1] at port 4278 
May 15 20:12:37spamd[18462]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:37spamd[18462]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:37spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:37spamd[18462]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:37spamd[18439]: connection from localhost [127.0.0.1] at port 4279 
May 15 20:12:37spamd[18463]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:37spamd[18463]: processing message <503.767473.93364 [at] www.fasttrec.com> for
root:65534. 
May 15 20:12:37spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:37spamd[18463]: identified spam (11.6/5.0) for root:65534 in 0.2 seconds,
2459 bytes. 
May 15 20:12:37spamd[18439]: connection from localhost [127.0.0.1] at port 4280 
May 15 20:12:37spamd[18464]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:37spamd[18464]: processing message <78w08.t365th3y6x7h [at] yahoo.com> for
root:65534. 
May 15 20:12:37spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:37spamd[18464]: identified spam (16.7/5.0) for root:65534 in 0.2 seconds,
5532 bytes. 
May 15 20:12:37spamd[18439]: connection from localhost [127.0.0.1] at port 4281 
May 15 20:12:38spamd[18465]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:38spamd[18465]: processing message
<20011206235802.4FD6F1143D6 [at] mail.netnoteinc.com> for root:65534. 
May 15 20:12:38spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:38spamd[18465]: identified spam (7.0/5.0) for root:65534 in 0.1 seconds, 2465
bytes. 
May 15 20:12:38spamd[18439]: connection from localhost [127.0.0.1] at port 4282 
May 15 20:12:38spamd[18466]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:38spamd[18466]: processing message
<200207240935.g6O9ZQW15692 [at] online.affis.net> for root:65534. 
May 15 20:12:38spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:38spamd[18466]: identified spam (18.2/5.0) for root:65534 in 0.2 seconds,
5373 bytes. 
May 15 20:12:38spamd[18439]: connection from localhost [127.0.0.1] at port 4283 
May 15 20:12:38spamd[18467]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:38spamd[18467]: processing message
<000042a071ee$00001aa9$00003e50 [at] mx14.hotmail.com> for root:65534. 
May 15 20:12:38spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:38spamd[18467]: identified spam (34.5/5.0) for root:65534 in 0.3 seconds,
8464 bytes. 
May 15 20:12:38spamd[18439]: connection from localhost [127.0.0.1] at port 4284 
May 15 20:12:38spamd[18468]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:38spamd[18468]: processing message
<000042a071ee$00001aa9$00003e50 [at] mx14.hotmail.com> for root:65534. 
May 15 20:12:38spamd[18439]: hit max-children limit (1): waiting for some to exit 
May 15 20:12:38spamd[18468]: identified spam (34.5/5.0) for root:65534 in 0.2 seconds,
8464 bytes. 
May 15 20:12:38spamd[18439]: connection from localhost [127.0.0.1] at port 4285 
May 15 20:12:38spamd[18469]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:38spamd[18469]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:39spamd[18469]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:39spamd[18439]: server killed by SIGTERM, shutting down 
May 15 20:12:41spamd[18472]: server started on port 48373 (running version 2.54) 
May 15 20:12:42spamd[18472]: server killed by SIGTERM, shutting down 
May 15 20:12:44spamd[18477]: server started on port 48373 (running version 2.54) 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4286 
May 15 20:12:45spamd[18480]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18480]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:45spamd[18480]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4287 
May 15 20:12:45spamd[18487]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18487]: processing message
<200207240935.g6O9ZQW15692 [at] online.affis.net> for root:65534. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4288 
May 15 20:12:45spamd[18500]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4289 
May 15 20:12:45spamd[18501]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18501]: processing message
<000042a071ee$00001aa9$00003e50 [at] mx14.hotmail.com> for root:65534. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4290 
May 15 20:12:45spamd[18502]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18502]: processing message <503.767473.93364 [at] www.fasttrec.com> for
root:65534. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4291 
May 15 20:12:45spamd[18503]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:45spamd[18503]: processing message <78w08.t365th3y6x7h [at] yahoo.com> for
root:65534. 
May 15 20:12:45spamd[18477]: connection from localhost [127.0.0.1] at port 4292 
May 15 20:12:46spamd[18487]: identified spam (18.2/5.0) for root:65534 in 0.4 seconds,
5373 bytes. 
May 15 20:12:46spamd[18504]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:46spamd[18477]: connection from localhost [127.0.0.1] at port 4293 
May 15 20:12:46spamd[18505]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:46spamd[18505]: processing message
<200207240935.g6O9ZQW15692 [at] online.affis.net> for root:65534. 
May 15 20:12:46spamd[18477]: connection from localhost [127.0.0.1] at port 4294 
May 15 20:12:46spamd[18506]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:46spamd[18506]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:46spamd[18477]: connection from localhost [127.0.0.1] at port 4295 
May 15 20:12:46spamd[18507]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:46spamd[18507]: processing message
<000042a071ee$00001aa9$00003e50 [at] mx14.hotmail.com> for root:65534. 
May 15 20:12:46spamd[18500]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:46spamd[18500]: identified spam (18.0/5.0) for root:65534 in 0.7 seconds,
1544 bytes. 
May 15 20:12:46spamd[18501]: identified spam (34.5/5.0) for root:65534 in 0.7 seconds,
8464 bytes. 
May 15 20:12:46spamd[18502]: identified spam (11.6/5.0) for root:65534 in 0.8 seconds,
2459 bytes. 
May 15 20:12:46spamd[18503]: identified spam (16.7/5.0) for root:65534 in 0.9 seconds,
5532 bytes. 
May 15 20:12:46spamd[18504]: processing message
<20011206235802.4FD6F1143D6 [at] mail.netnoteinc.com> for root:65534. 
May 15 20:12:46spamd[18504]: identified spam (7.0/5.0) for root:65534 in 1.0 seconds, 2465
bytes. 
May 15 20:12:47spamd[18505]: identified spam (18.2/5.0) for root:65534 in 1.0 seconds,
5373 bytes. 
May 15 20:12:47spamd[18506]: identified spam (18.0/5.0) for root:65534 in 1.1 seconds,
1544 bytes. 
May 15 20:12:47spamd[18477]: server killed by SIGTERM, shutting down 
May 15 20:12:47spamd[18507]: identified spam (34.5/5.0) for root:65534 in 1.3 seconds,
8464 bytes. 
May 15 20:12:49spamd[18510]: server started on port 18972 (running version 2.54) 
May 15 20:12:50spamd[18510]: connection from localhost [127.0.0.1] at port 4296 
May 15 20:12:50spamd[18513]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:50spamd[18513]: processing message <9PS291LhupY> for root:65534. 
May 15 20:12:50spamd[18513]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:50spamd[18510]: server killed by SIGTERM, shutting down 
May 15 20:12:53spamd[18516]: server started on port 48373 (running version 2.54) 
May 15 20:12:53spamd[18516]: connection from localhost [127.0.0.1] at port 4297 
May 15 20:12:53spamd[18519]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:53spamd[18519]: checking message <9PS291LhupY> for root:65534. 
May 15 20:12:53spamd[18519]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:53spamd[18516]: connection from localhost [127.0.0.1] at port 4298 
May 15 20:12:53spamd[18522]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:53spamd[18522]: checking message <989962282.546.27.camel [at] milkplus> for
root:65534. 
May 15 20:12:54spamd[18522]: clean message (0.0/5.0) for root:65534 in 0.1 seconds, 3426
bytes. 
May 15 20:12:54spamd[18516]: server killed by SIGTERM, shutting down 
May 15 20:12:56spamd[18525]: server started on port 48373 (running version 2.54) 
May 15 20:12:57spamd[18525]: connection from localhost [127.0.0.1] at port 4299 
May 15 20:12:57spamd[18528]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:57spamd[18528]: checking message <9PS291LhupY> for root:65534. 
May 15 20:12:57spamd[18528]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:12:57spamd[18525]: connection from localhost [127.0.0.1] at port 4300 
May 15 20:12:57spamd[18531]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:12:57spamd[18531]: checking message <989962282.546.27.camel [at] milkplus> for
root:65534. 
May 15 20:12:57spamd[18531]: clean message (0.0/5.0) for root:65534 in 0.1 seconds, 3426
bytes. 
May 15 20:12:57spamd[18525]: server killed by SIGTERM, shutting down 
May 15 20:13:00spamd[18534]: server started on port 48373 (running version 2.54) 
May 15 20:13:00spamd[18534]: connection from localhost [127.0.0.1] at port 4301 
May 15 20:13:00spamd[18537]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:13:00spamd[18537]: processing message <9PS291LhupY> for root:65534. 
May 15 20:13:00spamd[18537]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:13:00spamd[18534]: server killed by SIGTERM, shutting down 
May 15 20:13:03spamd[18540]: server started on port 48373 (running version 2.54) 
May 15 20:13:04spamd[18540]: connection from localhost [127.0.0.1] at port 4302 
May 15 20:13:04spamd[18543]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:13:04spamd[18543]: checking message <9PS291LhupY> for root:65534. 
May 15 20:13:04spamd[18543]: identified spam (18.0/5.0) for root:65534 in 0.1 seconds,
1544 bytes. 
May 15 20:13:04spamd[18540]: server killed by SIGTERM, shutting down 
May 15 20:13:06spamd[18546]: server started on port 48373 (running version 2.54) 
May 15 20:13:07spamd[18546]: connection from localhost [127.0.0.1] at port 4303 
May 15 20:13:07spamd[18549]: Still running as root: user not specified with -u, not found,
or set to root.  Fall back to nobody. 
May 15 20:13:07spamd[18549]: processing message
<20011206235802.4FD6F1143D6 [at] mail.netnoteinc.com> for root:65534. 
May 15 20:13:07spamd[18549]: identified spam (5.9/5.0) for root:65534 in 0.1 seconds, 1943
bytes. 
May 15 20:13:07spamd[18546]: server killed by SIGTERM, shutting down 
May 15 20:26:31postfix/smtpd[18678]: connect from localhost[127.0.0.1]
May 15 20:26:31postfix/smtpd[18678]: 23D6D225B6: client=localhost[127.0.0.1]
May 15 20:26:32postfix/cleanup[18680]: 23D6D225B6:
message-id=<200305151949.13286.pgd-karolinali [at] algonet.se>
May 15 20:26:32postfix/cleanup[18680]: 23D6D225B6:
resent-message-id=<I0QuHB.A.mdE.Se9w- [at] murphy>
May 15 20:26:32postfix/qmgr[3594]: 23D6D225B6:
from=<bounce-debian-kde=richard=sheflug.co.uk [at] lists.debian.org>, size=13634, nrcpt=1
(queue active)
May 15 20:26:33postfix/smtpd[18678]: AA70A22805: client=localhost[127.0.0.1]
May 15 20:26:34postfix/cleanup[18680]: AA70A22805:
message-id=<ADF6087CA978A4418AF7F76DDCF2F72102757113 [at] europa.ats.sensis.com>
May 15 20:26:34postfix/qmgr[3594]: AA70A22805: