-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks all, I have it working in a desireable fashion now.

I am once again using fetchmail + postfix and, now, spamassassin to deal with 
my incoming mail.  Procmail is properly directing a subset of my mail to my 
mailbox directly and passing the rest through spamassassin - and a 30+ second 
delay for spamassassin processing isn't a problem.  Procmail is also 
/dev/nulling all emails identified as spam so I never have to see any of it.  
Nice.

A new question now.  Fetchmail gave me a bit of a fit at first.  I ran 
fetchmailconf as user and then ran fetchmail as user and this was fine, 
except I'd rather not have to start fetchmail myself every time I start my 
laptop up - I'd rather have it run as a daemon.  I DID get the fetchmail 
daemon working eventually, but only after manually editing /etc/fetchmailrc.  
As root or user, all running fetchmailconf would do is create a 
~/.fetchmailrc file while daemon mode requires /etc/fetchmailrc.  I tried 
doing it from webmin as well to no avail.  In the end, I copied my 
~/.fetchmailrc file to /etc/fetchmailrc so that I could run the fetchmail 
daemon.  How does one normally setup the daemon instead of running personal 
instances of fetchmail, that is, how is /etc/fetchmailrc normally created?  I 
am assuming that I should not have to do what I did above and copy my 
personal .fetchmailrc to /etc/fetchmailrc.

praedor


On Monday 06 October 2003 05:04 pm, Nigel Wilkinson wrote:
> On Mon, 6 Oct 2003 15:46:43 -0500
>
> Praedor Atrebates <[EMAIL PROTECTED]> wrote:
> > Here's a synopsis of the first working procmail recipe:
> > :0f
> >
> > * [EMAIL PROTECTED]
> > * [EMAIL PROTECTED]
> > * !<someone>@att.net
> > * [EMAIL PROTECTED]
> > * !<someone>@purdue.edu
> > * !<someone>@yahoo.com
> > * !<someone>@msn.net
> > * !<someone>@yahoo.com
> >
> > | spamc -f
> >
> > This works.  Mails from the expert list or from any of the particular
> > emails listed do not get processed by spamassassin.
>
> I'm not an expert but what I think is happening is anything not listed
> in the email addresses is being piped into spamc, which is what you
> want, but as soon as procmail has performed an operation on a mail it
> does not process any recipes that follow on that mail. I would suggest
> putting your working part in /etc/procmailrc (or wherever your global
> file is) and the second recipe in a personal .procmailrc in your home
> directory that gets processed by a second invokation of procmail. Also I
> would suggest changeing it to
>
> :0:
>
> * [EMAIL PROTECTED]
> * [EMAIL PROTECTED]
> * !<someone>@att.net
> * [EMAIL PROTECTED]
> * !<someone>@purdue.edu
> * !<someone>@yahoo.com
> * !<someone>@msn.net
> * !<someone>@yahoo.com
> * <256000
>
> | spamc -f
>
> This will mean that any message that doesn't match the email addresses
> and is smaller than 250 kb will be piped into spamc. According to the
> documentation most spam isn't bigger than a few k and working with big
> messages can bring SpamAssassin to its knees.
>
> The change in the first line adds a lock to prevent the message being
> mangled
>
> > The second recipe
> >
> > is:
> > :0fH:
> >
> >  * ^X-Spam-Status: Yes
> >
> > | /dev/null
>
> Spam will be marked so if you put your second recipe in .procmailrc in
> your home directory it will filter out the spam. A few pointers about
> the second recipe, try
>
> :0
>
> * ^X-Spam-Status:.*Yes
> /dev/null
>
> You don't want the f or the | because you are not piping it to a
> programme and you don't want the second : because you don't want a lock
> on it (I don't remember why but all the FAQ's say this).
>
> I would also suggest that in the .procmailrc in your home directory you
> put the following (adapted for your setup) at the beginning of the file
> so procmail knows where to send messages that match nothing but MAKE
> SURE the destination exists
>
> MAILDIR=$HOME/Mail    #
> DEFAULT=$MAILDIR/mbox # You had better make sure it exists
>
> Also make sure that .procmailrc in ~/ is not world or group writable.
>
> Like I said, I'm not a guru so please don't risk loosing valuable
> emails.
>
> Good Luck
> Nigel

- -- 
"What influence in fact have Christian ecclesiastical establishments had on 
civil society? In no instance have they been seen as the guardians of the 
liberties of the people. Rulers who wished to subvert the public liberty have 
found in the clergy convenient auxiliaries. A just government, instituted to 
secure and perpetuate liberty, does not need the clergy."
- --James Madison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/hDu8aKr9sJYeTxgRAvw7AKCHjUfKw2hbH3TdzwxKCGAAoeUSAQCgn4OO
VdJd+RvGS6SFFc2QEzprb7Y=
=iQov
-----END PGP SIGNATURE-----

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to