Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: TeNeCo on March 10, 2007, 10:24:24 AM
-
I get the following mail every night; what can I do?
Can't open /var/log/qpsmtpd/*.s: No such file or directory at /usr/bin/spamfilter-stats-7.pl line 216.
-
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
-
Have you filled in a Bug Report over @ http://bugs.contribs.org/ ? Please don't wait to be told this way you help us to help you/others - Thanks!
No, cause first I assume a human failure during my installation.
-
do you have any *.s files at /var/log/qpsmtpd ?
looks like it's the spamfilter-stats-7.pl that's giving a problem. I would start by asking the contrib author. Since this isn't an official script or contrib from the core team there's no reason to fill a bug report.
-
do you have any *.s files at /var/log/qpsmtpd ?
when I change to that dir and type a ls there I get the following result:
current lock state
-
Since this isn't an official script or contrib from the core team there's no reason to fill a bug report.
There are areas in the bug tracker for contribs from all contrib authors. If it don't exist it can be created.
-
do you have any *.s files at /var/log/qpsmtpd ?
when I change to that dir and type a ls there I get the following result:
current lock state
I get...
[root@tiger qpsmtpd]# ls
@4000000045ef1d8c0680b9ec.s @4000000045f225e03b0e280c.s @4000000045f5565b208bd72c.s @4000000045f810661b698a3c.s @4000000045fb11862210b9dc.s lock
@4000000045f0cee60d4d8674.s @4000000045f3958b18068d04.s @4000000045f6c1142a7da1d4.s @4000000045f9ae052e1d3e94.s current state
[root@tiger qpsmtpd]#
Do you see any qpsmtpd logs via server-manager ?
-
Do you see any qpsmtpd logs via server-manager ?
yes: qpsmtpd/current it's quite long.
-
do you have any *.s files at /var/log/qpsmtpd ?
when I change to that dir and type a ls there I get the following result:
@4000000046045c231fb1366c.s current lock state
It's also visible in the server-manager.
-
do you have any *.s files at /var/log/qpsmtpd ?
on the mashine where it still doesn't work I get the following output:
@4000000045e1b23415e0ab7c.u @4000000045ffa69733b0335c.u current state
@4000000045f1781d3125813c.u @4000000046055ecc2f296ed4.u lock
-
Each old log file has a name beginning with @, continuing with a precise timestamp showing when the file was finished, and ending with one of the following codes:
* .s: This file is completely processed and safely written to disk.
* .u: This file was being created at the moment of an outage. It may have been truncated. It has not been processed.
If you are only getting ".u" files then your system is never staying "up" long enough for qpsmtpd to gracefully rotate the log files.
I had a similar problem at one point and "fixed" it by modifying /etc/cron.d/mailstats.cron to scan "/var/log/qpsmtpd/*.* /var/log/qpsmtpd/current" instead of "/var/log/qpsmtpd/*.s /var/log/qpsmtpd/current".
You could eliminate your error message by running touch /var/log/qpsmtpd/@filler.s but you won't get valid reports if your logs all end in ".u".
Ultimately, mailstats needs to:- Include the ".u" logfiles when generating stats, as these files *can* contain relevant information
- gracefully handle the case where a specified input file is missing
These problems may have been addressed in the upcoming release of mailstats that uses "logterse"...
Here's a post from bugzilla suggesting "@*" instead of "*.*": http://bugs.contribs.org/show_bug.cgi?id=1524#c4
-
If you are only getting ".u" files then your system is never staying "up" long enough for qpsmtpd to gracefully rotate the log files.
What do you mean with "not long enough"? The server is running 24hours a day.
Now things became worse: yesterday I tried to install the spamfilter again. As a result I got the two Cron job mails twice at midnight. (the one with the error and the "SPAM filter statistic"). How can I stop one of them again? Now I have a spamfilter-stats-7.pl and a spamfilter-stats-7.pl.1 in /usr/var/
-
takes a while to get enough finished log files in /var/log/qpsmtpd for that error to go away, especially if you dont get a lot of mail.
The 'current' file grows to 5 megs in size before the system closes it and gives it a name ending with .s
Then it creates a new current file.
Just ignore the error and keep the server up. The server isnt rebooting or crashing, is it?
you could change mailstats, but watch for errors.
-
Delete spamfilter-stats-7.pl.1, as its not being used.
And make sure spamfilter-stats-7.pl is the current version, and that you install logterse.
Also make sure there is not more than one mailstats.cron file, and that the permissions for it are not higher than 644.
-
Delete spamfilter-stats-7.pl.1, as its not being used.
And make sure spamfilter-stats-7.pl is the current version, and that you install logterse.
Also make sure there is not more than one mailstats.cron file, and that the permissions for it are not higher than 644.
OK, I deleted spamfilter-stats-7.pl.1 and mailstats.cron.1. But what is logterse? Where can I find more informations?
-
This website has changed a lot, and I'm not sure where to find the latest files for the contribs, but these are the ones I use:
http://mirror.contribs.org/smeserver/contribs/bread/mailstats/
Instructions are there. Dont use spamfilter-stats-7.old.pl - its the old version.
-
OK, this night the double cron emails have disappeared again. The only thing remaining is the fact that the folder "LearnAsSpam" is not deleted during night.
-
I suggest that you remove all your files (just reverse the process you went trough) and install from the begining so you don't have different and duplicate versions.
-
The LearnAsSpam folder and the files inside arent deleted. The script doesnt do that anymore, so thats normal.
There are two forms of Bayes - one you have to teach, and one that learns spam automatically. LearnAsSpam.pl needs users to put all their spam into a folder named LearnAsSpam that you create in /home/e-smith/files/users/<username> .
Then they have to connect to SME and manage it using IMAP, (if they use a client like Outlook) or using a browser and SME webmail/Horde.
IMAP is a bit more trouble than pop3. You'll have to set it up for users, show them how to use it and where to place the spam. I use both types of Bayes, but for customers who arent as likely to want to mess with their email that much, I use the automatic form of Bayes, rather than LearnAsSpam.pl
And dont do anything bpivk tells you to do - he answers almost every post in these forums as if he's been appointed lord of SME. He doesnt even seem to actually know anything about what people are asking, yet he gives advice. He's just kinda lame and makes things worse.
-
And dont do anything bpivk tells you to do - he answers almost every post in these forums as if he's been appointed lord of SME. He doesnt even seem to actually know anything about what people are asking, yet he gives advice. He's just kinda lame and makes things worse.
And yet you're the only one that told me that.
Do you hate my suggestions about posting to the bugtracker. Because i won't stop posting them so you can just go and cry to someone else.
I'll stop with my posts when the devs tell me to not when some lame user that has a grudge that i don't even know of gets upset.
P.S.:If you don't like my posts ignore them or write a nice I hate you mail to me. Don't use the forum for flaming. I try to help as much as i can and answer to the posts where i think that i can help. I do make some mistakes (never made things worse) but that's normal because we're all human. So ignore my posts if you can't stand them but don't insult me. And could you please give me one example (send it to my mailbox) of making things worse?
And it's not true the folder LaernAsSpam IS cleared. It works that way on my server but id depends of the howto you used.
-
TeNeCo seems to have everything fixed, and you tell him to reinstall.
Thats pretty stupid advice. And this has nothing to do with bugtracker, so I dont know what youre going on about.
I do admit, I was wrong to say you were kinda lame, because youre completely lame and have no clue what ppl are talking about most the time.
-
deleted spamfilter-stats-7.pl.1 and mailstats.cron.1.
He had duplicate files and i suggested that he deletes them.
But it is true that i missed the train with that one. :D
Well the bugtracker post was because i suggested some people to report their bugs and i taught that you resent me for that.
I was trying to help but i see that you want to start some sort of insult topic so i won't respond to this topic anymore because you're too childish for my taste.
-
so i won't respond to this topic anymore
Please do that for the other topics too, you're not helping!!!
-
so i won't respond to this topic anymore
Please do that for the other topics too, you're not helping!!!
As i said... i try to help but i'm still learning and the best way is to ask questions and responding to them.
Besides that.. trying to help is a lot better than asking someone to get lost.
-
back to the topic:
the problem is that the folder "LearnAsSpam" is sometimes found and sometimes not. I can't explain why the folder is sometimes detected and sometimes not. As mail client I'm using Thunderbird 2.0.0.0