Using a nameserver lookup of MX records, I can find the destination domain name/IP for sending messages via SMTP.
But this is a little trickier... how do I go about resolving the domain name/IP for a POP3 or IMAP4 server of a given domain name/email account?