SMTP relay server with MX records.
843830Sep 17 2006 — edited Sep 19 2006I am using javamail to send mail. I am configuring my SMTP server to relay my messages. My SMTP server having MX records. How to make my program to know about MX records of SMTP Relay server. I am not talking about MX records of receipient's domain. Is Javamail API has this flexbility to query the smtp relay host MX records and do try them for connection. If not is there any third pary java API is available? Can anyone help me out in this regard? Thanks in Advance. Plz post any possible way to identify the MX Record of SMTP relay and use of them. I need to use MX records to connect SMTP host, to sumit my mails for relaying to reciepients.