Re: Procmail Question
From: Alan Connor (i3x9mdw_at_j9n35c.invalid)
Date: 09/22/05
- Previous message: Lekeas GK: "Re: Procmail Question"
- In reply to: Lekeas GK: "Procmail Question"
- Next in thread: Lekeas GK: "Re: Procmail Question"
- Reply: Lekeas GK: "Re: Procmail Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Sep 2005 12:49:37 GMT
On comp.unix.questions, in
<Pine.GSO.4.58.0509221244070.13683@vega.soi.city.ac.uk>, "Lekeas
GK" wrote:
> Hi All,
>
> I would like to know how do you tell procmail to deliver mail
> from certain people to the mailbox - on our server, there is a
> spam detection mechanism installed as well and messages from
> certain senders are classified as spam.
>
> I tried the following:
>
>:0
> * ^From.*(test@test.com)
> $MAILDIR
>
Depends on how your spam detection mechanism works. If it marks
the spam with a certain header, then:
#if you use spamassassin:
:0 f # filter the mail through:
| /usr/bin/spamassassin -options
:0
* ^Spam-Status: [5-9][0-5]
# for example
spam #relative to $MAILDIR
:0 # your blocklist
* ^From.*badboy@foo\.com|\
badgirl@foo\.net|\
badhomosexual@foo\.org
/dev/null # to really dump their mails
# (or Philip's suggestion, which is better if the list is
#+ a long one and needs frequent updating)
:0
* ^From.*test@test\.com #this being mail you want to get
mailbox
That's assuming your are using mbox format
mailboxes.
> with no luck. Any suggestions?
>
> I look forward to hearing from you soon.
>
> Thanks in advance.
>
> George
HTH,
AC
-- Homepage: http://home.earthlink.net/~alanconnor/ Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
- Previous message: Lekeas GK: "Re: Procmail Question"
- In reply to: Lekeas GK: "Procmail Question"
- Next in thread: Lekeas GK: "Re: Procmail Question"
- Reply: Lekeas GK: "Re: Procmail Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|