Re: Track emails



=?Utf-8?B?dXNhbWFhbGFt?= <usamaalam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:AFE4C82D-1ABE-4F5D-BD02-563F8628EEE0@xxxxxxxxxxxxx:
Any code sample or tutorial on how to deal with NDR?

Not really -- you just get an email in from whoever it was that bounced
it, and it'll contain some sort of error message. The message will
depend on what it was that generated the bounce.

If you mail to a nonexistent site, Exchange generates something like
this:

- - - -
Your message did not reach some or all of the intended recipients.

Subject: Testing
Sent: 25/07/2006 10:45 AM

The following recipient(s) cannot be reached:

nosuchuser@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on 25/07/2006 10:45
AM
The e-mail system was unable to deliver the message, but did
not report a specific reason. Check the address and try again. If it
still fails, contact your system administrator.
- - - -

If it's a nonexistent user at your local site (and you're running
Exchange), it'll say "the e-mail account does not exist", because your
local site knows who does and doesn't exist.

If it's a nonexistent user at a remote site, a number of things might
happen.

1. It'll silently fail, nothing happens, the mail gets deleted.
2. It'll get delivered to a "all nonexistent user mail goes here"
mailbox.
3. It'll bounce -- then you get some sort of mail back from the remote
server. What that mail contains will depend on the server in question,
you'll have to test it against every mail server you want to handle to
see what exactly you get sent back.

There's no standard format for NDRs that go to users. If you write your
own socket-level SMTP sending code, then you get more info about exactly
what happened, but that still doesn't solve problems 1 or 2 if the
remote mail server decides to do that.

-- dan


.



Relevant Pages

  • Re: Please, explain what to do with this list.
    ... subscription mail address is handled by. ... So a "bounce" is when the ... subscription address and the mail server on your side refuses to accept ... legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp ...
    (Fedora)
  • Re: Mailing-lists behaviour on bounce
    ... > I recently have a problem with my primary mail server and some mails ... permanent 5xx error (resulting in a bounce) is handled. ... The mailing lists have archives available so that you can look for any ...
    (freebsd-questions)
  • Re: Speaking of this mailing list...
    ... > reason it prompted me to check my subscriptions. ... > surmise that it is not an actual bounce from my fj@panix.com ... Someone with appropriate access could check the Mailman logfiles and see what ... given the volume freebsd.org's mail server must deal with. ...
    (freebsd-questions)
  • Re: Email to Geoff.Graves@hp.com is rejected
    ... This code I got was not a bounce from a spam filter, ... Only one of my test e-mails bounced, the second one, so this indicates ... It may be just one mail server that has this problem, ... and to my office OpenVMS system, ...
    (comp.os.vms)