title: How to programmatically look up email server information
body: <p>If a user supplies an email, let's say something like hello.world@example.com, is there a public database where I can programmatically lookup the connection information for their Mail server (my service would let the user supply an email which then would allow my software to send automated emails from it.) </p>
  
  <p>How can I find out if their server is pop3, Imap or smtp programatically. What about the port and security protocol  (tls or ssl)? </p>
  
  <p>How can I find out if the mail server is a different domain then the email's suffix. (I.e. the user is using shared hosting.)</p>
  
  <p>Are there only paid options for this service?</p>
  
  <p>Note: it is preferred that the solution be in PHP, or even better, a http REST service.</p>