> From: Peter Campion-Bye <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 6/18/2003 11:34:50 AM
> Subject: Re: [SAtalk] Is there a way to filter mail that's forwarded?
>
> >     Hi all.  Trying to use my home mail server to filter my dad's mail for
> > spam.  What I'm doing is I'm pulling it in off of his netzero account
(oh
> > yeah, spam heaven) and it's supposed to be filtered as it goes through
my
> > server and off to the dumping account I have setup for delivering all
mail
> > after it's been filtered.  Only problem is, it's not being filtered. 
It's
> > being pulled in with fetchmail, handed off to sendmail, and immediately
> > forwarded off to the dumpng account with no filtering being applied at
> > all.
> >
> >     Does anyone know a creative way around this?  I want it to filter the
> > mail
> > on my end before it's fowarded off to his dumping account so as to block
> > all viruses and spam coming into his account.  Any help is Much
> > appreciated.
>
> I achieve this using procmail, you would need to set up a .procmailrc file
> in his home directory with a recipe to filter his mail through
> spamassassin before delivering it.
> HTH


i do something similar to what you're trying, namely, fetchmail off of
several accounts, and then spamassassinate it before delivering it to my
final clean mailbox.

so, it's   fetchmail --> procmail --> mbox

I don't let fetchmail deliver via smtp to the localhost, i use procmail
directly as the mail delivery agent.

here's my recipe:
in my fetchmailrc after everything else, i have this line:
    mda 'formail -s /usr/bin/procmail -m /home/me/.procmailrc'
...this splits the input into individual messages, and runs them through my
procmail ruleset.

then, in my .procmailrc i have:
   :0fw
   | /usr/local/bin/spamc -t45 -s 90000  

(these options might differ for you... if you're not using spamd/spamc ,
you could just pipe directly to /usr/local/bin/spamassassin )
later on in my .procmailrc, i have:

   :0 ^X-Spam-Status: Yes
   /home/me/mail/spam

   :0
   * ^From:
      {
         :0 c
         ! [EMAIL PROTECTED]

         :0
         /home/me/mail/local-copy-of-cleanmailbox
       }

so, procmail runs it through spamassassin, then puts spam in the spambox,
forwards a copy of what's left to the pop-mailbox that i check for real,
and keeps a copy in my local mbox.

hope this helps...

ryan



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to