MailScanner not behaving - endless loop?

Julian Field mailscanner at ecs.soton.ac.uk
Thu Nov 20 16:43:28 GMT 2003


Also, if running as non-root, ensure that the user can write to all of
         /var/spool/mqueue.in
         /var/spool/mqueue
         /var/spool/MailScanner/incoming
         /var/spool/MailScanner/quarantine
         /tmp/*Busy.lock

At 15:57 20/11/2003, you wrote:
>Hi Robert,
>
>I've not used Debian 'stale' before - does sendmail run as user root:root or
>as another user/group - if it does run as a non-root user, have you changed
>the MailScanner.conf settings for 'Run As User' and 'Run As Group'??
>
>I'm taking a wild guess that sendmail is running as a non-root user which
>has it's home directory set to /var/spool and that it doesn't have
>permission to write to /var/spool.
>
>If this is the case - you could add 'bayes_path /etc/MailScanner/bayes' and
>'bayes_file_mode 0660' to spam.assassin.prefs.conf and create the
>/etc/MailScanner/bayes directory with permissions that the user can write to
>correctly.
>
>Like I said - just a wild guess, but it may help you pinpoint the problem.
>
>Kind regards,
>Steve.
>
>-----Original Message-----
>From: Robert Waldner [mailto:waldner at WALDNER.PRIV.AT]
>Sent: 20 November 2003 14:08
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: MailScanner not behaving - endless loop?
>
>
>
>On Thu, 20 Nov 2003 09:34:55 +0100, Robert Waldner writes:
> >But I'm pretty sure that when I leave it running without Debug for a
> > day, I'll end up with one or two hanging, CPU-munching processes again.
>
>Bingo.
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>19011 root      14   0 30792 3348  3320 R    94.0  2.3 100:55 MailScanner
>
>Although this process tried to create $bayes_path/bayes.lock, in a tight
>  loop seemingly.
>
>link("/var/spool/.spamassassin/bayes.lock.ka.27626",
>"/var/spool/.spamassassin/bayes.lock") = -1 EEXIST (File exists)
>stat64("/var/spool/.spamassassin/bayes.lock.ka.27626", {st_dev=makedev(3,
>8), st_ino=2856390, st_mode=S_IFREG|0600, st_nlink=1, st_uid=0, st_gid=8,
>st_blksize=4096, st_blocks=64, st_size=18, st_atime=2003/11/20-15:02:47,
>st_mtime=2003/11/20-15:02:48, st_ctime=2003/11/20-15:02:48}) = 0
>stat64("/var/spool/.spamassassin/bayes.lock", {st_dev=makedev(3, 8),
>st_ino=2856386, st_mode=S_IFREG|0600, st_nlink=1, st_uid=0, st_gid=8,
>st_blksize=4096, st_blocks=8, st_size=9, st_atime=2003/11/20-14:56:34,
>st_mtime=2003/11/20-14:56:34, st_ctime=2003/11/20-14:56:34}) = 0 select(0,
>NULL, NULL, NULL, {1, 337297}) = 0 (Timeout)
>write(8, "ka.27626\n", 9)               = 9
>link("/var/spool/.spamassassin/bayes.lock.ka.27626",
>"/var/spool/.spamassassin/bayes.lock") = -1 EEXIST (File exists)
>stat64("/var/spool/.spamassassin/bayes.lock.ka.27626", {st_dev=makedev(3,
>8), st_ino=2856390, st_mode=S_IFREG|0600, st_nlink=1, st_uid=0, st_gid=8,
>st_blksize=4096, st_blocks=64, st_size=27, st_atime=2003/11/20-15:02:47,
>st_mtime=2003/11/20-15:02:50, st_ctime=2003/11/20-15:02:50}) = 0
>stat64("/var/spool/.spamassassin/bayes.lock", {st_dev=makedev(3, 8),
>st_ino=2856386, st_mode=S_IFREG|0600, st_nlink=1, st_uid=0, st_gid=8,
>st_blksize=4096, st_blocks=8, st_size=9, st_atime=2003/11/20-14:56:34,
>st_mtime=2003/11/20-14:56:34, st_ctime=2003/11/20-14:56:34}) = 0
>
>Any idea what could be causing this?
>
>cheers,
>&rw
>--
>-- bah, diese konsumenten-mentalitaet-wappler!
>--                                       - az
>
>
>
>--
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the sender and delete the message from your mailbox.
>
>This footnote also confirms that this email message has been swept by
>MailScanner (www.mailscanner.info) for the presence of computer viruses.

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654



More information about the MailScanner mailing list