TEST
Diagnose the connection before saving it
The setup flow distinguishes DNS lookup, network connection, TLS, and authentication failures instead of clearing the form. Host, port, secure mode, username, and server response details stay visible so administrators can correct the exact problem.
- SMTP and IMAP tested independently
- Same-credentials shortcut
- TLS and port guidance
- Form values retained after errors