Procmail partially working

Ask a Question related to Debian, Design and Development.

  1. #1

    Default Procmail partially working

    I have setup fetchmail to get my mail from my two pop3 accounts and to be then
    processed by procmail. Mail is then processed by Spamassassin, messages that
    were found to be spam "should" be moved to oblivion (/dev/null), but nothing
    happens. I can still marked spam in my inbox.

    What should I do? Is there a permission issue with /dev/null?

    Here's my .procmailrc file:
    #Take to SA
    :0fw
    | /usr/bin/spamassassin

    #Move flagged spam into the bottomless Unix pit.
    :0:
    * ^X-Spam-Flag: YES
    /dev/null

    :0:
    * ^X-Spam-Status: Yes
    /dev/null

    Thanks for any advice.

    Jernej


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    J. Zidar Guest

  2. Similar Questions and Discussions

    1. [procmail] [sed] [awk] cleaning up mail headers
      Not quite sure where to post this ... I am trying to write a command line for procmail that takes the From: header field from an email and cleans...
    2. Procmail Problem
      Hi all, I am sorry if this is not the right forum for this sort of question, it seemed the best match from the forums I had on offer. Hopefully I...
    3. ProcMail with Perl and MailAudit
      Hi! I found a website that explains how to parse the mails with procmail and MailAudit (procmail filter send each message that arrives to my perl...
    4. Spamassassin and procmail
      Hi all, I currently use fetchmail and procmail to get and sort my mail. I'd like to use spamassassin as well, however when I add :0fw:...
    5. procmail and vacation
      In article <3efac72e$0$10836$3b214f66@usenet.univie.ac.at> Martin Paul <martin@par.univie.ac.at> writes: But it still works, doesn't it? I think...
  3. #2

    Default Re: Procmail partially working

    Monday 28 of July 2003 15:14 je &F pisal:
    >On Mon, Jul 28, 2003 at 02:56:38PM +0200, J. Zidar wrote:
    >> I have setup fetchmail to get my mail from my two pop3 accounts and to
    >> be then processed by procmail. Mail is then processed by Spamassassin,
    >> messages that were found to be spam "should" be moved to oblivion
    >> (/dev/null), but nothing happens. I can still marked spam in my inbox.
    >>
    >> What should I do? Is there a permission issue with /dev/null?
    >>
    >> Here's my .procmailrc file:
    >> #Take to SA
    >>
    >> :0fw
    >> :
    >> | /usr/bin/spamassassin
    >>
    >> #Move flagged spam into the bottomless Unix pit.
    >>
    >> :0:
    >>
    >> * ^X-Spam-Flag: YES
    >> /dev/null
    >>
    >:0: says to use a locallockfile, which by default is the destination
    >
    >filename with $LOCKEXT appended, and you won't be able to write to
    >/dev/null.lock. Try ':0:$HOME/.procmail.spam-lock' or something instead.
    >
    >Cheers,
    >
    >--
    >Colin Watson [cjwatson@flatline.org.uk]
    I've done as your suggested an now no spam is seen in my inbox. cute.

    Thank you a million,
    Jernej Zidar


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    J. Zidar Guest

  4. #3

    Default Re: Procmail partially working

    Colin Watson wrote:
    > > #Move flagged spam into the bottomless Unix pit.
    > > :0:
    > > * ^X-Spam-Flag: YES
    > > /dev/null
    >
    > :0: says to use a locallockfile, which by default is the destination
    > filename with $LOCKEXT appended, and you won't be able to write to
    > /dev/null.lock. Try ':0:$HOME/.procmail.spam-lock' or something instead.
    Better yet don't lock it at all, /dev/null really does not care if two
    processes write to it at once.

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/JUVD3xwsXJZQhyMRAgKJAKCV+dYCXS7hqtuBDvkqJRX0YPEawg CgpVmZ
    wK9eO/ormM1T2u6pT3kbCoc=
    =AVpW
    -----END PGP SIGNATURE-----

    Joey Hess Guest

  5. #4

    Default Re: Procmail partially working

    On Mon, Jul 28, 2003 at 11:46:11AM -0400, Joey Hess wrote:
    > Colin Watson wrote:
    [somebody broke attributions]
    > > > #Move flagged spam into the bottomless Unix pit.
    > > > :0:
    > > > * ^X-Spam-Flag: YES
    > > > /dev/null
    > >
    > > :0: says to use a locallockfile, which by default is the destination
    > > filename with $LOCKEXT appended, and you won't be able to write to
    > > /dev/null.lock. Try ':0:$HOME/.procmail.spam-lock' or something instead.
    >
    > Better yet don't lock it at all, /dev/null really does not care if two
    > processes write to it at once.
    Obviously I need more coffee :-)

    --
    Colin Watson [cjwatson@flatline.org.uk]


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Colin Watson Guest

  6. #5

    Default Re: Procmail partially working

    > From [email]cjwatson@debian.org[/email] Mon Jul 28 09:51:49 2003
    >
    >
    > On Mon, Jul 28, 2003 at 11:46:11AM -0400, Joey Hess wrote:
    > > Colin Watson wrote:
    > [somebody broke attributions]
    > > > > #Move flagged spam into the bottomless Unix pit.
    > > > > :0:
    > > > > * ^X-Spam-Flag: YES
    > > > > /dev/null
    > > >
    > > > :0: says to use a locallockfile, which by default is the destination
    > > > filename with $LOCKEXT appended, and you won't be able to write to
    > > > /dev/null.lock. Try ':0:$HOME/.procmail.spam-lock' or something instead.
    > >
    > > Better yet don't lock it at all, /dev/null really does not care if two
    > > processes write to it at once.
    >
    > Obviously I need more coffee :-)
    >
    > --
    > Colin Watson [cjwatson@flatline.org.uk]
    >
    I have heard that it is a bad idea to use lockfiles with /dev/null in procmail.

    The source was more than credible but couldn't remember why....


    Alan


    --

    For Linux/Bash users: Eliminate spam from your life
    with the Mailbox-Sentry-Program. See the thread
    MSP on comp.mail.misc for the latest version.



    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Alan Connor Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139