You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by David Flanigan <da...@flanigan.net> on 2006/12/27 20:18:00 UTC

Precleaning SA market spam from Mbox?

Spam Guru’s: 

I have a question that I am hoping one of you may be able to answer. 

We run the latest version of SA running spamc/spamd with a global (not per user) 
config, and tag messages as spam for latter filtering by the mail client, as is 
appropriate. However, now we have some people (me, for one) who will be occasionally 
picking up e-mail via a PDA though pop3 or IMAP. Since the filtering on the PDAs is 
rudimentary or non-existent, client side spam filtering is not really an option.

What I would like to do is uses a simple alias to copy the users e-mail into two 
mailboxes, one that is normal for a real desktop client, and the second which is 
accessed by the PDA device, and is pre-cleaned of spam. Ideally I envisioned this being 
done by a script which goes though and deletes any messages marked as spam. 

Dose anyone have such a script? Or am I going about this all the wrong way? I know this 
is not strictly a SA question, but perhaps I can do something with SA to make this work?

---
Kind Regards,
David

http://www.flanigan.net


Re: Precleaning SA market spam from Mbox?

Posted by maillist <ma...@emailacs.com>.
JamesDR wrote:
> David Flanigan wrote:
>> James,
>> Thanks for the reply. I was not planing on double scanning, the BCC 
>> idea is basically the same, though I would be doing it vial the 
>> /etc/aliases mapping to make it transparent. I am running Sendmail as 
>> the MTA.
>> The real question is how do to the spam check, either during or after 
>> the messages hit the PDA mailbox. That is where the script or other 
>> appropriate tool would come in. Advice on such a tool would be 
>> appreciated. 
Can you not use sendmail's milter for this?

-=Aubrey=-

Re: Precleaning SA market spam from Mbox?

Posted by JamesDR <ja...@trusswood.net>.
David Flanigan wrote:
> James, 
> 
> Thanks for the reply. I was not planing on double scanning, the BCC idea is basically 
> the same, though I would be doing it vial the /etc/aliases mapping to make it 
> transparent. I am running Sendmail as the MTA. 
> 
> The real question is how do to the spam check, either during or after the messages hit 
> the PDA mailbox. That is where the script or other appropriate tool would come in. 
> Advice on such a tool would be appreciated. 

I've never personally used sendmail, so I can't be of much assistance. I 
would check with the guys on the sendmail list to see if this is doable. 
Another such idea is to go through the directory for the mail box and 
delete (rm) any mails which have X-Spam-Staus: Yes (or however you do 
your headers) This can be done with a shell script. Tho, this has the 
problem of being fired at intervals opposed to when the MTA delivers the 
mail.

-- 
Thanks,
James


Re: Precleaning SA market spam from Mbox?

Posted by David Flanigan <da...@flanigan.net>.
James, 

Thanks for the reply. I was not planing on double scanning, the BCC idea is basically 
the same, though I would be doing it vial the /etc/aliases mapping to make it 
transparent. I am running Sendmail as the MTA. 

The real question is how do to the spam check, either during or after the messages hit 
the PDA mailbox. That is where the script or other appropriate tool would come in. 
Advice on such a tool would be appreciated. 

---
Kind Regards,
David

http://www.flanigan.net

---------- Original Message -----------
From: JamesDR <ja...@trusswood.net>
To: users@spamassassin.apache.org
Sent: Wed, 27 Dec 2006 16:13:43 -0500
Subject: Re: Precleaning SA market spam from Mbox?

> David Flanigan wrote:
> > Spam [WINDOWS-1252?]Guru&#65533;s: 
> > 
> > I have a question that I am hoping one of you may be able to answer. 
> > 
> > We run the latest version of SA running spamc/spamd with a global (not per user) 
> > config, and tag messages as spam for latter filtering by the mail client, as is 
> > appropriate. However, now we have some people (me, for one) who will be 
occasionally 
> > picking up e-mail via a PDA though pop3 or IMAP. Since the filtering on the PDAs is 
> > rudimentary or non-existent, client side spam filtering is not really an option.
> > 
> > What I would like to do is uses a simple alias to copy the users e-mail into two 
> > mailboxes, one that is normal for a real desktop client, and the second which is 
> > accessed by the PDA device, and is pre-cleaned of spam. Ideally I envisioned this 
being 
> > done by a script which goes though and deletes any messages marked as spam. 
> > 
> > Dose anyone have such a script? Or am I going about this all the wrong way? I know 
this 
> > is not strictly a SA question, but perhaps I can do something with SA to make this 
work?
> 
> Since SA has already done the work, there is no reason to back feed. You 
> didn't mention your MTA, but I'm going to make a general stab at what 
> you want to do...
> 
> I would setup two mail boxes. One that gets all mail yourname@domain.dom 
> and one that is for your pda only, yourname.mob@domain.dom. Then in your 
> MTA _only_ BCC a message to yourname.mob@domain.dom if the X-Spam-Status 
> (or whatever header you use) is No or below a certain level. I would get 
> with my MTA's mailing list to see if this is possible (by either a 
> script or other such means.) If it is, they would be best to help you, 
> if not, you may want to seek recommendations for an MTA that can do this.
> 
> Double scanning with SA will just waste resources.
> -- 
> Thanks,
> James
------- End of Original Message -------


Re: Precleaning SA market spam from Mbox?

Posted by JamesDR <ja...@trusswood.net>.
David Flanigan wrote:
> Spam Guru’s: 
> 
> I have a question that I am hoping one of you may be able to answer. 
> 
> We run the latest version of SA running spamc/spamd with a global (not per user) 
> config, and tag messages as spam for latter filtering by the mail client, as is 
> appropriate. However, now we have some people (me, for one) who will be occasionally 
> picking up e-mail via a PDA though pop3 or IMAP. Since the filtering on the PDAs is 
> rudimentary or non-existent, client side spam filtering is not really an option.
> 
> What I would like to do is uses a simple alias to copy the users e-mail into two 
> mailboxes, one that is normal for a real desktop client, and the second which is 
> accessed by the PDA device, and is pre-cleaned of spam. Ideally I envisioned this being 
> done by a script which goes though and deletes any messages marked as spam. 
> 
> Dose anyone have such a script? Or am I going about this all the wrong way? I know this 
> is not strictly a SA question, but perhaps I can do something with SA to make this work?

Since SA has already done the work, there is no reason to back feed. You 
didn't mention your MTA, but I'm going to make a general stab at what 
you want to do...

I would setup two mail boxes. One that gets all mail yourname@domain.dom 
and one that is for your pda only, yourname.mob@domain.dom. Then in your 
MTA _only_ BCC a message to yourname.mob@domain.dom if the X-Spam-Status 
(or whatever header you use) is No or below a certain level. I would get 
with my MTA's mailing list to see if this is possible (by either a 
script or other such means.) If it is, they would be best to help you, 
if not, you may want to seek recommendations for an MTA that can do this.

Double scanning with SA will just waste resources.
-- 
Thanks,
James