I have an email server with public dns entry that sends and receives fine.
I am trying to add it to outlook as imap account but it keeps failing. Server error shows
Oct 30 15:29:04 mail.example.local dovecot: imap-login: Disconnected (auth failed, 1 attempts in 4 secs): user=<firstname.lastname@example.org>, method=PLAIN, rip=12.123.456.789, lip=126.96.36.199, session=<yjdfyjfkugih>
Oct 30 15:29:08 mail.example.local auth: pam_unix(dovecot:auth): check pass; user unknown
cat /etc/pam.d/dovecot #%PAM-1.0 auth required pam_nologin.so auth include password-auth account include password-auth session include password-auth auth required pam_unix.so nullok account required pam_unix.so
PAM authentication. Preferred nowadays by most systems.
PAM is typically used with either userdb passwd or userdb static.
REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
driver = pam
# [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
# [cache_key=<key>] [<service name>]
#args = dovecot