On 29 March 2002 at 21:34, Alan Shutko <[EMAIL PROTECTED]> wrote:

What do those procmail recipes look like?



        The "broken" recipe looks like this:

MAILDIR=/home/kevinc/Mail

# DROPPRIVS=yes
LOGFILE=/home/kevinc/var/log/procmail
VERBOSE=yes

# Tag spam, pass non-spam untouched.
:0fw
| /home/kevinc/bin/spamc -p 7783

# This is slower than spamc but does the same thing.
# :0fw
# | /home/kevinc/bin/spamassassin -P

# File a copy of the spam.
:0:
* ^X-Spam-Status: Yes
spamspool

# put all mail in local spool
:0:
* ^.*
spool


        As you might be able to tell from the above recipe,
        spamassassin is installed in my own account on the
        system.  You can't tell that procmail is being run by the
        system under whatever UID my sysadmin chose.

        For what it's worth, I started spamd not as a daemon and
        kept track of it's output in a file.  When I cat
        something to spamc on command line, then I get evidence
        of it in the spamd log.  When I send some spam through
        the sendmail -> procmail -> spamc -> spamd loop, then
        there is no evidence of it in the spamd log.  Yes, I started
        spamd with the same port as I'm using with spamc.  I have to
        use an unprivileged port because I'm not starting spamd as 
        root.

        I also tried running spamassassin instead of spamc in the
        above recipe.  But, procmail tells me that it didn't run
        and had an exit status of -11.



        The recipe for the working system is below:



LOGFILE=/var/log/procmail

:0fw
| /usr/bin/spamc

:0:
* ^X-Spam-Status: Yes
/var/spool/mail/spam

        
        On this system, spamd runs as user spamd and procmail
        get's started by postfix.



Well, if you've read this far, then here are a few entries from
my procmail log:


procmail: Notified comsat: "kevinc@0:/home/kevinc/Mail/spamspool"
procmail: [8904] Fri Mar 29 18:09:05 2002
procmail: Executing "/home/kevinc/bin/spamc,-p,7783"
procmail: [8904] Fri Mar 29 18:09:05 2002
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^.*"
procmail: Locking "spool.lock"
procmail: Assigning "LASTFOLDER=spool"
procmail: Opening "spool"
procmail: Acquiring kernel-lock
procmail: Unlocking "spool.lock"
>From [EMAIL PROTECTED]  Fri Mar 29 18:09:05 2002
 Subject: Home Based Business for Grownups
  Folder: spool                                                            5350


procmail: Notified comsat: "kevinc@0:/home/kevinc/Mail/spool"
procmail: [10630] Fri Mar 29 18:16:21 2002
procmail: Executing "/home/kevinc/bin/spamassassin,-P"
procmail: [10630] Fri Mar 29 18:16:21 2002
procmail: Program failure (-11) of "/home/kevinc/bin/spamassassin"
procmail: Rescue of unfiltered data succeeded
procmail: [10630] Fri Mar 29 18:16:21 2002
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^.*"
procmail: Locking "spool.lock"
procmail: Assigning "LASTFOLDER=spool"
procmail: Opening "spool"
procmail: Acquiring kernel-lock
procmail: Unlocking "spool.lock"
>From [EMAIL PROTECTED]  Fri Mar 29 18:16:21 2002
 Subject: Home Based Business for Grownups
  Folder: spool                                                            5350



        Thanks all!




_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to