Changes

From SME Server
Jump to navigationJump to search
145 bytes removed ,  11:32, 2 April 2009
no edit summary
Line 25: Line 25:  
Then install the sme-unjunkmgr RPM from (I will get around and release to contribs later):
 
Then install the sme-unjunkmgr RPM from (I will get around and release to contribs later):
   −
  rpm –Uvh http://sme.swerts-knudsen.com/downloads/unjunkmgr/sme-unjunkmgr-1.0.1-1.noarch.rpm
+
  rpm –Uvh http://sme.swerts-knudsen.com/downloads/unjunkmgr/sme-unjunkmgr-1.1.0-1.noarch.rpm
    
====De-installation or de-activation====
 
====De-installation or de-activation====
Line 32: Line 32:  
  rpm –e sme-unjunkmgr-1.0.1-1
 
  rpm –e sme-unjunkmgr-1.0.1-1
   −
If you are uninstalling version 1.0.0-1 you also need to also expand templates.
+
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:
+
or disable the functionality with (default: yes):
    
  /sbin/e-smith/db configuration set unjunkmgr service enabled <no|yes>
 
  /sbin/e-smith/db configuration set unjunkmgr service enabled <no|yes>
Line 43: Line 43:  
==Configuration==
 
==Configuration==
   −
====SpamAssassin bayes filters====
+
====Email Notifications====
 +
The UnJunk Manager sends out the summary email every Friday at 1PM to all users with emails stored in their junkmail folder. If you wish the admin account to get copied on all these user emails then this can be enabled/disabled with (default: no):
   −
The SpamAssassin learning requires that the SpamAssassin bayes filters have been enabled though. How this is done can be read at http://wiki.contribs.org/Email#Setup_Blacklists_.26_Bayesian_Autolearning or through these few shell commands.
+
/sbin/e-smith/db configuration setprop unjunkmgr adminemails <no|yes>
   −
config setprop spamassassin UseBayes 1
+
If you just want to use the UnJunk Manager to gather statistics and not send out any summary emails to the users you can disable this functionality with (default: yes):
config setprop spamassassin BayesAutoLearnThresholdSpam 4.00
  −
config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
  −
expand-template /etc/mail/spamassassin/local.cf
  −
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
  −
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
  −
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
  −
chmod 640 /var/spool/spamd/.spamassassin/bayes_*
  −
config setprop spamassassin status enabled
  −
signal-event email-update
      +
/sbin/e-smith/db configuration setprop unjunkmgr useremails <no|yes>
   −
Personally I also think that the default 90 days of retention for emails in the junkmail folder is way to long - who bothers to look at 90 days old emails anyways? I run with 15 days of retention on all my installations.
+
How do I configure the UnJunkMgr to use an IP address or a different hostname rather than the primary domain name when it sends out the weekly overview (default: domainname)?
   −
  db configuration setprop spamassassin MessageRetentionTime 15 
+
  /sbin/e-smith/db configuration setprop unjunkmgr unjunkhost <hostname|IP address>
signal-event email-update
  −
 
  −
====Unofficial ClamAV signatures====
  −
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.
      
====Statistics====
 
====Statistics====
Line 75: Line 62:  
http://your.domain.com/unjunkmgr
 
http://your.domain.com/unjunkmgr
   −
This web page and the unjunk functionality can, by default, only be seen from the local network (IP ranges defined in Local Network in the server-manager) but if you want this to be accessible from remote networks (public access) this can be done via:
+
This web page and the unjunk functionality can, by default, only be seen from the local network (IP ranges defined in Local Network in the server-manager) but if you want this to be accessible from remote networks (public access) this can be done via (default: yes):
    
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
 
  /sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
Line 93: Line 80:  
  /sbin/e-smith/db configuration setprop unjunkmgr statsclient <disabled|enabled>
 
  /sbin/e-smith/db configuration setprop unjunkmgr statsclient <disabled|enabled>
   −
Today around ~850 servers still active with my sme-spamfilter contrib and ~450 servers using my sme-antivirus for SME 6x send in data for this “worldwide overview”.
+
====SpamAssassin bayes filters====
   −
[[Image:Centralweb.jpg]]
+
The SpamAssassin learning requires that the SpamAssassin bayes filters have been enabled though. How this is done can be read at http://wiki.contribs.org/Email#Setup_Blacklists_.26_Bayesian_Autolearning or through these few shell commands.
 +
 
 +
config setprop spamassassin UseBayes 1
 +
config setprop spamassassin BayesAutoLearnThresholdSpam 4.00
 +
config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
 +
expand-template /etc/mail/spamassassin/local.cf
 +
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
 +
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
 +
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
 +
chmod 640 /var/spool/spamd/.spamassassin/bayes_*
 +
config setprop spamassassin status enabled
 +
signal-event email-update
 +
 
 +
 
 +
Personally I also think that the default 90 days of retention for emails in the junkmail folder is way to long - who bothers to look at 90 days old emails anyways? I run with 15 days of retention on all my installations.
 +
 
 +
db configuration setprop spamassassin MessageRetentionTime 15 
 +
signal-event email-update
 +
 
 +
====Unofficial ClamAV signatures====
 +
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.
    
==FAQ==
 
==FAQ==
Line 157: Line 166:  
   
 
   
 
  expand-template /etc/crontab
 
  expand-template /etc/crontab
  −
===How do I avoid the admin emails?===
  −
You unfortunately have to change a few lines of code to avoid these. Open a shell on the system you install the contrib on and open /usr/local/unjunkmgr/spamreminder.pl with your favorite editor.
  −
  −
Find the line (around line 35):
  −
my $admin_email_addr = 'admin';
  −
and change to
  −
my $admin_email_addr = "";
  −
      
===How do I report a problem or a suggestion?===
 
===How do I report a problem or a suggestion?===
 
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
  −
===Recent fix to know problem:===
  −
How do I configure the UnJunkMgr to use an IP addres rather than the primary domain name when it sends out the weekly overview?
  −
  −
There are no configuration options to alter this so you need to fix it in the code - not so hard though.
  −
open /usr/local/unjunkmgr/spamreminder.pl with your favorite editor ad go to line 49 where $root_url is defined.
  −
  −
Let assume that the local IP address of the server is 192.168.1.2
  −
  −
change the original line 49:
  −
  −
<nowiki>my $root_url = sprintf ("http://%s/unjunkmgr",$domain_name);</nowiki>
  −
  −
to
  −
  −
<nowiki>my $root_url = sprintf ("http://%s/unjunkmgr",'192.168.1.2');</nowiki>
  −
  −
Ref: http://forums.contribs.org/index.php/topic,42221.0/topicseen.html
      
==Revisions==
 
==Revisions==
Line 202: Line 184:     
Improved uninstall to clean up properly  
 
Improved uninstall to clean up properly  
 +
|1.1.0-1
 +
|Updated statistics overview to use graphs for spam.
 +
 +
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
 
|}
 
|}
177

edits

Navigation menu