Chapter 8. FAQ

451 mail server temporarily rejected message (#4.3.0)

This is very generic error message. There may be 2 main reason: 1. Binaries or qmail-queue link is not exist in /var/qmail/bin/ directory. 2. qsheff doesn't work properly.

qmail-inject: fatal: qq trouble in home directory (#4.3.0)

This happens mostly when the qmail-queue.orig or qmail-qsheff has wrong permissions. Check it:

# ls -l /var/qmail/bin
-r-s--x--x 1 root qmail 32920 Jul 4 13:43 qmail-qsheff
lrwxr-xr-x 1 root qmail 27 Jul 4 13:43 qmail-queue -> /var/qmail/bin/qmail-qsheff
-r-s--x--x 1 qmailq qmail 15332 Jun 29 01:43 qmail-queue.orig

Is it possible to use Spamassassin?

Yes sure. Here is document written by Omer Faruk Sen.

http://www.enderunix.org/qsheff/docs/spamass-qsheff.en.html

What are the log means?

QUEUE: Succeed/safe email.
FILTER: Custom filter program caught a spam pattern.
HEADER: Mail header is empty.
WBLIST: White/black list module caught a spam pattern.
SPAM: Spam found in header or body.
ATTACH: Caught prohibited attach file.
VIRUS: Antivirus software found a virus.
ERR: Internal error.

How can I use regular expressions?

You need some googling ;) or http://www.enderunix.org/qsheff/docs/regular.expressions.txt. You can test your rules by using echo and grep couples.

# echo containsxab | grep [xy]ab
containsxab
# echo $?
0 (found)
# echo containsxab | grep [y]ab
# echo $?
1 (not found)