Re: R/O: tie failed: Permission denied
Michael Scheidell wrote: > > > >> From: Hungry Snail <[EMAIL PROTECTED]> >> Date: Tue, 12 Aug 2008 07:21:01 -0700 (PDT) >> To: >> Subject: R/O: tie failed: Permission denied >> >> >> hi Guys, >> >> I have recently moved out mail server to new hardware. >> >> It is setup exactly the same way (an identical mirror), yet I am getting >> the >> following warnings in my spamd.log. >> >> Tue Aug 12 15:13:36 2008 [6247] warn: bayes: cannot open bayes databases >> /etc/mail/spamassassin/spamdb/bayes_* R/O: tie failed: Permission denied >> Tue Aug 12 15:13:36 2008 [6247] warn: bayes: cannot open bayes databases >> /etc/mail/spamassassin/spamdb/bayes_* R/O: tie failed: Permission denied > > Probably a permission problem :-) > > 'move to new hardware'. Took disk out, put in in new hardware? Or > tarball/extrct? Scp? Rsync? Dump / reload? > Check to make sure the userid's, password file, groups, group permissions > are still the same. > > -- > Michael Scheidell, CTO >>|SECNAP Network Security > Winner 2008 Network Products Guide Hot Companies > FreeBSD SpamAssassin Ports maintainer > > _ > This email has been scanned and certified safe by SpammerTrap(r). > For Information please see http://www.spammertrap.com > _ > > Thanks for the reply, Well I installed everything on the new server and then just copied across the mail folders, configuration files and of course the spamdb. The permissions of the files are identical on both servers, and they are both set to run as root (probally something to be frowned upon, but it worked ok on the old server). even the passwd file looks identical. -- View this message in context: http://www.nabble.com/R-O%3A-tie-failed%3A-Permission-denied-tp18945254p18946110.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
R/O: tie failed: Permission denied
hi Guys, I have recently moved out mail server to new hardware. It is setup exactly the same way (an identical mirror), yet I am getting the following warnings in my spamd.log. Tue Aug 12 15:13:36 2008 [6247] warn: bayes: cannot open bayes databases /etc/mail/spamassassin/spamdb/bayes_* R/O: tie failed: Permission denied Tue Aug 12 15:13:36 2008 [6247] warn: bayes: cannot open bayes databases /etc/mail/spamassassin/spamdb/bayes_* R/O: tie failed: Permission denied The strange thing is, it is marking emails as spam like it should be, and if I sa-learn a message as spam it correctly shows as having worked when i run sa-learn --dump magic the 'nspam' number shows as having inreased. Any ideas :) Cheers -- View this message in context: http://www.nabble.com/R-O%3A-tie-failed%3A-Permission-denied-tp18945254p18945254.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
dump magic not updating
Hi Guys, I just ran sa-learn --spam --configpath=/etc/mail/spamassassin/ --showdots /var/vmail/mydomain/myaccount/.NOT-HAM/cur/ and it reported the following. Learned tokens from 290 message(s) (305 message(s) examined) however, when I run 'sa-learn --dump magic' it reports exactly the same numbers as before I ran the sa-learn. 0.000 0 3 0 non-token data: bayes db version 0.000 0 181508 0 non-token data: nspam 0.000 0 30468 0 non-token data: nham 0.000 0 160708 0 non-token data: ntokens 0.000 0 1208248441 0 non-token data: oldest atime 0.000 0 1217700458 0 non-token data: newest atime 0.000 0 1210512752 0 non-token data: last journal sync atime 0.000 0 1217698387 0 non-token data: last expiry atime 0.000 01382400 0 non-token data: last expire atime delta 0.000 0 58981 0 non-token data: last expire reduction count Any ideas why? Cheers -- View this message in context: http://www.nabble.com/dump-magic-not-updating-tp18791685p18791685.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: sa-learn question
Matt Kettler-3 wrote: > > previously it had several bits of bad advice: > Don't /etc/mail/spamassassin to store your bayes DB > Don't specify -C on the sa-learn command-line. You REALLY don't want to > use that option on any SA tool unless you know exactly what you're > doing. (This option is really mostly for testers and developers.) > Use init scripts to restart spamd > Thanks for all your advice Matt, much appreciated. -- View this message in context: http://www.nabble.com/sa-learn-question-tp16019261p16025291.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: sa-learn question
Site-wide is what i'm trying to setup, I guess i need to do some more googling :) -- View this message in context: http://www.nabble.com/sa-learn-question-tp16019261p16020836.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: sa-learn question
Matt Kettler-3 wrote: > > Did you run it as the same user as the sa-learn? > You might want to try the sa-learn again with -D to see what the > debugging has to say. > Bah, it works fine if I issue the command via the ssh. sa-learn --spam --configpath=/etc/mail/spamassassin --showdots http://www.nabble.com/sa-learn-question-tp16019261p16020246.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: sa-learn question
Hungry Snail wrote: > > Hi Guys, > > I am using spam/notspam via Squirrelmail > > If I mark an email as spam squirrelmail send this command. > COMMAND USED TO REPORT: /usr/bin/sa-learn --spam > --configpath=/etc/mail/spamassassin --showdots < > /var/spool/squirrelmail/attach//sb_tmp_174_1205370641 > > The result I get is.. > [0] => Learned tokens from 0 message(s) (1 message(s) examined) > > Does the result look correct? I was just wondering why is has 0 learned > tokens from 0 messages. > > Regards > Thats what I thought, but I forwarded the message to myself and it didnt get flagged as spam, it was also a message that was received before spamassassin was setup. I did sa-learn --dump magic and this is what I got back. 0.000 0 3 0 non-token data: bayes db version 0.000 0 0 0 non-token data: nspam 0.000 0 0 0 non-token data: nham 0.000 0 0 0 non-token data: ntokens 0.000 0 0 0 non-token data: oldest atime 0.000 0 0 0 non-token data: newest atime 0.000 0 0 0 non-token data: last journal sync atime 0.000 0 0 0 non-token data: last expiry atime 0.000 0 0 0 non-token data: last expire atime delta 0.000 0 0 0 non-token data: last expire reduction count is the command im using correct? I want the spam/hame rules to apply to everyone and not have it on a per user basis. Regards -- View this message in context: http://www.nabble.com/sa-learn-question-tp16019261p16019763.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
sa-learn question
Hi Guys, I am using spam/notspam via Squirrelmail If I mark an email as spam squirrelmail send this command. COMMAND USED TO REPORT: /usr/bin/sa-learn --spam --configpath=/etc/mail/spamassassin --showdots < /var/spool/squirrelmail/attach//sb_tmp_174_1205370641 The result I get is.. [0] => Learned tokens from 0 message(s) (1 message(s) examined) Does the result look correct? I was just wondering why is has 0 learned tokens from 0 messages. Regards -- View this message in context: http://www.nabble.com/sa-learn-question-tp16019261p16019261.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.