simplifying domain and smtpserver detection