procmail
[Top] [All Lists]

RE: How to stop mail loop

2000-03-15 15:38:51
For what it's worth, I would make VERBOSE=ON to ensure you get a nice dump
of all procmail's activity during new recipe testing.
Also (list members in general) why is a PATH statement in a .procmailrc?
Shouldn't that be a users home directory issue?? I guess it doesn't break
anything, but......
To me, Sean's earlier suggestion about eliminating jeff, and just copying
bob 'n dave has the grace of simplicity to it:

#mail to "all" goes to jeff anyway, so dump him outta this
:0c
* ^To:(_dot_)*all(_at_)domain\(_dot_)com
!bob,dave

It takes less space, is less expensive (I think) It is easier on the eyes,
and..does the job..also, no mail loop..'natch!
Now, bearing in mind when it comes to procmail that I'm no heavy hitter,
these are ideas only. The big guns on the list doubtless have much more in
their toolkits than I do.
Regards,
-Colin



-----Original Message-----
From: Ron 'The InSaNe One' Rosson 
[mailto:insane(_at_)lunatic(_dot_)oneinsane(_dot_)net]
Sent: Wednesday, March 15, 2000 3:53 PM
To: procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Subject: Re: How to stop mail loop


On Wed, 15 Mar 2000, Professional Software Engineering was heard blurting
out:

At 06:20 2000-03-15 -0800, Ron 'The InSaNe One' Rosson wrote:
* ^To: *all(_at_)domain(_dot_)com

However, implementing this in sendmail as previously described would be
more sure-fire.  What if this address receives the message BCC (or CC: for
that matter)?

* ^TO_all(_at_)domain\(_dot_)com

Which will catch it in Cc: headers, and in the received lines if your MTA
injects BCC delivery information there (still a crapshoot if there were
multiple local recipients).


Sendmail is not an option. So here is what I have for the recipe
(.procmailrc):

SHELL=/bin/sh
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bi
n:/s
bin:/usr/sbin:.
MAILDIR=$HOME/Mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
LOGABSTRACT=all
VERBOSE=no
LOCKFILE=$HOME/.lockmail

:0
* ^TO_all(_at_)domain\(_dot_)com
{
        # add a header - f is FILTER
        :0f
        | formail -A "X-Loop: all(_at_)domain(_dot_)com"

        # forward it (with the extra header).  the a flag isn't normally
        # necessary, but ensures that the above rule must have SUCCESSFULLY
        # completed before this takes place - thus hopefully sparing you from
        # grief if your formail gets trampled one day.
        :0a
        !jeff,bob,dave
}



Here is the .forward file
"!/usr/local/bin/procmail "

Here is the error I get when I send to all(_at_)domain(_dot_)com

   ----- The following addresses had permanent fatal errors -----
"!/usr/local/bin/procmail .procmailrc"
    (expanded from: all(_at_)domain(_dot_)com)

   ----- Transcript of session follows -----
550 /home/jeff/.forward: line 1: "!/usr/local/bin/procmail
.procmailrc"...
+User unknown


Any ideas??

TIA
--
-------------------------------------------------------------------
Ron Rosson                      ... and a UNIX user said ...
The InSaNe One                             rm -rf *
insane(_at_)oneinsane(_dot_)net         and all was /dev/null and *void()
-------------------------------------------------------------------
If Windows 95 is the answer, it must've been an incredibly stupid question.

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