Help getting procmail to run

Discussion in 'Site & Server Administration' started by seismicmike, Aug 4, 2009.

  1. #1
    I have procmail running globally - it hands suspicious messages off to spamassassin. But I can't get it to work on a per user basis. I tried to create a .procmailrc in my home directory and it won't run. Here's my ls -la of my home directory (~/).

    
    total 60
    drwx------   4 testaccount testaccount  4096 Aug  4 12:04 .
    drwxr-xr-x 685 root        root        20480 Jul 30 13:37 ..
    -rw-------   1 testaccount testaccount   303 Aug  4 10:26 .bash_history
    -rw-r--r--   1 testaccount testaccount    24 Jul 20  2008 .bash_logout
    -rw-r--r--   1 testaccount testaccount   176 Jul 20  2008 .bash_profile
    -rw-r--r--   1 testaccount testaccount   124 Jul 20  2008 .bashrc
    drwxr-xr-x   2 testaccount testaccount  4096 Aug  4 12:05 .largemail
    drwx------   5 testaccount testaccount  4096 Aug  3 17:07 Maildir
    drwxr-xr-x   2 testaccount testaccount  4096 Aug  4 12:04 .procmail
    -rw-r--r--   1 testaccount testaccount     0 Aug  4 12:04 .procmailrc
    -rw-------   1 testaccount testaccount   828 Aug  4 10:25 .viminfo
    -rw-r--r--   1 testaccount testaccount   658 Jul 20  2008 .zshrc
    
    Code (markup):
    Basically right now the only rule I have (for testing purposes) is as follows:

    
    MAILDIR=$HOME/Maildir
    PMDIR=$HOME/.procmail
    LOGFILE=$PMDIR/procmail.log
    LARGEDIR=$HOME/.largemail
    VERBOSE=true
    
    :0:
    * < 1
    $MAILDIR
    
    :0:
    * > 2
    $LARGEDIR
    
    Code (markup):
    The idea here (and this is just for testing) is to get large email to be filtered out into another directory. Again, this is all just to test procmail. I have more advanced things I'd like to do but I can't even get this to run. All mail is delivered to ~/Maildir/new/ even though I want larger emails (in this case anything over 2 bytes!) to be redirected to ~/.largemail/ but it's not working.

    Are my permissions wrong?
    Are my files in the wrong place?

    I'm not sure what version of procmail I'm running
    I'm running the latest version of Spamassassin
    I believe I have the latest version of Sendmail - but don't quote me on that.
    I'm also running dovecot, but not sure what version.
    All this is on RHEL 5.

    Thanks in advance.
     
    seismicmike, Aug 4, 2009 IP