Changes

Jump to navigation Jump to search
1,228 bytes removed ,  10:56, 10 June 2023
m
Line 385: Line 385:  
To install:
 
To install:
   −
<ol>
+
* Enable bayes database as described in [[Email#Bayesian_Autolearning | Bayesian Autolearning]] (not the best approach, prefer manual learn by user), or
<li>Enable bayes database as described in [[Email#Bayesian_Autolearning | Bayesian Autolearning]]</li>
+
* Install smeserver-learn as per wiki page [[Learn]](and keep auto-learning off), then
<li>Install smeserver-learn as per wiki page [[Learn]]</li>
+
* Instruct your users to move any SPAM they find from their Inbox to their LearnAsSpam folder, and to COPY any non-spam (ham) they find in their junkmail folder into their LearnAsHam folder.
<li>Instruct your users to move any SPAM they find from their Inbox to their LearnAsSpam folder, and to COPY any non-spam (ham) they find in their junkmail folder into their LearnAsHam folder.</li>
  −
</ol>
      
This is a really efficient way to reduce impact of SPAM to your particular installation. Do not fear to run again files that are tagged as SPAM, as they will either get ignored if all their patterns are known, or the Bayes might catch one more pattern that could help you to get ride of the next incoming SPAM to even get accepted.
 
This is a really efficient way to reduce impact of SPAM to your particular installation. Do not fear to run again files that are tagged as SPAM, as they will either get ignored if all their patterns are known, or the Bayes might catch one more pattern that could help you to get ride of the next incoming SPAM to even get accepted.
Line 530: Line 528:  
  config setprop imaps ConcurrencyLimitPerIP 20
 
  config setprop imaps ConcurrencyLimitPerIP 20
 
  signal-event post-upgrade; signal-event reboot
 
  signal-event post-upgrade; signal-event reboot
{{Note box| for sme9, only the key imap has properties ConcurrencyLimitPerIP,checkConcurrencyLimit,ProcessMemoryLimit. If you set these properties to the key imaps, a migrate fragment will remove them automatically}}
+
{{Note box| for sme9, only the key imap has properties ConcurrencyLimitPerIP,checkConcurrencyLimit,ProcessMemoryLimit. If you set these properties to the key imaps, a migrate fragment will remove them automatically.}}
 
To see configuration:
 
To see configuration:
 
  config show imap
 
  config show imap
Line 544: Line 542:  
  tcpsvd: info: deny 30693 0:10.1.0.21 ::10.1.0.104:49332 ./peers/10.1.0
 
  tcpsvd: info: deny 30693 0:10.1.0.21 ::10.1.0.104:49332 ./peers/10.1.0
 
}}
 
}}
{{Tip box|Mobile devices have a tendency to frequently disconnect and connect from the network. When this disconnect happens, the sessions on the server are not always immediately cleaned up (they get cleaned up after a time out of some minutes). When the email client reconnects, they create new network connections and you get into the situation that these new connections get denied because of the concurrency limit. On the mobile device this may be noted as a "Unable to connect to server" message.
+
{{Tip box|Mobile devices have a tendency to frequently disconnect and connect from the network. When this disconnect happens, the sessions on the server are not always immediately cleaned up (they get cleaned up after a time out of some minutes). When the email client reconnects, they create new network connections and you get into the situation that these new connections get denied because of the concurrency limit. On the mobile device this may be noted as a "Unable to connect to server" message.}}
}}
+
{{Tip box|Some email clients use a separate connection per imap folder, so the concurrency limits may occur for users that have many imap folders.}}
{{Tip box|Some email clients use a separate connection per imap folder, so the concurrency limits may occur for users that have many imap folders.
  −
}}
      
===Mail server is not an IMAP4 mail server===
 
===Mail server is not an IMAP4 mail server===
This is a bug in Thunderbird, the previous tips may help
+
This is a bug in Thunderbird, the previous tips may help.
    
===The Bat===
 
===The Bat===
Line 921: Line 917:  
===How do I find out who is logged into webmail and what IP number.===
 
===How do I find out who is logged into webmail and what IP number.===
 
This is logged is in /var/log/messages.
 
This is logged is in /var/log/messages.
  −
===How do I enable smtp authentication for users on the internal network===
  −
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local
  −
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local
  −
cp /etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/05auth_cvm_unix_local .
  −
signal-event email-update
  −
(note the "." at the end of the 3rd line)<br>
  −
Authentication for the local network will now follow the setting of config::qpsmtpd::Authentication
  −
  −
ie do
  −
config setprop qpsmtpd Authentication enabled
  −
signal-event email-update
  −
  −
===How do I disable SMTP relay for unauthenticated LAN clients===
  −
http://forums.contribs.org/index.php?topic=38797.msg176490#msg176490
  −
  −
*Enable smtp authentication as shown above
  −
*Disable un-authenticated smtp relay for the local network(s)using:
  −
  −
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients
  −
echo "# SMTP Relay from local network denied by custom template" >\
  −
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/80relayFromLocalNetwork
  −
signal-event email-update
  −
  −
*Configure your email clients to use smtps with authentication:<br>
  −
  −
- change outgoing smtp port to 465 and select SSL<br>
  −
- enable Authentication against the outgoing mail server
      
===Allow SMTP relay of mail without encryption/authentication===
 
===Allow SMTP relay of mail without encryption/authentication===
Line 1,194: Line 1,162:     
  db accounts setprop username EveryoneEmail no
 
  db accounts setprop username EveryoneEmail no
  signal-event user-modify
+
  signal-event user-modify username
/etc/init.d/qmail restart
       
3,054

edits

Navigation menu