This one time, at band camp, Michael Fox wrote:
>Hi,
>
>I am having a bit of issues with .procmailrc and I dont know whats
>happening. Firstly my postfix main.cf contains this;
>
>mailbox_command = procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/
>MAILDIR=$HOME/Maildir

That looks like a bug: the "DEFAULT=" and "MAILDIR=" lines look like
procmail variables, not postfix config.

>Not sure if this has any bearing on problem. Anyways my mail gets
>delivered to my Maildir.
>
>So I created a .procmailrc and it contains;
>
>MAILDIR=$HOME/Maildir
>SPAM=$MAILDIR/.Junkmail/
>DEFAULT=$HOME/Maildir/
>
>LOGFILE=$MAILDIR/.procmail.log
># VERBOSE=on for more debugging info than you can poke a stick at
>VERBOSE=on
>
># if it's already got spam: yes header from my upstream, then bye bye
>:0:
>* ^X-Spam-Status: Yes
>$SPAM
>
>:0:
>* ^X-Spam-Flag: YES
>$SPAM
>
>:0
>$DEFAULT
>
>-- snip end --
>
>However it appears the rules above relating to the X-Spam-* are not
>working. Infact these rules seem to be doing nothing at all and mail
>still ends up in the default Maildir folder. It appears the Spam is
>not going into my .Junkmail Maildir folder.

So is your upstream using, e.g., spamassassin to put those mail headers in?
You can't trust the spammers themselves to mark their messages as spam :)
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to