Changes

From SME Server
Jump to navigationJump to search
8 bytes removed ,  21:05, 26 August 2008
SME UnJunk Manager
Line 12: Line 12:  
The package needs the Perl-MIME-Lite package to be able to send out HTML formatted emails.
 
The package needs the Perl-MIME-Lite package to be able to send out HTML formatted emails.
   −
yum install perl-MIME-Lite --enablerepo=smecontribs
+
yum install perl-MIME-Lite --enablerepo=smecontribs
    
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.0-1.noarch.rpm
+
rpm –Uvh http://sme.swerts-knudsen.com/downloads/unjunkmgr/sme-unjunkmgr-1.0.0-1.noarch.rpm
    
De-installation or de-activation:
 
De-installation or de-activation:
 
You can simply remote the package again with the usual rpm command
 
You can simply remote the package again with the usual rpm command
   −
rpm –e sme-unjunkmgr-1.0.0-1
+
rpm –e sme-unjunkmgr-1.0.0-1
    
or disable the functionality with:
 
or disable the functionality with:
   −
/sbin/e-smith/db configuration set unjunkmgr service enabled yes
+
/sbin/e-smith/db configuration set unjunkmgr service enabled yes
    
==Configuration==
 
==Configuration==
Line 31: Line 31:  
The SpamAssassin learning does require 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.
 
The SpamAssassin learning does require 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.
   −
<nowiki>config setprop spamassassin UseBayes 1
+
config setprop spamassassin UseBayes 1
 
+
config setprop spamassassin BayesAutoLearnThresholdSpam 4.00
config setprop spamassassin BayesAutoLearnThresholdSpam 4.00
+
config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
 
+
expand-template /etc/mail/spamassassin/local.cf
config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
+
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
 
+
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
expand-template /etc/mail/spamassassin/local.cf
+
chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
 
+
chmod 640 /var/spool/spamd/.spamassassin/bayes_*
sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
+
config setprop spamassassin status enabled
 
+
signal-event email-update
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</nowiki>
      
The UnJunk Manager also collects statistics on the emails passing through the mail server. This is accessible from:
 
The UnJunk Manager also collects statistics on the emails passing through the mail server. This is accessible from:
Line 56: Line 48:  
This web page 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 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:
   −
/sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
+
/sbin/e-smith/db configuration setprop unjunkmgr LocalOnly <no|yes>
    
http://sme.swerts-knudsen.dk/images/unjunkweb.jpg
 
http://sme.swerts-knudsen.dk/images/unjunkweb.jpg
Line 68: Line 60:  
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:
   −
/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”.
 
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”.
Line 79: Line 71:  
A: You will need to change the “$debug = 0;” to “$debug = 1;” in the configuration section of the /usr/local/unjunkmgr/spamreminder.pl file. Then lauch the reminder manually with:
 
A: You will need to change the “$debug = 0;” to “$debug = 1;” in the configuration section of the /usr/local/unjunkmgr/spamreminder.pl file. Then lauch 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”.
177

edits

Navigation menu