'look-up the domain and then full'

@frappe.whitelist()
def get_domain(self, email_id):

    try:
        domain = email_id.split(u'@')
        fields = [u'name    as    domain', u'use_imap', u'email_server', u'use_ssl', u'smtp_server', u'use_tls', u'smtp_port']
        return frappe.db.get_value(u'Email    Domain', domain[1], fields, as_dict=True)
    except Exception:
        pass
