Look up MX record for /publickeys

Also fixes a bug in smtpLookUp.