ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.74k stars 619 forks source link

Error Connecting OnlyOffice to MailServer - Unable to Retrieve Hostname #486

Open lundaoke opened 11 months ago

lundaoke commented 11 months ago

Hello,

I've encountered an issue while trying to connect OnlyOffice to a MailServer. The connection process fails with an error indicating that the hostname cannot be retrieved. Below are the details of the error log:

log: 2023-11-23 07:25:03,016 ERROR [128] localhost - ASC.Api.Mail - Error: Unable to retrieve hostname System.Exception: Error: Unable to retrieve hostname at ASC.Api.Mail.MailApi.GetHostname(String connectionString, String ip) at ASC.Api.Mail.MailApi.ConnectMailServer(String ip, String sqlip, String database, String user, String password)

This issue occurs when attempting to establish a connection between OnlyOffice and our MailServer. The error seems to originate from within the ASC.Api.Mail component. It specifically fails at retrieving the hostname, as indicated in the error message. Attempts to Resolve:

I have checked the network settings and DNS configurations, but everything seems to be in order. The MailServer settings have been verified and are correctly configured. Request:

Any insights or suggestions on what might be causing this issue would be greatly appreciated. Is there a specific configuration or setup step that I might be missing? Thank you for your assistance.

Carazyda commented 11 months ago

Hello @lundaoke Please describe in more detail where you are getting this error, in the portal settings or in the Mail module? What type of installation are you using? Are you trying to connect Onlyoffice MailServer?