Koozali.org: home of the SME Server

Spam Filter Configuration. Question from a newbie!

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« on: January 10, 2007, 08:54:32 AM »
Hi everyone,
Excuse my ignorance but I am new to this fantastic piece of software.  :oops:

I managed to install and configure SME server 7.1

It's great. My secure SMTP and POP3 are working like a charm.

However, I cannot understand how Spam Filtering works. I can see the config tab for Spam Filtering with levels but (as I said, I an new to this subject) I cannot understand a thing.

1. How can I check that spam email is blocked?
2. As I only use SMTP and POP3, were does spam email go when it is blocked?
3. Can I block a particular email address or domain so to be marked automatically as spam?
4. Can I mark a domain or an email address as a friend so it is not blocked?

Thanks in advance for those who will be replying.
Since I experienced an IRQ conflict, my brain never worked the same!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Spam Filter Configuration. Question from a newbie!
« Reply #1 on: January 10, 2007, 09:21:46 AM »
You should try the howto from sonora http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32.

This should do it for you.
"It should just work" if it doesn't report it. Thanks!

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #2 on: January 10, 2007, 11:56:02 AM »
Hi,
Thanks for the reply. I think I understood the concept.

Can I go to a little bit of details?

If I do not enable Webmail and IMAP so that SPAM emails go in special folder, is there a way I can forward all spam emails to a particular mailbox (as quarantine)?

I would not like to give my users IMAP and Webmail.

Thanks in advance
Since I experienced an IRQ conflict, my brain never worked the same!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Spam Filter Configuration. Question from a newbie!
« Reply #3 on: January 10, 2007, 03:57:42 PM »
Quote from: "Blackbox"

However, I cannot understand how Spam Filtering works. I can see the config tab for Spam Filtering with levels but (as I said, I an new to this subject) I cannot understand a thing.


Please read the User Guide thoroughly. If anything is then not clear, then please open a Bug in the Bug Tracker in the documentation section, asking for more information about whatever is not explained.

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Spam Filter Configuration. Question from a newbie!
« Reply #4 on: January 10, 2007, 05:28:55 PM »
Quote from: "Blackbox"
is there a way I can forward all spam emails to a particular mailbox (as quarantine)?

AFAIK, this is not a current feature. However it could be done. Would require a custom template overriding the existing /etc/e-smith/templates-user/.qmail/15sortspam template.

Open a Bug Tracker account and make this a new freature request (NFR)

Darrell

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Spam Filter Configuration. Question from a newbie!
« Reply #5 on: January 10, 2007, 05:43:57 PM »
Quote from: "dmay"
Quote from: "Blackbox"
is there a way I can forward all spam emails to a particular mailbox (as quarantine)?

AFAIK, this is not a current feature. However it could be done. Would require a custom template overriding the existing /etc/e-smith/templates-user/.qmail/15sortspam template.

Open a Bug Tracker account and make this a new freature request (NFR)


If somebody wants to create  a custom template they can, without making a new feature request. That's exactly what custom templates are for. I know that you know this, but I don't think it will be clear to Blackbox.

Blackbox, do:

mkdir -p /etc/e-smith/templates-user-custom/.qmail-junkmail/
echo "&junkmail" > \
/etc/e-smith/templates-user-custom/.qmail-junkmail/10deliver_to_junkmail
signal-event email-update

Now create a user called "junkmail" (or use some other existing username when creating the custom template).

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Spam Filter Configuration. Question from a newbie!
« Reply #6 on: January 10, 2007, 08:56:38 PM »
Correct. I meant to say:

Quote
Open a Bug Tracker account and make this a new freature request (NFR)...for the base so that no custom templates are required  :wink:

Darrell

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #7 on: January 11, 2007, 08:47:26 AM »
First of all,
I want to thank you for your fast response.

To be honest, I went through the online manual step by step but did not find this procedure.

For example:
1. In the Antivirus Panel of SME 7.1, there is an option to quarantine infected files. If I enable this option, in which directory will the infected files be saved for quarantine?

2. Are virus infected emails stopped completely before they are saved in the mailbox or quarantined in a particular mailbox on the server?

I cannot find such information yet.  :cry:

If you can point me to some good documentation links, I would be very grateful.

Thanks in advance
Since I experienced an IRQ conflict, my brain never worked the same!

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #8 on: January 11, 2007, 01:39:42 PM »
Hi again,
With refence to the commands you posted which I have to put in.

I did that. Thanks.

However, one stupid question:

Will Spamassasin keep looping in the Junkmail mailbox as all mailboxes are filtered through the anti-spam daemon?

Do I need to disable the Junkmail mailbox from being filtered? If so, can you please tell me how?

Thanks in advance
Since I experienced an IRQ conflict, my brain never worked the same!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Spam Filter Configuration. Question from a newbie!
« Reply #9 on: January 11, 2007, 01:49:37 PM »
Spamassasin will check learnasspam folder (if you used sonoracom howto) and learn messages that are moved it that folder. Junkmail folder will be for spam and SA won't check it. It won't loop. You can check that folder if you get a message that isn't spam. And you can set when this folder is emptied.
"It should just work" if it doesn't report it. Thanks!

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #10 on: January 11, 2007, 02:17:39 PM »
Hi Pbivk,
I am not using the LearnAsSpam folder. I am not even using for planning to use IMAP.

This is what I did:

1. I enabled Spam Filtering from the Admin page with settings:
  Spam Sensitivity : Custom
  Tagging Level: 4
  Rejection Level: 12
  Sort Spam into Junkmail folder: Enabled
  Modify Subject: Disabled

2. Then I did the following:
   mkdir -p /etc/e-smith/templates-user-custom/.qmail-junkmail/
   echo "&junkmail" > \
   /etc/e-smith/templates-user-custom/.qmail-junkmail/10deliver_to_junkmail
signal-event email-update

3. Created a user called "junkmail"

Is the user Junkmail going to be scanned for spam too? If so, I need to disabled that option on that mailbox. How please?

Thanks
Since I experienced an IRQ conflict, my brain never worked the same!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Spam Filter Configuration. Question from a newbie!
« Reply #11 on: January 11, 2007, 04:27:20 PM »
Quote from: "Blackbox"

Is the user Junkmail going to be scanned for spam too? If so, I need to disabled that option on that mailbox.


Mail is only scanned once, on the way into the system. It's not scanned during distribution and delivery.

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #12 on: January 11, 2007, 04:55:33 PM »
Hi,
First of all, I want to thank everyone who supported me with my query.

You were very helpful. I really am grateful for it.

Just to summarize, is the following configuration correct for my antispam setup:

This is what I did:

1. I enabled Spam Filtering from the Admin page with settings:
Spam Sensitivity : Custom
Tagging Level: 4
Rejection Level: 12
Sort Spam into Junkmail folder: Enabled
Modify Subject: Disabled

2. Then I did the following:
mkdir -p /etc/e-smith/templates-user-custom/.qmail-junkmail/
echo "&junkmail" > \
/etc/e-smith/templates-user-custom/.qmail-junkmail/10deliver_to_junkmail
signal-event email-update

3. Created a user called "junkmail"

In this way, I should have quarantined all spam emails to the junkmail mailbox.

Is that right?

Kindly confirm.

Thanks

P.S: Is it recommened to enable RBLs? If so, can someone point me to right procedure?

Thanks again
Since I experienced an IRQ conflict, my brain never worked the same!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Spam Filter Configuration. Question from a newbie!
« Reply #13 on: January 11, 2007, 05:21:04 PM »
Quote from: "Blackbox"

In this way, I should have quarantined all spam emails to the junkmail mailbox.


The intention is that it should all go to the junkmail folder of the junkmail user. But it won't work as things are now. There will be a mail loop. This will fix the loop:

Instead of &junkmail, put &junkmail-inbox in the custom template. After you create the junkmail user, do:

echo ./Maildir/ > ~junkmail/.qmail-inbox

This will put all spam in the INBOX of the user junkmail.

Offline Blackbox

  • **
  • 47
  • +0/-0
Spam Filter Configuration. Question from a newbie!
« Reply #14 on: January 12, 2007, 07:41:55 AM »
Hi Charles,
Thanks a lot for your help.

Although I never installed such software, I was assuming that there was going to be a mail loop.

It looks like that's it then.....

Thanks everyone for your support.

 :D  :D
Since I experienced an IRQ conflict, my brain never worked the same!