formail -s <command> splits standard-input into valid messages and
executes <command> on each.

procmail -m <conf-file> runs procmail for a nonstandard conf file.

So for your procmailrc in the nonstandard location of
/etc/.procmailrc, you'd want:

cat bigfileofspamandham | formail -s 'procmail -m /etc/.procmailrc'

-Daniel


On Wed, 3 Nov 2004 21:29:02 -0800, Ranga Nathan <[EMAIL PROTECTED]> wrote:
> I want to filter my mail from sendmail through SpamAssassin but redirect
> to my cox.net address.
> 
> Using Sendmail, I used to  redirect all my mail to my cox.net address.
> Needless to say 99% is spam! Since I stopped redirecting, I have some 28MB
> worth of mail sitting somewhere, waiting to be delivered. I want that 28MB
> mail to be filtered and forwarded to my cox.net address.
> 
> I understand that SpamAssassin requires filtering via procmail. So I set
> up /etc/.procmailrc to say:
> DROPPRIVS=yes
> :0fw
> * < 256000
> | /usr/bin/spamc
> 
> and then brought up the /usr/bin/spamc daemon.
> 
> What do I have to tell Sendmail to filter this 28MB of mail through
> procmail, and then forward only non-SPAM mail to my cox.net address?
> 
> No matter what I do, I have to filter the existing 28MB of mail before
> doing anything else.
> 
> Can someone help this idiot?
> 
> Thanks
> 
> __________________________________________
> Ranga Nathan / CSG
> Systems Programmer - Specialist; Technical Services;
> BAX Global Inc. Irvine-California
> Tel: 714-442-7591   Fax: 714-442-2840
> 
> _______________________________________________
> Boston-pm mailing list
> [EMAIL PROTECTED]
> http://mail.pm.org/mailman/listinfo/boston-pm
>
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to