procmail
[Top] [All Lists]

Re: qmail -- what happened?

1996-07-17 19:01:57
On Thu, 18 Jul 1996, Stephen R. van den Berg wrote:

Michael Cooley <michael(_at_)emcee(_dot_)com> wrote:
    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. 

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

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

What is SENDMAIL defined as?  (man procmailrc)

        /usr/lib/sendmail which is linked to qmail's sendmail wrapper.

Does this qmail sendmail-substitute understand both -oi and -t flags?

        I wondered about that and will check, but the autoreplies work....

:0h
* ^TOgeonames
| (/usr/local/bin/formail -ri "From: Genealogy Online 
<emcee(_at_)genealogy(_dot_)org>"; \
        cat ~/.reply-geonames) | $SENDMAIL -oi -t


        It's only when filtering is done by Subject: that it fails.



If this doesn't resolve the problem, then running the message through
with verbose logging enabled is the only way to get to the root of
the problem.


        Here is an example of a good Subject line that should have been
processed......

procmail: Notified comsat: "server(_at_)26216:/home/server/Mailbox"
procmail: Forking "procmail"
procmail: No match on "^Subject: .*FIND RSL-ADDR[^>]+$"
procmail: Match on "^Subject: .*FIND RSL[^>]+$"
procmail: Match on ! "^Subject:.*[ /.]\."
procmail: No match on ! 
"(^(Precedence:.*(junk|bulk|list)|(((Resent-)?(From|Sen

        Is this it?  Is that saying it -is- from a DAEMON?  I noticed 
that incoming mail filtered through .qmail (was .forward) for this 
account says 'From server,' not From whomever-sent-it>. Is that it?  (I 
don't have an older example, before the switch to qmail, to see what it 
had been.)  Those coming into the autoreply account would say 'From reply.'

        Now that I think about it, that must be it.  If so, the question 
is, where do I fix it, in qmail (I presume), or can it be fixed in procmail 
somehow?

procmail: No match on "^Subject: .*FIND GEONAME[^>]+$"
procmail: No match on "^Subject: .*FIND TT[^>]+$"
procmail: No match on "^Subject: .*SEND [0-9a-z][-_/0-9a-z.]+$"
procmail: No match on "^Subject: .*SOUNDEX ALL$"
procmail: No match on "^Subject: .*SOUNDEX [0-9a-z][-_/0-9a-z.]+$"
procmail: No match on "^Subject: .*DIR [0-9a-z][-_/0-9a-z.]+$"
procmail: No match on "^Subject: .*UUENCODE [0-9a-z][-_/0-9a-z.]+$"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparen
procmail: No match on ! 
"(^(Precedence:.*(junk|bulk|list)|(((Resent-)?(From|Sen
procmail: Locking "/home/server/.lockfile"
rocmail: [10936] Wed Jul 17 18:18:52 1996
procmail: Assigning "LASTFOLDER=/home/server/Mailbox"
procmail: Opening "/home/server/Mailbox"
procmail: Acquiring kernel-lock
procmail: [10938] Wed Jul 17 18:18:52 1996
procmail: Executing "sed,-n,-e,/Subject:/s/Subject: //p,-e,/^$/q"
procmail: [10938] Wed Jul 17 18:18:52 1996
procmail: Assigning "subject=find rsl Shutron"
procmail: Executing "sed,-n,-e,/From:/s/From: //p,-e,/^$/q"
procmail: Assigning "from="Paul E. Giroux" <shd(_at_)digital(_dot_)net>"
procmail: Executing "date,+%a %b %d %Y %T"
procmail: Assigning "date=Wed Jul 17 1996 18:18:52"
procmail: Assigning "LASTFOLDER= echo $date $from $subject >> .00-log"
From server  Wed Jul 17 18:18:51 1996
 Subject: find rsl Shutron
  Folder:  echo $date $from $subject >> 
.00-log                             651
procmail: Notified comsat: "server@: echo $date $from $subject >> .00-log"
procmail: Executing " echo $date $from $subject >> .00-log"
procmail: [10936] Wed Jul 17 18:18:53 1996
procmail: Unlocking "/home/server/.lockfile"
From server  Wed Jul 17 18:18:51 1996
 Subject: find rsl Shutron
  Folder: 
/home/server/Mailbox                                              651
procmail: Notified comsat: "server(_at_)26765:/home/server/Mailbox"


        Here is the FIND RSL recipe.....

 :0
 * ^Subject: .*FIND RSL[^>]+$
 * !^Subject:.*[ /.]\.
 * !^FROM_DAEMON
 {
   STRING=`sed -n -e '/Subject:/p' -e '/^$/q'`

   :0h
   | (formail -rt -A"Precedence: junk"; cat /home/server/.doc/rsl.doc;\
        echo $STRING | /home/server/.bin/rsl-search) | $SENDMAIL -oi -t
 }


        FYI, here is the top of the file. From there it goes through each 
"Subject" recipe. (I had commented out the 'loop' check to be that that was 
not causing this.)

VERBOSE=on
LOGFILE=$HOME/.00-debug

# DUMP LOOPS
#:0
#* ^X-Loop: server
#/dev/null

# LOG
:0hc
{
        subject=`sed -n -e '/Subject:/s/Subject: //p' -e '/^$/q'`
        from=`sed -n -e '/From:/s/From: //p' -e '/^$/q'`
        date=`date +'%a %b %d %Y %T'`

        :0
        | echo $date $from $subject >> .00-log
}


        Thanks for any ideas.

-Michael

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

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