I am trying to gather some requirements for a project just starting up, and part of the request from marketing is to be able to track and maintain email bouncebacks via a custom admin screen. Currently we simply submit a simple email message to the sendmail server using JavaMail. To satisfy the request, we would need to be able to:
Treat bounced-back email messages differently based on the failure reason (mailbox full vs. invaid email address).
Identify different types of email messages we send in a more reliable manner than depending on the subject line (via some sort of custom ID we assign when sending).
Possibly configure the service to resend the email based on why it failed to deliver.
Manually resend the original (or send to an alternate address), requiring that the original email content be retained.
Somehow tie the email to a specific user in the system via some custom header info or the like, since an email address in our system need not be unique.
Anyone implemented one or more of these features using JavaMail and/or Apache James? Or perhaps integrated with a major third-party product which provides similar functionality and also allows for custom integration?
Yep, done all that with a J2EE/JavaMail client. We used Imail from Ipswitch as the mail server, but SMTP and POP3 being standards, it could have been any performant Windows mail server (not Exchange, though).