Changes

Jump to navigation Jump to search
1,427 bytes removed ,  04:03, 2 August 2022
Line 1: Line 1:  
==Maintainer==
 
==Maintainer==
This contrib has been developed by [[User:Knuddi|Jesper Knudsen]]  
+
This contrib has been developed by [[User:Knuddi|Jesper Knudsen]] from [http://smeoptimizer.swerts-knudsen.dk SME Optimizer]
 +
 
 +
==Details==
 +
We have now added it to the contribs repo and are updating it for v10.
 +
 
 +
It needs the smeserver-dovecot-extras rpm
 +
 
 +
https://wiki.contribs.org/Dovecot-extras
 +
 
 +
==Version==
 +
{{ #smeversion: smeserver-unjunkmgr }}
    
==Description==
 
==Description==
Line 15: Line 25:  
==Installation==
 
==Installation==
   −
The package needs the Perl-MIME-Lite package to be able to send out HTML formatted emails and MRTG to create the statistics graphs. These packages are available from smecontribs and base respectively.
+
You can install this contribs by yum with the following command. You should use this method as you will have always the newest version.
   −
  wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.3-1.noarch.rpm
+
<tabs container>
  yum --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.3-1.noarch.rpm
+
<tab name="For sme10">
 +
  yum install --enablerepo=smecontribs smeserver-unjunkmgr
 +
</tab>
 +
<tab name="For sme9">
 +
  yum install --enablerepo=smecontribs smeserver-unjunkmg
 +
and then
 +
expand-template /etc/crontab
 +
expand-template /etc/httpd/conf/httpd.conf
 +
/etc/rc.d/init.d/httpd-e-smith restart
    +
or
 +
signal-event post-upgrade; signal-event reboot
 +
</tab>
 +
</tabs>
 
====Upgrading====
 
====Upgrading====
   −
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.3-1.noarch.rpm
+
  yum upgrade --enablerepo=smecontribs smeserver-unjunkmgr
yum --enablerepo=smecontribs --enablerepo=base localupdate sme-unjunkmgr-1.1.3-1.noarch.rpm
  −
 
  −
{{Note box|Note that I have found a bug in the older releases (1.0.x) causing updates to fail (main directory will be deleted by post install script...). This means that in order to upgrade to 1.1.3-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.}}
  −
 
   
====Uninstall====
 
====Uninstall====
 
You can simply remove the package again with the usual yum command.  
 
You can simply remove the package again with the usual yum command.  
   −
  yum remove sme-unjunkmgr
+
  yum remove smeserver-unjunkmgr
 
  −
NOTE: If you are uninstalling version '''1.0.0-1''' you also need to also expand templates.
  −
expand-template /etc/crontab
  −
expand-template /etc/httpd/conf/httpd.conf
  −
/etc/rc.d/init.d/httpd-e-smith restart
      
==Configuration==
 
==Configuration==
Line 56: Line 69:  
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
 
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
  /etc/rc.d/init.d/httpd-e-smith restart
+
  systemctl restart httpd-e-smith
    
====Statistics====
 
====Statistics====
Line 68: Line 81:  
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
 
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
  /etc/rc.d/init.d/httpd-e-smith restart
+
  systemctl restart httpd-e-smith
    
[[Image:Unjunkwebstat.jpg]]
 
[[Image:Unjunkwebstat.jpg]]
Line 178: Line 191:  
This contrib has not yet been created in the bugtracker so just send an email to mailto:contribs@swerts-knudsen.dk
 
This contrib has not yet been created in the bugtracker so just send an email to mailto:contribs@swerts-knudsen.dk
   −
==Revisions==
  −
{| border="1" style="background-color:#C0C0C0"
  −
|Release
  −
|Changes
  −
|- style="background-color:#FFFFFF"
  −
|1.0.0-1
  −
|First release
  −
|- style="background-color:#FFFFFF"
  −
|1.0.1-1
  −
|Updated web overview to have virus rigth and spam to the left.
  −
  −
Fixed regex causing some warning messages during weekly spamreminder run if email subject were empty
  −
  −
Improved uninstall to clean up properly
  −
|- style="background-color:#FFFFFF"
  −
|1.1.0-1
  −
|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 ClamAV
  −
  −
Generally improved code to remove warnings to admin when sending weekly summary emails
  −
|- style="background-color:#FFFFFF"
  −
|1.1.1-1
  −
|Fixed problem with weekly emails (error line 112 in spamreminder.pl)
  −
  −
Fixed problem in post-upgrade script that caused upgrades from earlier versions to fail
     −
|- style="background-color:#FFFFFF"
  −
|1.1.3-1
  −
|Now also counting rejected emails that never reaches SpamAssassin (rejected due to missing mailbox, reverse DNS fails, etc.)
     −
Fixed problem using unjunkhost configuration parameter
+
== Bugs ==
 +
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 +
Use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-unjunkmgr|title=this link}}.
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id|order=desc |component=smeserver-unjunkmgr|noresultsmessage="No open bugs found."}}
   −
Updated style sheets (CSS) to show nicely also using IE
     −
Added statistic for top spammed email accounts
+
== Changelogs ==
 +
Only released version in smecontrib are listed here.
   −
|}
+
{{#smechangelog: smeserver-unjunkmgr }}
 
----
 
----
 
[[Category:Mail]]
 
[[Category:Mail]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu