Results 1 to 8 of 8

Thread: User procmailrc isnt being executed

Threaded View

  1. #1
    Join Date
    Mar 2013
    Beans
    9

    User procmailrc isnt being executed

    Running ubuntu server 12.04 with sendmail and spamassassin. I have a .procmailrc to call spamc which doesnt seem to be executing. Trying to understand where it fails.

    Here is some info on my setup:

    Code:
        $ grep procmail /etc/mail/sendmail.mc
        MAILER(procmail)dnl
    
        $ cat ~/.procmailrc
        ...
        :0 fw
        * < 256000
        | spamc
        
        # Mails with a score of 15 or higher are almost certainly spam (with 0.05%
        # false positives according to rules/STATISTICS.txt). Let's put them in a
        # different mbox. (This one is optional.)
        :0:
        * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
        /dev/null
        
        # All mail tagged as spam (eg. with a score higher than the set threshold)
        # is moved to spam folder
        :0:
        * ^X-Spam-Status: Yes
        Maildir/.spam/
    
        $ dpkg -l procmail
        +++-====================================-====================================-========================================================================================
        ii  procmail                             3.22-19                              Versatile e-mail processor
    However, if I double check my last spam message it seems to have been skipped:

    Code:
        $ cd ~/Maildir/cur
        $ ls -alrt|tail -3
        -rw-------  1 babueter babueter    5055 Mar 27 06:02 1364378554.M631147P7825.eldorado,S=5055,W=5156:2,
        drwx------  2 babueter babueter   90112 Mar 27 06:12 .
        drwx------ 18 babueter babueter   12288 Mar 27 06:22 ..
        $ time cat 1364378554.M631147P7825.eldorado\,S\=5055\,W\=5156\:2\, | spamc > /tmp/spam.txt
        
        real    0m0.541s
        user    0m0.000s
        sys     0m0.008s
        $ grep X-Spam-Status /tmp/spam.txt
        X-Spam-Status: Yes, score=16.1 required=4.0 tests=BAYES_99,HS_INDEX_PARAM,
    Not sure where I'm going wrong? This did at one time work.

    Thanks in advance.
    Last edited by babueter; March 29th, 2013 at 12:50 PM.

Bookmarks

Posting Permissions

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