NextCloud won't talk to mail

Security needs to be set to “none” for both IMAP and SMTP, see Mail app in Nextcloud not working with NS8 mail server - #5 by mrmarkuz