From owner-freebsd-questions Fri Apr 12 8:43:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from Gina.esfm.ipn.mx (Gina.esfm.ipn.mx [148.204.102.61]) by hub.freebsd.org (Postfix) with ESMTP id 08E1537B404 for ; Fri, 12 Apr 2002 08:43:20 -0700 (PDT) Received: from localhost (mrspock@localhost) by Gina.esfm.ipn.mx (8.11.6/8.11.6) with ESMTP id g3CFggm01309; Fri, 12 Apr 2002 10:42:52 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Date: Fri, 12 Apr 2002 10:42:42 -0500 (CDT) From: Eduardo Viruena Silva To: Warren Block Cc: Subject: Re: spam In-Reply-To: Message-ID: <20020412103741.V1028-100000@Gina.esfm.ipn.mx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 11 Apr 2002, Warren Block wrote: > On Thu, 11 Apr 2002, Eduardo Viruena Silva wrote: > > > I have notice that all the spam I receive is always sent to > > someone else but me. > > > > Is there a way of filter all the mail that is not destined to me? > > Install procmail and add this recipe to your .procmailrc file. It will > redirect mail not addressed to you to a spam folder. (This does not > catch a lot of spam for me any more; most spams that make it past my > sendmail access.db are addressed to me.) I didn't create this, just > snarfed it off Usenet quite a while back: > > # Mail not addressed to me. > :0 > * $!^((Resent-|Apparently-)?(To|Cc|Bcc)):.*${LOGNAME} > $MAILDIR/Spam-folder let see... it starts with Resent- or Apparently- or To Cc or Bcc then comes ":" then whatever it comes and finally it requieres my user name... ok. that's what I was searching for. Thanks! I always have an alias: eduardo.viruena would it be ok if I add # Mail not addressed to me. :0 * $!^((Resent-|Apparently-)?(To|Cc|Bcc)):.*(${LOGNAME}|eduardo.viruena) $MAILDIR/Spam-folder thanks Warren! Eduardo. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message