Thanks to engineersmnky - I tried it without getting the config from the json and pasted the strings directly to the imap connection. I'm getting still the same error, so net/imap is incompatible with ractors.