Koozali.org: home of the SME Server

.qmail-junkmail configs

Offline akhilmathema

  • ***
  • 42
  • +0/-0
.qmail-junkmail configs
« on: November 09, 2007, 05:35:02 AM »
Hi,
Some of my clients complained me that some emails their emails were lost. I found those mails were stored in
 "/home/e-smith/files/users/Maildir/.qmail-junkmail/new"
and it was configured thru
"/etc/e-smith/templates-user/.qmail-junkmail/10deliver_to_junkmail"
| [ -d ./Maildir/.junkmail/ ] || /var/qmail/bin/maildirmake ./Maildir/.junkmail/
./Maildir/.junkmail/
that instructs any junkmail to be forwarded to user's .qmail-junkmail folder, rather than going to
"/home/e-smith/files/user/user1/Maildir/cur"
All I want is to redirect all those mails in .junkmail folder into the user's default folder. I've already tried
"signal-event user-modify" by removing "10deliver_to_junkmail" file. Only the thing I get is error messages. Can anyone help me on it?

Regards,
Akhil

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: .qmail-junkmail configs
« Reply #1 on: November 09, 2007, 06:38:54 AM »
Try going into server-manager/e-mail settings/ and change sort spam to junkmail folder to disabled.  This should then deliver all mail even spam to the inbox, or just turn spam filtering off all together.

John
......

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: .qmail-junkmail configs
« Reply #2 on: November 09, 2007, 07:51:37 PM »
To add to what mrjhb3 said - if you deliver all SPAM to the inbox, you can then create local rules for each user that look for [SPAM] in the subject or 'X-Spam-Status: Yes' in the message header, and moves the email into their local 'Junk E-Mail' folder.

Or, if your users are setup using 'IMAP' then they can subscribe directly to the 'junkmail' folder and manage the email directly themselves.

If you use IMAP and combine it with 'LearnAsSpam.pl' and 'LearnAsHam.pl' then your users can 'train' the bayesian filters themselves by telling the system which emails are Spam (that didn't get marked anyway) and which email that *did* get marked is really not spam (ham). (Here's a bug talking about 'LearnAsSpam': http://bugs.contribs.org/show_bug.cgi?id=1701)