I found the way to redirect my bounced emails using my own smtp server. Now, as per the requirement, I should be able to read the bounced emails using my program, like reason for bouncing, receiver’s email address, email content and etc. Stackoverflow suggested that dsn.jar might be helpful. I saw it has some methods. But I don’t find any