Re: How to detect Bounced Mails programatically.

From: Dennis Black (db_at_dbnospam.com)
Date: 03/04/05


Date: Fri, 04 Mar 2005 17:35:27 -0500

Rohan,

I assume you are either using POP3 or IMAP to check your inbox.
Unfortunately, POP3/IMAP comes into picture "after" message comes into
the INBOX and there is no reliable way to finding out if an email was an
NDR at that point. The only way is to parse for certain phrases like
"Failure", "Undeliverable", etc.

You need to work at SMTP level. When emails are sent from one server to
another SMTP is used and undeliverable messages don't have a sender in
the MAIL from command. Check the DevNull SMTP server at
http://aboutmydns.com

Follow the steps below to see what happens when an NDR is generated

1. Load DevNull SMTP (either applet or download the application)
2. Start the SMTP server on port 25
3. Send an email to your Exchange server with following values using Outlook

        To: invalidUser@yourcompany.com
        From: yourname@192.168.1.200 (This must be your IP address)

4. When Exchange gets an email for "invaliduser" it will generate an NDR
and send it to your machine since you put your IP address in the domain
name.

5. Check the SMTP log in DevNull. The MAIL FROM line will say:
        MAIL FROM:<>
        
        This is how an SMTP server figures out if the message is an NDR.

Hope this helps.

        

Rohan Reddy wrote:
> Hi,
> i am a VB programmer developing a newsletter kind of application.
> i am using winsock control for checking the mails in my mailbox.
> can any one let me know how to detect a bounced mail in my mailbox using?
> is there any special header for recognise the bounced mail?
>
> thanx in advance.
>
> Regards
> Rohan Reddy
>
>



Relevant Pages

  • Re: A flood of spams - another virus on the way?
    ... > If you are talking about HP.com's SMTP service, ... Yet another effect of Spam. ... by the time the SMTP server has gone into DATA mode to ... he'll most likely get the NO SUCH USER response. ...
    (comp.os.vms)
  • Re: Font in Inbox larger........
    ... SMTP server, and I don't recall what that server name is. ... Gary VanderMolen, MS-MVP (Mail) ... Norton Antivirus) I had AVG for a long time and decided to go back to Norton ...
    (microsoft.public.windows.vista.mail)
  • Re: Email programs that work.
    ... multiple accounts since one wouldn't want the same filters to apply to all ... All my home filters only apply to my home mail. ... simple SMTP interface so they can do away with the command line altogether. ... the fact that it passes through an SMTP server prior to the work ...
    (Debian-User)
  • Re: Outlook Access permission
    ... library in Windows 2000 and 2003 to create and send messages through an SMTP ... Sue Mosher, Outlook MVP ... >>functions to use an SMTP server. ... >>programming langauge on the computer. ...
    (microsoft.public.outlook.thirdpartyutil)
  • Re: Analysis of an MSN rejection.
    ... and suggest that the sender needs to use their own ISP's SMTP ... >> Mercury SMTP Server: ... > server which accepted the message for relay. ... > and IP addresses are irrelevant in this case; SBC Yahoo! ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)