MuleSoft · Email Connector
EMAIL:UNKNOWN_HOST
Short answer
EMAIL:UNKNOWN_HOST means the IP address of the mail host cannot be determined, or the port is out of range. Fix the host name or port in the connection configuration.
VerifiedLast verified
01Error text
Error type: EMAIL:UNKNOWN_HOST02Likely causes
- The IP address of a host cannot be determined or a port is out of range.
03How to fix it
- Check the host value for typos and confirm it resolves from where the Mule app runs.
- Check that the port is a valid port number.
- Turn on connector logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extension.email" level="DEBUG" />. - For protocol detail, add
<email:property key="mail.debug" value="true" />to the IMAP or SMTP connection element. - Handle the failure with an error handler of type
EMAIL:UNKNOWN_HOST.
04Official documentation
→Related errors
- EMAIL:CONNECTIVITYEMAIL:CONNECTIVITY means a connection to the mail server could not be established. Check the host, port and TLS settings on the connection, then read the JavaMail debug output.
- EMAIL:CONNECTION_TIMEOUTEMAIL:CONNECTION_TIMEOUT means the mail server took too long to reply to a data request. Check the server and network before raising timeouts on the connection.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer