Add automatic resolving for imap, based on email domain and srv records.