From: okie on
When sendmail talks to a upstream MTA, and that MTA rejects the email
based on user unknown, sendmail successfully sends an NDR to our
originator

Is it possible to include the rejected address in the subject line of
that NDR?

j
From: D. Stussy on
"okie" <welchjh(a)gmail.com> wrote in message
news:ed780cfa-b4f9-4a1f-9c5a-86aa95f891b6(a)5g2000yqz.googlegroups.com...
> When sendmail talks to a upstream MTA, and that MTA rejects the email
> based on user unknown, sendmail successfully sends an NDR to our
> originator
>
> Is it possible to include the rejected address in the subject line of
> that NDR?

If YOUR sendmail has rejected the message, it's the SENDER's MTA that
generates the NDR. Therefore, no, you can't modify it.

If your sendmail receives a rejection message, then YOU generate the NDR,
and yes, there's some control over what you can say. However, are you
certain that the NDR already doesn't identify the rejected address?

The modification you're permitted is the inclusion of text from a static
file - per an option (unless support for such was recently removed). I
don't remember the option name offhand.


From: Robert Bonomi on
In article <ed780cfa-b4f9-4a1f-9c5a-86aa95f891b6(a)5g2000yqz.googlegroups.com>,
okie <welchjh(a)gmail.com> wrote:
>When sendmail talks to a upstream MTA, and that MTA rejects the email
>based on user unknown, sendmail successfully sends an NDR to our
>originator
>
>Is it possible to include the rejected address in the subject line of
>that NDR?

*ANYTHING* is possible, if you're willing to spend the time/effort. :)

You _have_ the source-code for Sendmail, you can tweak it to do whatever
you want it to.

If you mean, 'is there a .cf (or .mc) file setting that will do this', the
answer is "No."


Trying to do this -inside- sendmail, itself, is -messy-.

A much simpler way would be to use 'procmail' as the local delivery agent,
if you're not doing so already, and then brew up a recipie to recognize
*your* (locally-generted) NDR messages, pipe the message through a script
that does the rewrite, and then pipe to formail.


From: okie on
On Jun 17, 2:39 pm, "D. Stussy" <spam+newsgro...(a)bde-arc.ampr.org>
wrote:
> "okie" <welc...(a)gmail.com> wrote in message
>
> news:ed780cfa-b4f9-4a1f-9c5a-86aa95f891b6(a)5g2000yqz.googlegroups.com...
>
> > When sendmail talks to a upstream MTA, and that MTA rejects the email
> > based on user unknown, sendmail successfully sends an NDR to our
> > originator
>
> > Is it possible to include the rejected address in the subject line of
> > that NDR?
>
> If YOUR sendmail has rejected the message, it's the SENDER's MTA that
> generates the NDR.  Therefore, no, you can't modify it.
>
> If your sendmail receives a rejection message, then YOU generate the NDR,
> and yes, there's some control over what you can say.  However, are you
> certain that the NDR already doesn't identify the rejected address?

Yes this is the case, I am building the NDR because they are telling
me User Unknown, and yes the address is already in the body of the
message.

My question is with out much difficutly can it be placed in the
subject line.
J


>
> The modification you're permitted is the inclusion of text from a static
> file - per an option (unless support for such was recently removed).  I
> don't remember the option name offhand.

From: okie on
On Jun 18, 9:22 am, bon...(a)host122.r-bonomi.com (Robert Bonomi) wrote:
> In article <ed780cfa-b4f9-4a1f-9c5a-86aa95f89...(a)5g2000yqz.googlegroups.com>,
>
> okie  <welc...(a)gmail.com> wrote:
> >When sendmail talks to a upstream MTA, and that MTA rejects the email
> >based on user unknown, sendmail successfully sends an NDR to our
> >originator
>
> >Is it possible to include the rejected address in the subject line of
> >that NDR?
>
> *ANYTHING* is possible, if you're willing to spend the time/effort. :)
>
> You _have_ the source-code for Sendmail, you can tweak it to do whatever
> you want it to.
Right not the direction I want to go.
>
> If you mean, 'is there a .cf (or .mc) file setting that will do this', the
> answer is "No."

That is what I am asking
>
> Trying to do this -inside- sendmail, itself, is -messy-.
>
> A much simpler way would be to use 'procmail' as the local delivery agent,
> if you're not doing so already, and then brew up a recipie to recognize
> *your* (locally-generted) NDR messages, pipe the message through a script
> that does the rewrite, and then pipe to formail.
This box is a hub, no mail lives here, does what you mean still apply?
Thanks for the advice.

J