Koozali.org: home of the SME Server

[Announce] Updated sme-unjunkmgr

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
[Announce] Updated sme-unjunkmgr
« on: April 02, 2009, 01:05:48 PM »
The UnJunk Manager has been updated based on feedback from a great deal of users (thanks for the feedback).

Updates:
  • Updated statistics overview to use pie charts for spam and different tables for virus found
  • Added new configuration parameters for most commonly asked changes to avoid hard-coding
  • Improved log file checks to avoid catching errors and warnings from f.ex ClamAV
  • Generally improved code to remove warnings to admin when sending weekly summary emails

Installation/Upgrade:
Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.0-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.0-1.noarch.rpm

I have updated the Wiki with all the new configuration parameters.
http://wiki.contribs.org/Sme-unjunkmgr

Enjoy,
Jesper
« Last Edit: April 02, 2009, 03:00:26 PM by Knuddi »

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: [Announce] Updated sme-unjunkmgr
« Reply #1 on: April 02, 2009, 07:40:50 PM »
Great!

What would be the correct way to update from sme-unjunkmgr-1.0.0-1 ???

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce] Updated sme-unjunkmgr
« Reply #2 on: April 02, 2009, 08:22:24 PM »
You change the "localinstall" to a "localupdate"

Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.0-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localupdate sme-unjunkmgr-1.1.0-1.noarch.rpm

/Jesper

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: [Announce] Updated sme-unjunkmgr
« Reply #3 on: April 02, 2009, 08:33:38 PM »
Yes of course, - stupid me ;) ;) ;)

Thanks for a very quick answer and a great contrib :pint:

Offline mdo

  • *
  • 355
  • +0/-0
Re: [Announce] Updated sme-unjunkmgr
« Reply #4 on: April 03, 2009, 06:52:52 AM »
Hi,

Thanks for your work with this. Not sure whether you want us to report problems here?

I uninstalled the previous version and installed the new version early today and today's (Friday) batch job at 1pm failed with the following email:

syntax error at /usr/local/unjunkmgr/spamreminder.pl line 112, near ") {"
Execution of /usr/local/unjunkmgr/spamreminder.pl aborted due to compilation errors.
...

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce] Updated sme-unjunkmgr
« Reply #5 on: April 03, 2009, 08:02:40 PM »
Found that one - seems that I am not able to spell to "if" :-( I have created a new release which has been sync'ed to the mirrors now.

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.1-1.noarch.rpm

Please notice that I have found a bug in the older releases causing updates to fail (main directory will be deleted by post install script...). This means that in order to upgrade to 1.1.1-1 you will need to uninstall the old version first and then do the install of the new. Side effect is that your old log files (statistics) will also be deleted. If you want to avoid this you need to save a copy of all *.old and *.log files within /usr/local/unjunkmgr directory. These can be copied back after install is completed.

« Last Edit: April 03, 2009, 09:35:51 PM by Knuddi »

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: [Announce] Updated sme-unjunkmgr
« Reply #6 on: April 04, 2009, 10:16:57 PM »
Another question:

If I don't want to send out notifications to users, I execute

Code: [Select]
/sbin/e-smith/db configuration setprop unjunkmgr useremails no

This seems to disable the admin report mails as well.

Would it be possible to get only admin notifications, but no user notifications?

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce] Updated sme-unjunkmgr
« Reply #7 on: April 05, 2009, 07:52:46 AM »
Do I understand correctly that you (admin) want to receive summary emails per user but do not want the users to receive the same? That I didn't include as an option right now I am afraid.

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: [Announce] Updated sme-unjunkmgr
« Reply #8 on: April 05, 2009, 09:03:15 AM »
Yes Knuddi, you understand me correctly.

The situation I'm trying to adopt this for is a very common one though:

Most users on most servers don't have much problem with spam, and often they get more frustrated than helped by those weekly reports.
But as often, a small number of users attract huge numbers of spam, so the admin still needs those individual reports in order to slam them on the actual users's desk.

Hope you understand what I'm suggesting...

Best Regards!

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: [Announce] Updated sme-unjunkmgr
« Reply #9 on: April 07, 2009, 11:04:07 AM »
Jumba,

I have now made a new revision with this functionality enabled. If you disable useremails and enable adminemails you should what you were looking for.

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.2-1.noarch.rpm

Enjoy,
Jesper

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: [Announce] Updated sme-unjunkmgr
« Reply #10 on: April 07, 2009, 11:36:24 AM »
Great!

I just upgraded, and it seems to work.

Found a minor typo in your wiki page though:

Code: [Select]
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.2-1.noarch.rpm
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.1-1.noarch.rpm

That last line should of course read:

Code: [Select]
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.2-1.noarch.rpm

Happy Eastern to you!