procmail
[Top] [All Lists]

qmail -- what happened?

1996-07-16 21:17:02

Hi,

        I have just recently installed qmail as SMTP on my server. Most
fires are out, but there now appears to be a problem with some procmail
recipes. 

        I have 3 accounts that use .procmailrc to process mail.  One is 
simply an autoreply acct that checks TO. Another is a file server and 
checks the subject field, which is now failing.  The mail passes through 
the script and is appended to the Mailbox.  But there is one working 
recipe in that script, which filters by TO.  That works.  The third 
account does no filtering.  It processes anything that comes to it. That 
works, too.

        Here is a qmail message header......

From server  Tue Jul 16 20:28:16 1996
Received: (qmail-queue invoked from smtpd); 16 Jul 1996 20:28:14 -0700
Received: from ns2.emcee.com (michael(_at_)205(_dot_)199(_dot_)113(_dot_)51)
  by genealogy.emcee.com with SMTP; 16 Jul 1996 20:28:14 -0700
Received: (from michael(_at_)localhost) by ns2.emcee.com (8.6.12/8.6.12) id 
UAA05313
Date: Tue, 16 Jul 1996 20:45:56 -0700 (PDT)
From: Michael Cooley <michael(_at_)emcee(_dot_)com>
To: server(_at_)emcee(_dot_)com
Subject: send help
Message-ID: 
<Pine(_dot_)LNX(_dot_)3(_dot_)91(_dot_)960716204549(_dot_)5310A-100000(_at_)ns2(_dot_)emcee(_dot_)com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Status: O
X-Status:


        Here is the associated (and failing) recipe.......

 :0
 * ^Subject: .*SEND [0-9a-z][-_/0-9a-z.]+$
 * !^Subject:.*[ /.]\.
 * !^FROM_DAEMON
 {
    FILE=`sed -n -e '/Subject:/s/.* //p' -e '/^$/q'`

   :0h
   | (formail -rt -A"Precedence: junk";\
      cat $HOME/$FILE) | $SENDMAIL -oi -t
 }


        Here is the recipe in that same script that works........

:0
* ^TOttafel
{
        from=`sed -n -e '/From:/s/From: //p' -e '/^$/q'`
        date=`date +'%a %b %d %Y %T'`
        NUMBER=`cat $HOME/.ttnum`
        NUMBER=`cat $HOME/.ttnum | awk -v var=$NUMBER '{print var+1}'`
        FILE=ad$NUMBER.tt

        :0c
        | echo $NUMBER > $HOME/.ttnum

        :0bc
        | formail -I "" | cat > $HOME/.incoming/$FILE

        :0hc
        | (formail -rt -A"Precedence: junk";\
                .bin/submit $FILE) | $SENDMAIL -oi -t

        :0h
        | echo $date $from >> .00-submits
}


        qmail replaces the .forward file with .qmail.  It does not want 
the double quotes.....

|IFS=' '&&exec /usr/local/bin/procmail -f- || exit 75 #server


        It does seem to pass all messages to the script as all logging 
takes place.  All occurrences of all TO filtering in all scripts work.  
As far as I can tell, filtering on Subject: never works.  The scripts 
themselves have not changed for a very long time and this problem started 
only two days ago after installing qmail.

        Any help is greatly appreciated.

Thanks,
Michael

--------------------------------------------------------------------------
 Michael Cooley        michael(_at_)emcee(_dot_)com       
http://emcee.com/~michael/

<Prev in Thread] Current Thread [Next in Thread>