On Sat, 18 Oct 2003 09:54:00 -0700, Rob Tow <[EMAIL PROTECTED]> posted to
the spamassassin-talk list:
 > I am trying to pre-filter a bit in .promailrc, to catch some
 > addressed names within my domain and totally get rid of them (for
 > test purposes I'm sending them to a file, but really want them to
 > go to /dev/null).
 > However, I'm seeing them go to the files, and then get handed off
 > to Spam Assassin, too.

Your .procmailrc looks quite right if I understand you correctly.
Stuff which matches ^To: [EMAIL PROTECTED] ought to end up in the
file djtaz01 and Procmail should stop processing there.

Are you sure these rules are being invoked and the save to file is
successful? The log should look something like this (just ignore the
settings for DEFAULT and MAILDIR, obviously. Maybe try including
SHELL= though):

 $ echo 'To: [EMAIL PROTECTED]' | procmail -m /tmp/.procmailrc
 procmail: [13237] Sun Oct 19 19:37:52 2003
 procmail: Assigning "SHELL=/bin/sh"
 procmail: Assigning "DEFAULT=/dev/null"
 procmail: Assigning "MAILDIR=/tmp"
 procmail: Match on "^To: [EMAIL PROTECTED]"
 procmail: Assigning "LASTFOLDER=djtaz01"
 procmail: Opening "djtaz01"
 procmail: Acquiring kernel-lock
   Folder: djtaz01                                                           25

BTW you should probably not much with PATH and SENDMAIL unless you
know their values are wrong for your system.

Other than that, if the To: header does not contain exactly one space
and the string "[EMAIL PROTECTED]" after the colon, the regex will
not match, but you probably knew that already (^; but in any event you
might actually want to use [EMAIL PROTECTED] instead).

Hope this helps,

/* era */

-- 
The email address era     the contact information   Just for kicks, imagine
at iki dot fi is heavily  link on my home page at   what it's like to get
spam filtered.  If you    <http://www.iki.fi/era/>  500 pieces of spam for
want to reach me, see     instead.                  each wanted message.



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to