Changes

From SME Server
Jump to navigationJump to search
780 bytes added ,  21:22, 26 March 2017
Line 8: Line 8:  
[mailto:daniel@firewall-services.com[[User:VIP-ire|Daniel B.]]] from [http://www.firewall-services.com Firewall Services],
 
[mailto:daniel@firewall-services.com[[User:VIP-ire|Daniel B.]]] from [http://www.firewall-services.com Firewall Services],
 
Brian Read , Tim Litwiller , Michael McCarn and Jesper Knudsen
 
Brian Read , Tim Litwiller , Michael McCarn and Jesper Knudsen
      
=== Description ===
 
=== Description ===
Scripts (based on LearnAsSpam) which allows users to interact with spamassassin rules simply by dropping mail in special folders of their mailbox (working only with imap).
+
Scripts, based on LearnAsSpam, which allows users to interact with spamassassin rules simply by dropping mail into special folders added to their mailbox. This works only with IMAP as it is a server side process.
 
* Learn mail as spam
 
* Learn mail as spam
 
* Learn mail as ham
 
* Learn mail as ham
 
* Whitelist the sender so his mails won't be tagged as spam again
 
* Whitelist the sender so his mails won't be tagged as spam again
  −
      
=== Installation ===
 
=== Installation ===
   −
  yum --enablerepo=smedev,smecontribs,smetest install smeserver-learn
+
  yum --enablerepo=smecontribs install smeserver-learn
   −
enable Bayes. See  [[Email#Bayesian_Autolearning | Bayesian Autolearning]] as described in the [[Email]] page for a full setup. The barely to do would be:
+
Enable Bayes. See  [[Email#Bayesian_Autolearning | Bayesian Autolearning]] as described in the [[Email]] page for a full setup. The bare minimum configuration would be:
 
  db configuration setprop spamassassin UseBayes 1
 
  db configuration setprop spamassassin UseBayes 1
 
  config setprop spamassassin BayesAutoLearnThresholdSpam 6.00
 
  config setprop spamassassin BayesAutoLearnThresholdSpam 6.00
Line 40: Line 37:     
=== Documentation ===
 
=== Documentation ===
smeserver-learn store all key who need in configuration db : (the > indicate that is a prop and not a key)
+
The smeserver-learn package stores all key values needed in the configuration db. The right angle character, >, indicates that is a prop and not a key. For example, "status" is a property and "enabled, disabled" presents the allowed input values.
    
{|
 
{|
Line 56: Line 53:  
|-
 
|-
 
|>SpamLinks=$string
 
|>SpamLinks=$string
|Allows to create IMAP fakedfolder linked to junkmail folder. Useful for IOS client thant keep using junk folder and do not allow to set another folder. Multiple Links could be entered separated by comas ",". Default is empty ('') for disabled.
+
|Allows to create IMAP fakedfolder linked to junkmail folder. Useful for IOS client thant keep using junk folder and do not allow to set another folder. Multiple Links could be entered separated by comas ",". Default is empty ('') for disabled. More examples follow the table.
 
|-
 
|-
 
|>DeleteAfterLearn={enabled,disabled}
 
|>DeleteAfterLearn={enabled,disabled}
Line 62: Line 59:  
|-
 
|-
 
|>DelayToMove=$integer
 
|>DelayToMove=$integer
|Get the content of the user's junkmail folder before it is deleted. Useful to get SPAM placed here by the mail client software, not yet learnt. Can only be activated if DeleteAfterLearnis enabled to avoid loop. Default ''0'' for disabled.
+
|Get the content of the user's junkmail folder before it is deleted. Useful to get SPAM placed here by the mail client software, not yet learnt. Can only be activated if DeleteAfterLearn is enabled to avoid loop. Default ''0'' for disabled.
 
|-
 
|-
 
|>LearnNew={enabled,junkmail,disabled}
 
|>LearnNew={enabled,junkmail,disabled}
Line 125: Line 122:  
|-
 
|-
 
|>cron={none,hourly,daily,weekly,monthly}
 
|>cron={none,hourly,daily,weekly,monthly}
|do the search never, hourly, daily, weekly or monthlSpamLinksy. Default is ''daily''.
+
|do the search never, hourly, daily, weekly or monthly. Default is ''daily''.
 +
|-
 +
|>Exclude=user,list,separated,by,coma
 +
|List of users without the right to use Learn. Default is empty ''""'' for disabled.
 +
|-
 +
|>Include=user,list,separated,by,coma
 +
|List of user who has the right to use Learn. Override Exclude list. If not empty, only these users will have access to Learn. Default is empty ''""'' for disabled.
 +
|-
 +
|>Verbose={enabled,disabled, active}
 +
|default is enabled. Active will only report users with activity, disabled will not report.
 
|}
 
|}
   Line 141: Line 147:  
   
 
   
 
  expand-template /etc/cron.d/Learn
 
  expand-template /etc/cron.d/Learn
 +
 
=== Setup Bayesian Autolearning ===
 
=== Setup Bayesian Autolearning ===
 
You'll also have to setup [[Email#Bayesian_Autolearning | Bayesian Autolearning]] as described in the [[Email]] page.
 
You'll also have to setup [[Email#Bayesian_Autolearning | Bayesian Autolearning]] as described in the [[Email]] page.
Line 149: Line 156:  
=== Example of configuration ===
 
=== Example of configuration ===
   −
I like to have my learning folder as subdir of junkmail folder. My thunderbird clients are set to use junkmail folder to put what they find to be a SPAM, but my iOS client wants to use junk and I do not want to check myself multiple folders. My SME is set to to delete the content of junkmail after 30 days (config getprop spamassassin MessageRetentionTime), but I want that the content of junkmail folder is used to learn before deletion (15 days) leaving me time to find false positives to move them to jumkmail.not_a_spam or moving them myself to jumkmail.junkmail.learn. I keep Uniq enabled to have the IMAP folder created automatically even if users deleted them again and again. I do not want that junkmails that never were downloaded by any client be used to learn, so I keep LearnNew as disabled.
+
I like to have my learning folder as subdir of junkmail folder. My thunderbird clients are set to use junkmail folder to put what they find to be a SPAM, but my iOS client wants to use Junk and I do not want to check myself multiple folders. My SME is set to to delete the content of junkmail after 30 days (config getprop spamassassin MessageRetentionTime), but I want that the content of junkmail folder is used to learn before deletion (15 days) leaving me time to find false positives to move them to jumkmail.not_a_spam or moving them myself to jumkmail.junkmail.learn. I keep Uniq enabled to have the IMAP folder created automatically even if users deleted them again and again. I do not want that junkmails that never were downloaded by any client be used to learn, so I keep LearnNew as disabled.
  config setprop LearnAsSpam status enabled DeleteAfterLearn enabled DelayToMove 15 SpamLinks junks  dir jumkmail.junkmail.learn Uniq enabled
+
  config setprop LearnAsSpam status enabled DeleteAfterLearn enabled DelayToMove 15 SpamLinks Junk dir junkmail.junkmail_learn Uniq enabled
    
I want to be able to remove badly SPAM tag when moved to  jumkmail.not_a_spam and have them back in my inbox without any new tag.
 
I want to be able to remove badly SPAM tag when moved to  jumkmail.not_a_spam and have them back in my inbox without any new tag.
  config setprop LearnAsHam status enabled dir jumkmail.not_a_spam tag "" RemoveSPAMTag enabled Uniq enabled
+
  config setprop LearnAsHam status enabled dir junkmail.not_a_spam tag "" RemoveSPAMTag enabled Uniq enabled
    
Finally, I want my SME to learn every hours
 
Finally, I want my SME to learn every hours
  config setprop cron hourly
+
  config setprop Learn cron hourly
 
  signal-event email-update
 
  signal-event email-update
   Line 167: Line 174:  
and select the smeserver-learn component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-learn|title=this link}}.
 
and select the smeserver-learn component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-learn|title=this link}}.
 
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |component=smeserver-learn|noresultsmessage="No open bugs found."}}
 
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |component=smeserver-learn|noresultsmessage="No open bugs found."}}
 +
 +
 +
===Changelog===
 +
Only released version in smecontrib are listed here.
 +
 +
{{ #smechangelog: smeserver-learn}}
 +
 
<noinclude>[[Category: Contrib]]</noinclude>
 
<noinclude>[[Category: Contrib]]</noinclude>
 
<noinclude>[[Category: Mail]]</noinclude>
 
<noinclude>[[Category: Mail]]</noinclude>
 
<noinclude>[[Category: Administration:Content Spam Virus Blocking]]</noinclude>
 
<noinclude>[[Category: Administration:Content Spam Virus Blocking]]</noinclude>
3,054

edits

Navigation menu