[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: amavisd-new (Debian) Status: Unknown = Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in Ubuntu. https://bugs.launchpad.net/bugs/165184 Title: amavisd-new + spamassassin: cronjob spams root user To manage notifications about this bug go to: https://bugs.launchpad.net/server-papercuts/+bug/165184/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
In fact the problem is not fixed. It's workaround that doesn't give fix the underlying problem. The real solution would be to check if use_bayes is set to 0. If it is set like that, it shouldn't run the cleaning job. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in Ubuntu. https://bugs.launchpad.net/bugs/165184 Title: amavisd-new + spamassassin: cronjob spams root user To manage notifications about this bug go to: https://bugs.launchpad.net/server-papercuts/+bug/165184/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
/usr/sbin/amavisd-new-cronjob could be changed to check if use_bayes is set to 0: sa-clean) grep -q use_bayes 0 /etc/spamassassin/local.cf || do_amavis_cmd /usr/bin/sa-learn --sync --force-expire ;; Or it can be checked for in cron.daily/amavisd-new in a similar way. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in Ubuntu. https://bugs.launchpad.net/bugs/165184 Title: amavisd-new + spamassassin: cronjob spams root user To manage notifications about this bug go to: https://bugs.launchpad.net/server-papercuts/+bug/165184/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
This appears to be fixed in 2.6.4-2 (Debian), which needs to get merged for Ubuntu. I am updating the bug remote watch accordingly. ** Bug watch added: Debian Bug tracker #561311 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561311 ** Changed in: amavisd-new (Debian) Status: New = Unknown ** Changed in: amavisd-new (Debian) Remote watch: Debian Bug tracker #447040 = Debian Bug tracker #561311 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. https://bugs.launchpad.net/bugs/165184 Title: amavisd-new + spamassassin: cronjob spams root user -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
See also Debian bug 447040. In my opinion, the simplest fix is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447040#51 : Add dev/null directly into /etc/cron.d/amavisd-new, at the end of the cron line. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. https://bugs.launchpad.net/bugs/165184 Title: amavisd-new + spamassassin: cronjob spams root user -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Branch linked: lp:ubuntu/ubuntu-docs -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Status: Fix Committed = Fix Released -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
@Adam: I can't see the new section... -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Status: Triaged = Fix Committed -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
I can confirm that the issue is still in Maverick. I've added a subsection to the Amavisd-new section of the Server Guide to add the bayes 0 check from Sylvain's patch on comment #26. If this information solves the bug please let me know. You can see the new section by checking out the ubuntu-docs source, or checking: http://doc.ubuntu.com/ubuntu/serverguide/C/mail-filtering.html I believe the site is updated from the latest source daily so it may not be there until tomorrow. Thanks, Adam -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
The Debian bug reports this was fixed in package version 2.6.2-1, which has been in Ubuntu since Jaunty. Is this still a bug on recent Ubuntu installs? -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: amavisd-new (Ubuntu) Assignee: (unassigned) = Adam Sommer (asommer) -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Assignee: (unassigned) = Adam Sommer (asommer) -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Status: Confirmed = Triaged ** Changed in: server-papercuts Milestone: None = maverick-alpha-2 -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
Back on track as part of the Maverick papercuts cycle ** Changed in: server-papercuts Status: Won't Fix = Confirmed ** Changed in: server-papercuts Milestone: lucid-beta-2 = None -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Status: Confirmed = Won't Fix -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Changed in: server-papercuts Milestone: None = lucid-beta-2 -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
Accepted as a papercut, for a documentation fix. ** Changed in: server-papercuts Importance: Undecided = Low ** Changed in: server-papercuts Status: New = Confirmed -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
** Also affects: server-papercuts Importance: Undecided Status: New -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
To get rid of the bayes: synced databases from journal emails reported in comment 2, try this patch to /usr/bin/sa-learn. It turns off verbose mode (forced on by --sync) which is what causes the output. ** Attachment added: Patch to turn off verbose mode when sa-learn --sync is run http://launchpadlibrarian.net/37664292/sa-learn.diff -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
I think Sylvain Vallerot's patch (comment #26) addresses this properly. Works well on my system. Please commit! -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
Small patch, seems to solves the problem properly (my mind). Just checks about a line containing something like use_bayes 0 in Spamassassin config, and then exists. ** Attachment added: no-bayes patch for amavisd-new-crontab http://launchpadlibrarian.net/22043996/amavisd-new-crontab.no-bayes-patch -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
That's not a complete solution; since the job keeps complaining if bayes is disabled. -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
In order to silence the bayes database sync messages that are frequently sent via cron, could you consider fix along the lines of --- /usr/sbin/amavisd-new-cronjob 2008-10-11 07:17:30.0 +0300 +++ /tmp/amavisd-new-cronjob2009-01-12 09:20:53.960773192 +0200 @@ -29,7 +29,7 @@ case $1 in sa-sync) - do_amavis_cmd /usr/bin/sa-learn --sync /dev/null + do_amavis_cmd /usr/bin/sa-learn --sync 21 | egrep -v '^bayes: synced databases from journal in [0-9]+ seconds: [0-9]+ unique entries \([0-9]+ total entries\)$' ;; sa-clean) do_amavis_cmd /usr/bin/sa-learn --sync --force-expire /dev/null This would discard the annoying and totally useless sync messages but keep other possible error messages. -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
So, I see three options to fix this, which one to use isn't my call to decide: 1. patch spamassassin package, to make sure sa-learn doesn't complain if use_bayes is set to 0 2. patch amavisd-new package, to not run sa-learn if use_bayes is set to 0. There should be a way to query SpamAssassin's configuration from a script - if there is, just use it. 3. add /etc/default/* parameter to disable spamassassin's Bayes filtering, which would require subsequent changes to amavisd-new (don't run sa-learn - but beware of remaining cleanups when this option is set to 0 after some use) and spamassassin (to translate the /etc/default/* to use_bayes 0). I personally prefer #2 as the cleanest solution: amavisd-new owns the offending cronjob, so amavisd-new is the package that also has to deal with undesired side effects. -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
I'd buy: 2. patch amavisd-new package, to not run sa-learn if use_bayes is set to 0. There should be a way to query SpamAssassin's configuration from a script - if there is, just use it. Patches welcome. -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
I think, when is this package removed, this cron script should be removed too. Scott Kitterman napsal(a): Pavel, I suspect you had it installed on that box at one point. You'll just need to edit your crontab to get rid of the cron job. -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 165184] Re: amavisd-new + spamassassin: cronjob spams root user
Ive this problem too, but I dont have amavisd-new installed: [EMAIL PROTECTED]:~$ dpkg -l amavisd-new rc amavisd-new but cron.daily script is installed after remove this package without purge [EMAIL PROTECTED]:~$ cat /etc/cron.daily/amavisd-new #!/bin/sh # # Daily maintenance for amavisd-new # $Id: amavisd-new.cron.daily 930 2006-08-10 13:38:45Z hmh $ # test -e /usr/sbin/amavisd-new-cronjob exec /usr/sbin/amavisd-new-cronjob sa-clean [EMAIL PROTECTED]:~$ I have daily delivered mail with run-parts: /etc/cron.daily/amavisd-new exited with return code 1 but on my filesystem isnt file /usr/sbin /amavisd-new-cronjob [EMAIL PROTECTED]:~$ ls /usr/sbin/amavisd* ls: cannot access /usr/sbin/amavisd*: No such file or directory -- amavisd-new + spamassassin: cronjob spams root user https://bugs.launchpad.net/bugs/165184 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs