Re: Procmail Question

From: Alan Connor (i3x9mdw_at_j9n35c.invalid)
Date: 09/22/05

  • Next message: Lekeas GK: "Re: Procmail Question"
    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
    

  • Next message: Lekeas GK: "Re: Procmail Question"

    Relevant Pages

    • Re: Procmail Question
      ... >> I would like to know how do you tell procmail to deliver mail ... > Depends on how your spam detection mechanism works. ... I assume it is an mbox format mailbox, ...
      (comp.unix.questions)
    • Re: Save to set folder with mutt
      ... procmail can send your mails that come from debian-user list and send ... it to your debian-user mailbox, where you can find these as new ... I have created my .procmail .forward file according to the following url: ... "debian" mailbox which are filtered by procmail. ...
      (Debian-User)
    • Re: [OT] fetchmail, procmail and mutt (oh my!)
      ... > procmail puts the emails in the correct mbox files; ... > Here's the top of .procmailrc and the freebsd recipe: ... You're using a relatively strange way to specify the mailbox file name. ... Anyway, putting this aside for a while, you can see what procmail does ...
      (freebsd-questions)
    • Re: email status, RO...
      ... header is traditional Unix mailbox format (see ... Or you could add a blank "Status: " through procmail. ... The procmail package already has a program to do this: formail. ... james | "I blame the teachers, ...
      (Fedora)
    • Re: Using cyrus-imapd, and moving off dovecot...
      ... >server and when Cyrus-IMAPd is up, ... Does formail require the mailbox to be empty? ... >Do you really intend to use Procmail? ... that must be mailer cyrusv2. ...
      (Fedora)