Changes

From SME Server
Jump to navigationJump to search
614 bytes added ,  00:16, 24 November 2020
no edit summary
Line 1: Line 1: −
[[Category:Mail]][[Category:Contrib]]
+
==Maintainer==
 +
This contrib has been developed by [[User:Knuddi|Jesper Knudsen]] from [http://smeoptimizer.swerts-knudsen.dk SME Optimizer]
 +
 
 +
We have now added it to the contribs repo and are updating it for v10.
 +
 
 +
It needs the smeserver-dovecot-extras rpm
   −
==Maintainer==
+
https://wiki.contribs.org/Dovecot-extras
This contrib has been developed by [[User:Knuddi|Jesper Knudsen]]
+
 
 +
 
 +
{{ #smeversion: smeserver-unjunkmgr }}
 +
 
 +
(currently in smedev)
    
==Description==
 
==Description==
Line 17: Line 26:  
==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.
 +
yum install --enablerepo=smecontribs smeserver-unjunkmgr
   −
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/swerts-knudsen/SME7/UnJunkMgr/sme-unjunkmgr-1.1.1-1.noarch.rpm
+
for SME10 you need the epel repository:
yum  --enablerepo=smecontribs --enablerepo=base localinstall sme-unjunkmgr-1.1.1-1.noarch.rpm
     −
====Upgrading from previous releases====
+
yum install --enablerepo=smecontribs,epel smeserver-unjunkmgr
   −
{{Note box|Note 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.}}
+
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
   −
====De-installation or de-activation====
+
====Upgrading====
You can simply remove the package again with the usual rpm command.
     −
rpm –e sme-unjunkmgr-1.1.1-1
+
  yum upgrade --enablerepo=smecontribs smeserver-unjunkmgr
 +
====Uninstall====
 +
You can simply remove the package again with the usual yum command.  
   −
If you are uninstalling version '''1.0.0-1''' you also need to also expand templates.
+
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/crontab
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
 
  /etc/rc.d/init.d/httpd-e-smith restart
 
  /etc/rc.d/init.d/httpd-e-smith restart
  −
or disable the functionality with (default: yes):
  −
  −
/sbin/e-smith/db configuration set unjunkmgr service enabled <no|yes>
      
==Configuration==
 
==Configuration==
Line 76: Line 90:     
An additional feature of the UnJunk Manager is to send the collected statistics to a central statistics central at http://central.swerts-knudsen.dk. The gathering of data is not stressful for the server and the data sent is not sensitive (well in my opinion) and consists of:
 
An additional feature of the UnJunk Manager is to send the collected statistics to a central statistics central at http://central.swerts-knudsen.dk. The gathering of data is not stressful for the server and the data sent is not sensitive (well in my opinion) and consists of:
-  amount of emails scanned
+
 
-  number of spam infected or virus infected emails
+
* Amount of emails scanned
if virus infected the name of the virus found
+
* Number of spam infected (tagged and rejected) or virus infected emails (if virus found the ClamAV name)
-  the version of SME server used
+
* The version of SME server used  
 +
* Public IP address of server (used to plot in Google Maps on central.swerts-knudsen.com)
    
Should you want to disable this functionality then this can obviously be done:
 
Should you want to disable this functionality then this can obviously be done:
Line 109: Line 124:  
I would also recommend to install the script that downloads all the unofficial ClamAV signatures as these detects not only virus but equally importantly various kinds of malware and spam.
 
I would also recommend to install the script that downloads all the unofficial ClamAV signatures as these detects not only virus but equally importantly various kinds of malware and spam.
   −
Follow the guide on http://wiki.contribs.org/Email#Anti_Virus to do that.
+
Follow the guide for [[Virus:Additional_Signatures|Additional Virus Signatures]] to do that.
    
==FAQ==
 
==FAQ==
    
===How do I see what this Summary of Junkmail looks like without sending to all my users?===
 
===How do I see what this Summary of Junkmail looks like without sending to all my users?===
You will need to change the “$debug = 0;” to “$debug = 1;” in the configuration section of the /usr/local/unjunkmgr/spamreminder.pl file. Then launch the reminder manually with:  
+
You will need to change config via:
 +
/sbin/e-smith/db configuration setprop unjunkmgr useremails no
 +
/sbin/e-smith/db configuration setprop unjunkmgr adminemails yes
 +
 
 +
Then launch the reminder manually with:  
 
  /usr/local/unjunkmgr/spamreminder.pl
 
  /usr/local/unjunkmgr/spamreminder.pl
 +
 
All the summary emails will now be sent to “admin”.
 
All the summary emails will now be sent to “admin”.
   Line 203: Line 223:     
Fixed problem in post-upgrade script that caused upgrades from earlier versions to fail
 
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
 +
 +
Updated style sheets (CSS) to show nicely also using IE
 +
 +
Added statistic for top spammed email accounts
 +
 
|}
 
|}
 +
 +
=== 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."}}
 +
 +
----
 +
[[Category:Mail]]
 +
[[Category:Contrib]]
 +
[[Category:Administration:Content Spam Virus Blocking]]
 +
[[Category:Administration:Monitoring]]

Navigation menu