Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Blackbox on January 10, 2007, 08:54:32 AM

Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: bpivk 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Re: Spam Filter Configuration. Question from a newbie!
Post by: CharlieBrady 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: dmay 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: CharlieBrady 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).
Title: Spam Filter Configuration. Question from a newbie!
Post by: dmay 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: bpivk 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: CharlieBrady 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: CharlieBrady 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.
Title: Spam Filter Configuration. Question from a newbie!
Post by: Blackbox 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
Title: Spam Filter Configuration. Question from a newbie!
Post by: mmccarn on February 10, 2007, 06:04:22 PM
Is there a way to create a spam quarantine like this if I am using an Internal mail server?
Title: Spam Filter Configuration. Question from a newbie!
Post by: RayG on February 11, 2007, 09:35:23 PM
Quote from: "CharlieBrady"
Mail is only scanned once, on the way into the system. It's not scanned during distribution and delivery.


I have created an account to receive all spams and disabled filtering on it. I have also set up the "qpsmtpd Bcc" to archive all email in and out. I'm receiving a second copy of each spam in the spamboss mailbox which I assume comes from the filtering on the bccuser account. So it seems mail is being scanned more than just on the way in.

I've also created "/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/70spamassassin" to scan email coming in on the lan. Could this be the cause of the second spam copy ?

The second spam copy isn't causing any problems but I would like to understand it on my way toward creating a feature request and suggesting documentation updates in the bug tracker.
Title: Spam Filter Configuration. Question from a newbie!
Post by: peertopeer on March 14, 2007, 03:02:56 PM
Quote from: CharlieBrady
Quote from: "Blackbox"


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



I use the script from Blackbox and CharlieBrady - thx by the way

but there's a little problem - the spam mails for the user junkmail were duplicated:

I use IMAP via Outlook

First the spam messages are only in the Inbox when I click a message to read, the message was marked delete and the same message was in the Junk-E-Mail folder as unread.

Peer
Title: Spam Filter Configuration. Question from a newbie!
Post by: judgej on March 17, 2007, 11:05:18 AM
Quote from: "Blackbox"
I would not like to give my users IMAP and Webmail.


Any reason why not? You can still block IMAP access, if you didn't want that, but give them access to webmail. Webmail is a great way to get at those junkmail mailboxes and to check, send and receive mail when not at your normal mail client. I personally find it invaluable, and would recommend not writing it off so easily.

-- JJ
Title: Spam Filter Configuration. Question from a newbie!
Post by: rwbowers on June 19, 2007, 11:57:41 PM
I have the same questions. I have tried, several times over a few days, to go to the link you specified at sonoracomm.com but it always says it is unavailable.

Is this a known issue?

~Rick