Moving messages to Junk AFTER SpamAssassin filtering

Discussion, support and announcements for third party applications that work with MailEnable.
Post Reply
pinkblues
Posts: 7
Joined: Wed Jun 23, 2010 6:47 pm

Moving messages to Junk AFTER SpamAssassin filtering

Post by pinkblues »

Hello there

This is my first post. I just configured MailEnable Enterprise to use SpamAssassin to catch the spam. I noticed that the message is delivered to user's INBOX and only after delivery, SpamAssassin filter the message, for example by adding a prefix in the subject string. I can't find a way to move a message to a Junk folder after SpamAssassin elaboration of message. The message still remains in INBOX
Is there anyone who can kindly help me?
Thanks in advance

--
Max

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by MailEnable-Ian »

Hi,

Please review the following article: http://www.mailenable.com/kb/Content/Ar ... D=me020462
Regards,

Ian Margarone
MailEnable Support

pinkblues
Posts: 7
Joined: Wed Jun 23, 2010 6:47 pm

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by pinkblues »

Hello Ian

Thanks for your prompt reply.
I think I already did that configuration in the past and the problem was that the message was correctly marked as spam but NOT moved to junk.
Is there any possible cause for this behaviour?
Thanks in advance

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by MailEnable-Ian »

Hi,

Is the filter you have created a global filter or a mailbox level filter to catch the Spam assassin header? If the spam assassin application is marking the headers before the message is delivered to the mailbox via a mailbox delivery event then the global filter (MTA level) that you have created to catch the message header will not work because the filter would have already executed.
Regards,

Ian Margarone
MailEnable Support

pinkblues
Posts: 7
Joined: Wed Jun 23, 2010 6:47 pm

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by pinkblues »

Hello Ian

Well, actually our configuration is a bit more complex and probably this is leading to the reported issue.
I’ll try to explain, I really hope you can help us because I’m quite desperate :(

First of all: we are using Parallels Plesk 8.6 with Mail Enable Enterprise Edition. I don’t think Plesk is an issue because everything we configure on plesk reflects on Mail Enable console configuration.

1. On Plesk’s console, we configured Global Antispam (by using SpamAssassin; SpamAssasins is provided by Plesk) and allow local mailbox antispam.
This configuration reflects on Mail Enable with the following
Servers / LocalHost / Agents / MTA Properties / Enable Pickup Event : FLAGGED -> D:\Program Files (x86)\Parallels\Plesk\admin\bin\memailfilter.exe
Process Pickup After Filters Insead of Before NOT-FLAGGED

Image

This configuration also reflects on
Mailenable Management / Messaging Manager / Post Offices / <MyDomain.com> / Mailboxes / <mymailbox> Properties / Actions TAB
Enable delivery event FLAGGED -> d:\Program Files (x86)\Parallels\Plesk\admin\bin\memailfilter_usr.exe

Image

This means that as GLOBAL configuration of SpamAssassin is operating for every inbound message.
This also means that there is a LocalMailbox Action that enables the Delivery Events for every inbound message with SpamAssassin searches

2. The Mail Enable Antispam is off (we only need to use Spam Assassin for the moment

Image

3. The SpamAssassins is configured as follows. Once “required hits” is beyond a predefined value, spam is detected and in such case perform the following actions

Code: Select all

rewrite_header subject *****[SPAM]*****
add_header all X-ME-Content Deliver-To=Junk
add_header all X-Spam-Flag: YES
4. The Mail Enable has the following 2 Global filters

Filter1. If message is larger than 2 kb then add prefix to subject “Large Message”

Image

Filter2. If message contains “X-Spam-Flag= Yes” then add prefix “SpamFound” and Mark As Spam

Image
Image

5. The filter order is as follows
Filter1 - Enabled
Filter2 - Enabled
[SystemSpamFilter] - Disabled

Image


With this configuration, when a new spam is detected, the message arrives it happens the following:
The message is processed by GlobalFilters, with Filter1 (in fact the Subject is added with “LargeMessage”)
Then is processed by the Filter2 which does not find the “X-Spam=Yes” and do not add “SpamFound”
Then the message is processed by SpamAssassin which recognizes spam and it adds the required header and “****[SPAM]****”.

The resulting message remains in the INBOX and has the following subject.
*****[SPAM]***** LargeMessage: Buy Viagra

So, now my question is :
How do I instruct MailEnable to process FILTERS only AFTER SpamAssassin?
Thank you SO MUCH for your precious cooperation

--
Max

pinkblues
Posts: 7
Joined: Wed Jun 23, 2010 6:47 pm

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by pinkblues »

Hi Ian
Could you please help us?
We are desperate :-)

oviya
Posts: 1
Joined: Mon Aug 16, 2010 12:44 pm

Re: Moving messages to Junk AFTER SpamAssassin filtering

Post by oviya »

Thanks for sharing :lol: :lol: :lol:

Post Reply