Community Discussions and Support
Simple global rules question

Yes, SpamHalter processes the message before it gets to the rules, so you can create rules to handle messages tagged by SpamHalter the way you prefer. The recommended procedure is to move them to a special mailbox that you can review to make sure there are no false positives.

/Rolf 

<p>Yes, SpamHalter processes the message before it gets to the rules, so you can create rules to handle messages tagged by SpamHalter the way you prefer. The recommended procedure is to move them to a special mailbox that you can review to make sure there are no false positives.</p><p>/Rolf </p>

Hi,

I'm getting a lot of spam lately. I then added Spamcop, Spamhaus and DSBL in "Spam control" tab of the Mercury SMTP Server settings page.

That get rid of about 60% of the spam I was getting, which is good.

As for the spam that did get through, I noticed that they all contain some text in the subject field that should be very easy to detect.

I then added a Rule in the "Edit global rules..." page. This rule is an "Expression" and is *pharma*. The action is "Delete message".

I then send myself a mail (from work), with "This is a pharma thing" as the subject.

Why did I receive the mail and that it was not deleted ? Am I forgetting something ?

Best regards,

homerggg
 

<p>Hi,</p><p>I'm getting a lot of spam lately. I then added Spamcop, Spamhaus and DSBL in "Spam control" tab of the Mercury SMTP Server settings page.</p><p>That get rid of about 60% of the spam I was getting, which is good.</p><p>As for the spam that did get through, I noticed that they all contain some text in the subject field that should be very easy to detect.</p><p>I then added a Rule in the "Edit global rules..." page. This rule is an "Expression" and is *pharma*. The action is "Delete message". </p><p>I then send myself a mail (from work), with "This is a pharma thing" as the subject.</p><p>Why did I receive the mail and that it was not deleted ? Am I forgetting something ?</p><p>Best regards,</p><p>homerggg  </p>

Maybe. From what you have said, it should work, but in what you haven't said will be where the problem lies [:)]

The rule you have created by using the interface is in the 'rules.mer' file in your Mercury directory.

Posting the that file would help. 

 

This approach to spam killing is extremely labour intensive and gives pretty poor results.

I would highly recommend adding the Spamhalter daemon to your Mercury setup as it is very effective at stopping spam and virtually maintenance free once trained.

 

<p>Maybe. From what you have said, it should work, but in what you haven't said will be where the problem lies [:)] </p><p>The rule you have created by using the interface is in the 'rules.mer' file in your Mercury directory.</p><p>Posting the that file would help. </p><p> </p><p>This approach to spam killing is extremely labour intensive and gives pretty poor results.</p><p>I would <b>highly</b> recommend adding the Spamhalter daemon to your Mercury setup as it is very effective at stopping spam and virtually maintenance free once trained.</p><p> </p>

Thanks for the reply.

 I'm using Spamhalter as well and it's doing a very good job. But I can only get it to add [spam] to the mail subject. What I would really want is to delete the mail.

1. Is it possible to do that with Spamhalter ?

2. Here's my "rules.mer"

Mercury Global Rules
If expression headers matches "*Pharma*" Delete ""

Best regards,
 

<p>Thanks for the reply.</p><p> I'm using Spamhalter as well and it's doing a very good job. But I can only get it to add [spam] to the mail subject. What I would really want is to delete the mail.</p><p>1. Is it possible to do that with Spamhalter ?</p><p>2. Here's my "rules.mer"</p><p>Mercury Global Rules If expression headers matches "*Pharma*" Delete "" </p><p>Best regards,  </p>

[quote user="homerggg"]

 I'm using Spamhalter as well and it's doing a very good job. But I can only get it to add [spam] to the mail subject. What I would really want is to delete the mail.

1. Is it possible to do that with Spamhalter ?

[/quote]
Dunno, but you can add this to rules.mer:

If header "S" contains "[spam]" Delete ""

Just keep in mind that SpamHalter might misclassify mail and if you delete it it's gone...

[quote user="homerggg"]
2. Here's my "rules.mer"

Mercury Global Rules
If expression headers matches "*Pharma*" Delete ""

[/quote]
Doesn't look wrong to me although I'd use:

If expression headers matches "Subject: *pharma*" Delete ""

You could also try smth like:

If header "S" contains "pharma" Delete ""

if that works better.

Best regards,

Nico

[quote user="homerggg"]<P> I'm using Spamhalter as well and it's doing a very good job. But I can only get it to add [spam] to the mail subject. What I would really want is to delete the mail.</P><P>1. Is it possible to do that with Spamhalter ?</P><P>[/quote] Dunno, but you can add this to rules.mer: If header "S" contains "[spam]" Delete "" Just keep in mind that SpamHalter might misclassify mail and if you delete it it's gone... [quote user="homerggg"] 2. Here's my "rules.mer"</P><P>Mercury Global Rules If expression headers matches "*Pharma*" Delete "" </P>[/quote] Doesn't look wrong to me although I'd use: If expression headers matches "Subject: *pharma*" Delete "" You could also try smth like: If header "S" contains "pharma" Delete "" if that works better. Best regards, Nico

I'm gonna try that as soon as possible.

I was wondering if Spamhalter tag spam before the rules will apply. I did read something about the "flow" sequence of a mail, but can't find where Spamhalter stand in that flow.

Best regards,

<P>I'm gonna try that as soon as possible.</P> <P>I was wondering if Spamhalter tag spam before the rules will apply. I did read something about the "flow" sequence of a mail, but can't find where Spamhalter stand in that flow.</P> <P>Best regards,</P>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft