[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMTP file naming issue?



Here's what I'm doing, it may suit your needs:
You can insert a call to an external pocess in the loop of router
processing. That would be in router.cf, this is what I do:

        [0-9]*)         TAG=$(/usr/bin/sb_client.py -T $file)
                        rfc822 "$file" ;;

I'm just "reading" the file there. Zmailer speed comes in part from the
fact that imposed message is not altered anytime.

Notice also that I'm keeping some info inside router. You can also keep
some more metadata outside.
I've altered router to place that info in a new X-xxxx header in the
transport control file, which the transport agents end up copying to
the output message. If you need further changing, you can change
the transport sequence, like insert another process in the chain
by using sm.

Hope this helps...
-Carlos

Neal Morgan  @ 5/6/2006 2:23 -0400 dixit:
> After some time looking through the code, I see my previous questions
> were dumb.  
> 
> So, let me try again:
> 
> Is there a way to configure router/transport(/scheduler) so that:
> 
> 1) messages received by smtpserver are "routed" to an alternate
> directory
> 2) metadata about the message is maintained
> 3) an external process operates on the message, then
> 4) the external processes "resubmits" or "renables" the message, router
> and transport pick back up with the SAME message information (but
> altered message contents) and continue where they left off with routing
> and delivery?
> 
> It seems like this should be possible with router and sm? I just can't
> figure out the correct configuration to make ZMailer view this as the
> same message, rather than a new one.
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Carlos Mendioroz [mailto:tron@huapi.ba.ar] 
> Sent: Saturday, June 03, 2006 4:29 PM
> To: Neal Morgan
> Cc: zmailer@nic.funet.fi
> Subject: Re: SMTP file naming issue?
> 
> I would use message-id, I guess, but there may be issues with that.
> Sorry, I'm not able to help you more...
> 
> 
> Neal Morgan  @ 3/6/2006 17:36 -0400 dixit:
>> Thanks.  I don't see any indication of a problem with the messages
> being
>> handled properly.  I agree Zmailer is working fine.
>>
>> My issue is visibility.  I don't see an easy way from my logs to match
>> messages leaving SMTP with those traversing external processes, and
> back
>> when re-entering the router.
>>
>> Maybe I should ask my question differently.  Is there an easy way to
>> include the spoolID in the envelope (on the comment line) or append it
>> to the message header?
>>
>> Alternatively, how difficult would it be to use spoolID as the file
>> name?  ...would that cause problems elsewhere?
>>
>> I'm guessing the envelope approach would be easiest.  Suggestions?
>>
>>
>>
>>
>> -----Original Message-----
>> From: zmailer-owner@nic.funet.fi [mailto:zmailer-owner@nic.funet.fi]
> On
>> Behalf Of Carlos Mendioroz
>> Sent: Saturday, June 03, 2006 4:40 AM
>> To: Neal Morgan
>> Cc: zmailer@nic.funet.fi
>> Subject: Re: SMTP file naming issue?
>>
>> If the naming scheme is the old one, name comes from inode number.
>> So if the name is reused, you should count on the old one having been
>> taken care of.
>> -Carlos
>>
>> Neal Morgan  @ 3/6/2006 2:58 -0400 dixit:
>>> Hello Matti!
>>>
>>> I've been watching the files dropped into postoffice/router by
>> incoming
>>> SMTP sessions and I note the same file name is used several times.
>> I'm
>>> wondering if this is configurable, or a bug...  I have an external
>>> process that acts on the messages before the router picks them up for
>>> delivery.  I'd like to be able to track "chain of custody" per
> message
>>> using this file name, but am unable to do so if SMTP reuses the same
>>> name.
>>>
>>>
>>> Regards,
>>>
>>> Neal Morgan
>>>
>>>
>>> -
>>> To unsubscribe from this list: send the line "unsubscribe zmailer" in
>>> the body of a message to majordomo@nic.funet.fi
>>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe zmailer" in
>> the body of a message to majordomo@nic.funet.fi
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe zmailer" in
>> the body of a message to majordomo@nic.funet.fi
>>
> 
> -
> To unsubscribe from this list: send the line "unsubscribe zmailer" in
> the body of a message to majordomo@nic.funet.fi
> 
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi