Added key config. Mail model not able of getting imap option from config.