View previous topic :: View next topic |
Author |
Message |
jsinger n00b
Joined: 24 Oct 2003 Posts: 16
|
Posted: Tue Mar 23, 2004 3:34 am Post subject: .procmailrc help needed |
|
|
I have a POP mail account on a hosted domain (CSoft, FWIW) that's been completely overrun with spam. I've been running POPfile locally, but over a dialup connection I still need to download 1000 mails every day so I'd like to apply a server-side solution.
I set up Procmail using these instructions and wrote a .procmailrc attached below. Nothing seems to be happening, though. The ~/Mailbox file still seems to get everything and the spam files aren't being written. Any idea what I might have wrong? Or how to debug this? I don't see any log or error files being created.
Advice greatly appreciated -- thanks!!
Code: | #SHELL=/bin/sh
#PATH=$HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PMDIR=$HOME/Procmail
LOGFILE=$PMDIR/log
DEFAULT=$HOME/Mailbox
#MAILDIR=$HOME/mail # For Pine: verify that this directory exists.
MAILDIR=$HOME/Mail # For Mutt and Elm: verify that this directory exists.
LOCKFILE=$PMDIR/.lockmail
VERBOSE=no
:0: # Begin this recipe and create a lockfile.
* ^From.(*Subsystem*|*DAEMON*|*Post\ Office*|postmaster*)
$HOME/Mailbox.bounces
:0:
* ^Subject:.*Undeliverable*
$HOME/Mailbox.bounces
# Identify spam using SpamAssassin. All servers run spamd(1) so users should
# invoke spamc(1) instead of spamassassin(1).
# f = pipe is a filter.
# w = wait for the filter to finish.
:0fw
* < 256000 # 250kB limit on messages since spamc(1) returns
| spamc # bigger messages unverified.
# Message tagged as spam are probably spam.
:0:
* ^X-Spam-Status: Yes
$HOME/Mailbox.spam |
|
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Tue Mar 23, 2004 4:34 am Post subject: |
|
|
Assuming you set up the .qmail file as directed then procmail should be running on delivery.
Try setting the VERBOSE flag to yes and looking at the log file you've asked it to write. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
|
fieryred2k n00b
Joined: 23 Mar 2004 Posts: 13
|
Posted: Tue Mar 23, 2004 5:08 am Post subject: |
|
|
hmm this is just a stab... but shouldn't
Code: |
$HOME/Mailbox.bounces
|
be
Code: |
$HOME/Mailbox/.bounces
|
? |
|
Back to top |
|
|
|