This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
internet:hosting:virtualmin_spam_troubleshoot [2016/02/05 08:36] gcooper created |
internet:hosting:virtualmin_spam_troubleshoot [2016/02/10 09:36] (current) gcooper |
||
---|---|---|---|
Line 2: | Line 2: | ||
https:// | https:// | ||
+ | |||
+ | :!: Replace the < | ||
+ | |||
+ | :!: All dashes, spaces and punctuation are important. | ||
+ | |||
+ | ===== Check for Needed Perl Modules ===== | ||
+ | |||
+ | < | ||
+ | spamassassin -D --lint 2>&1 | grep -i failed | ||
+ | </ | ||
+ | |||
+ | ===== Permissions ===== | ||
+ | |||
+ | :!: Provisional - Be careful with this - Example is for Ubuntu 14.04 | ||
+ | |||
+ | :!: Use '' | ||
+ | |||
+ | Permissions on '' | ||
+ | |||
+ | < | ||
+ | chown -R debian-spamd.debian-spamd / | ||
+ | find / | ||
+ | find / | ||
+ | chmod 700 / | ||
+ | find / | ||
+ | |||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | ===== Scan a Message ===== | ||
+ | |||
+ | Scan a message using the '' | ||
+ | |||
+ | < | ||
+ | spamc -u < | ||
+ | </ | ||
+ | |||
+ | Scan a message as root: | ||
+ | |||
+ | < | ||
+ | spamassassin -D -t -p / | ||
+ | </ | ||
+ | |||
+ | Scan a message as a user: | ||
+ | |||
+ | < | ||
+ | su -s /bin/sh -c " | ||
+ | </ | ||
+ | |||
+ | ===== Bayesian Filter ===== | ||
+ | |||
+ | Train the Bayesian filter as a user: | ||
+ | |||
+ | < | ||
+ | su -s /bin/sh -c " | ||
+ | </ | ||
+ | |||
+ | ===== Rules Updates ===== | ||
+ | |||
+ | Update rules (taken from ''/ | ||
+ | |||
+ | < | ||
+ | su - debian-spamd -c " | ||
+ | # Result codes: 0=got updates, 1=no updates, 2=lint failed | ||
+ | echo $? | ||
+ | su - debian-spamd -c " | ||
+ | </ | ||
+ |