Archive | Imprint | Privacy
10th October 2008
Nerd 2.0

Webmail and spam

Spam filters are necessary

As it is now necessary for almost any email address to a spam filter einzusetzten, many vendors of email clients have done so already.

But what is with webmail clients, such as used by me phlyMail ?

Problems with Spam Assassin and Confixx

Now this is a practical example in PHP Webmail client already installed an option to filter spam using external tool. By default this is by Spamassassin

  spamassassin <$ 1> $ 2 

called, but when retrieve results received by mail to a barrage of error messages, because Confixx web servers by default on the $ HOME directory is not writable. These settings are for simple web hosting in most cases determined by the host and thus not be changed. So, somehow had found another way to forth.

  spamassassin-p / var/www/web247/files/spam/user_prefs <$ 1> $ 2 

This change means that now the file using spamassassin user_pref itself can be configured. Of course, this must be the host of one of its global config have allowed ...

Personal configuration

# SpamAssassin config file for version 3.x

# How many hits before a message is considered spam.
required_score 5.0

# Encapsulate spam in an attachment (0 = no, 1 = yes, 2 = safe)
report_safe 1

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam -0001
bayes_auto_learn_threshold_spam 9.0
bayes_auto_expire 0
bayes_path / var/www/web247/files/spam/bayes
bayes_file_mode 777

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 0

# Autowhitelist
use_auto_whitelist 1
auto_whitelist_path / var/www/web247/files/spam/auto-whitelist
auto_whitelist_file_mode 777

Be created in addition to this step a file auto-whitelist in the specified path. With the "bayes_path" only a prefix is ​​specified, which in this case either on a file may still point to a directory.

Many ways to spam

A much easier way would certainly teach his Spamassassin. Lock files in the home directory of a user to create, but I will unfortunately have not found a way. After all the work so far to 95% spam detection, for which I can take the individual errors in purchasing.

Error List

So also this other record, I once listed my fault.

bayes: expire_old_tokens: loose: safe_lock: can not create tmp lockfile / var/www/web247/.spamassassin/bayes.lock.xxx.6365 for / var/www/web247/.spamassassin/bayes.lock: No such file or directory

bayes: locker: safe_lock: can not create tmp lockfile / var/www/web247/.spamassassin/bayes.lock.xxx.6365 for / var/www/web247/.spamassassin/bayes.lock: No such file or directory

bayes: expire_old_tokens: loose: safe_lock: can not create tmp lockfile / var/www/web247/.spamassassin/bayes.lock.xxx.6365 for / var/www/web247/.spamassassin/bayes.lock: No such file or directory

bayes: locker: safe_lock: can not create tmp lockfile / var/www/web247/.spamassassin/bayes.lock.xxx.6365 for / var/www/web247/.spamassassin/bayes.lock: No such file or directory

auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: can not create tmp lockfile / var/www/web247/.spamassassin/auto-whitelist.lock.xxx.32121 for / var/www/web247/.spamassassin / auto-whitelist.lock: No such file or directory

pyzor: check failed: internal error

Can not write to / var/www/web247/.spamassassin/user_prefs: No such file or directory
Failed to create default user preference file / var/www/web247/.spamassassin/user_prefs

Many thanks to Hans and many other sites!

Similar posts:
Spam now estethisch?
Reputable providers on spamming?
Fight spam? No way!
Logfile kills the hard drive
... Sad record.

Comment on