The screenshots below illustrate how to edit/update/repair an existing IMAP email account to ensure the settings are correct.
Home » Email Setup » iOS 12.x: Mail.app
Email Settings
iOS 12.x: Mail.app
Download a PDF with screenshots showing the email settings: Mail-iOS.pdf.