Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.procmailrc help needed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jsinger
n00b
n00b


Joined: 24 Oct 2003
Posts: 16

PostPosted: Tue Mar 23, 2004 3:34 am    Post subject: .procmailrc help needed Reply with quote

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
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Tue Mar 23, 2004 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
fieryred2k
n00b
n00b


Joined: 23 Mar 2004
Posts: 13

PostPosted: Tue Mar 23, 2004 5:08 am    Post subject: Reply with quote

hmm this is just a stab... but shouldn't
Code:

$HOME/Mailbox.bounces

be
Code:

$HOME/Mailbox/.bounces


?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum