procmail
[Top] [All Lists]

Re: Messing with E-mail Headers

1996-08-13 12:31:44
    > Actually, I lied.
    > 
    > I've got that recipie, but what happens when I send mail to a normal user 
    > is I get this in the log file:
    > 
    > procmail: Assigning "INCLUDERC=/var/log/procmail/rc.main"
    > (this is good)
    > procmail: No match on "^To: [0-9]"
    > (this is good)
    > Folder: **Bounced**
    > (this is bad)

If you show me the recipe file, I can help you with it.  At this point,
I can only imagine what it looks like, unless it *really* is as simple
as you indicate at the bottom of the included e-mail.

Since the "^To: [0-9]" condition failed, then its recipe action is not
performed.  The next recipe is then examined.  If there are no more
recipes, then procmail tries to deliver the e-mail to the default
mailbox for the current user.  If there is no current mailbox for the
current user (an e-mail list), then procmail *bounces* the e-mail.

By the way, the recipe condition, as it stands, is not very flexible.
What about the case where there is more (or less) than exactly one space
between the color and the first number?  Ie:

    To:      1234(_at_)foo(_dot_)bar(_dot_)com
    Subject: Problems

    Why doesn't this e-mail with its headers aligned get forwarded like
    the others?

Are there any more recipes after the "junclient" recipe?  Remember, I
already pointed out that:

    :0
    {
    }

does nothing.

If you wish to have a fallback recipe, then make one:

    :0
    $DEFAULT

where $DEFAULT is the default mailbox defined for the current user.  Of
course, procmail must have been correctly configured for this implicit
definition to be valid.

Alan

    > 
    > the mail I get returned to me is like this:
    > 
    > >From MAILER-DAEMON(_at_)seoultel(_dot_)co(_dot_)krTue Aug 13 12:09:01 
1996
    > Date: Wed, 14 Aug 1996 04:05:47 +0900
    > From: Mail Delivery Subsystem 
<MAILER-DAEMON(_at_)seoultel(_dot_)co(_dot_)kr>
    > To: micah(_at_)smmedia(_dot_)com
    > Subject: Returned mail: Can't create output: Error 0
    > 
    > The original message was received at Wed, 14 Aug 1996 04:05:46 +0900
    > from root(_at_)smmedia(_dot_)com [207.66.144.3]
    > 
    >    ----- The following addresses had delivery problems -----
    > <smmi(_at_)seoultel(_dot_)co(_dot_)kr>  (unrecoverable error)
    > 
    >    ----- Transcript of session follows -----
    > procmail: [27639] Wed Aug 14 04:05:47 1996
    > procmail: Assigning "PMDIR=/var/log/procmail"
    > procmail: Assigning "LOGFILE=/var/log/procmail/log"
    > procmail: Opening "/var/log/procmail/log"
    > 550 <smmi(_at_)seoultel(_dot_)co(_dot_)kr>... Can't create output: Error 0
    > 
    >    ----- Original message follows -----
    > 
    >   [ Part 2: "Included Message" ]
    > 
    > Date: Tue, 13 Aug 1996 12:00:02 -0700 (PDT)
    > From: Micah Anderson <micah(_at_)smmedia(_dot_)com>
    > To: smmi(_at_)seoultel(_dot_)co(_dot_)kr
    > 
    > test
    > 
    > 
    > Any ideas?! Can't create output is very strange...
    > 
    > Thanks for all your help,
    > micah
    > 
    > On Fri, 9 Aug 1996, Micah Anderson wrote:
    > 
    > > 
    > > 
    > > Thank you for your help and explainations... I actually was able to 
    > > accomplish the correct output by just doing the following:
    > > 
    > > :0
    > > * ^To: [0-9]
    > > {
    > >         :0
    > > |/usr/local/bin/junclient
    > > }
    > > 
    > > :0
    > > {
    > > }
    > > 
    > > And the From is created correctly... I think the problem was that I was 
    > > trying to send it through the MTA when procmail already does that.
    > > 
    > > Micah
    > > 
    > > 
    > > 
_______________________________________________________________________________
    > > Micah Johan Eckman Anderson                             
micah(_at_)smmedia(_dot_)com
    > > Sr. Systems Administrator                               1-888-614-3709
    > > Schmidt Mead Media, Inc.                                
pagemicah(_at_)smmedia(_dot_)com        
    > > 
-------------------------------------------------------------------------------
    > > 
    > > 

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