How to Connect ServiceNow to a Proxy Server for IMAP/SMTP Email SetupIssue When setting up IMAP/SMTP email accounts in on-premise instances, it's essential to first establish a connection between the proxy server and the email service endpoint (e.g., Microsoft Exchange, Azure,etc,.). Equally important—but often overlooked—is configuring the connection from the ServiceNow instance to the proxy server. Common Errors If Proxy Is Not Properly Configured: If the ServiceNow instance cannot reach the email service (e.g., Microsoft 365) due to missing proxy configuration, you may see the following error during outbound API calls:[ERROR CODE: -1] login.microsoftonline.comIf you attempt to initiate an OAuth connection without proxy settings in place, the following error may occur:OAuth flow failed. Verify the configurations and try again. Error detail: invalid null responseReleaseNAResolutionMany users are unaware that a successful connection between ServiceNow and a proxy server is crucial when integrating IMAP/SMTP email—especially in environments where outbound traffic is routed through a proxy. To establish this connection, refer to the official ServiceNow documentation:📄 ServiceNow Web Proxy Configuration Guide 🔑 Required System Properties Configure the following properties in the System Properties (sys_properties) table: Property NameDescriptionTypeglide.http.proxy_hostProxy server hostname or IP addressStringglide.http.proxy_portProxy server port numberStringglide.http.proxy_usernameUsername for proxy authenticationStringglide.http.proxy_passwordPassword for proxy authenticationString After setting these properties, validate the connection to ensure ServiceNow can successfully communicate through the proxy to external email endpoints.Note : Customers need to Coordinate with their network team to establish the connection between the proxy and the endpoint server.