trudesk icon indicating copy to clipboard operation
trudesk copied to clipboard

Unable to connect Mailer and Mail Check

Open vaxo101 opened this issue 8 years ago • 6 comments

Is this a BUG REPORT or FEATURE REQUEST?:

  • [ X ] BUG
  • [ ] FEATURE

What happened: Email server was unable to connect What did you expect to happen: Email server to connect How to reproduce it (as minimally and precisely as possible): using a domain name with an email server hosted by (for example) godaddy which uses altn names like *.prod.iad2.secureserver.net

Anything else we need to know?: LOG

8/30 12:16:07 [9512] - warn: Error: Hostname/IP doesn't match certificate's altnames: "Host: mydomain.com.au. is not in the cert's altnames: DNS:*.prod.iad2.secureserver.net, DNS:prod.iad2.secureserver.net" at Object.checkServerIdentity (tls.js:223:17) at TLSSocket. (_tls_wrap.js:1111:29) at emitNone (events.js:106:13) at TLSSocket.emit (events.js:208:7) at TLSSocket._finishInit (_tls_wrap.js:639:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38) at Socket.ondata (internal/wrap_js_stream.js:53:22) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20)

Environment:

  • Trudesk Version: v1.0.0 (as defined in logs)
  • OS (e.g. from /etc/os-release): Ubuntu 16.04
  • Node.JS Version: v8.11.4
  • MongoDB Version: MongoDB shell version v3.6.7
  • Is this hosted on cloud.trudesk.io: no

vaxo101 avatar Aug 30 '18 12:08 vaxo101

I would need to see the certificate. According to the logs its not finding your domain inside the DNS entries for the certificate. If it doesn't find your domain inside the DNS entries it will mark the cert as invalid. This is not exclusive to the mailer used inside of Trudesk. Its rejecting the connection because "mydomain.com.au" does not fall into the two given DNS entries (*.prod.iad2.secureserver.net or prod.iad2.secureserver.net)

Can you also provide me with example mail settings you used to connect? Are you trying to connect to the mydomain.com.au domain or the prod.iad2.secureserver.net domain?

polonel avatar Aug 30 '18 17:08 polonel

Thanks for getting back to me, i am using the below details

Mail server: mydomain.com Port: 993 Username: [email protected]

Not overly sure what other info you require. If you need actual addresses, can i PM you these?

vaxo101 avatar Aug 31 '18 01:08 vaxo101

@polonel Any update?

vaxo101 avatar Sep 02 '18 08:09 vaxo101

@vaxo101 Apologize for the delay. I have yet to figure out what could cause this other than an SSL mismatch because the domain does not exist in the Subject Alt Names of the cert.

If you would like you could contact me privately at Gitter or email me at [email protected]

polonel avatar Sep 03 '18 03:09 polonel

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 13 '18 03:09 stale[bot]

After intense investigation and a major rewrite of the mail check module. I found no issues when connecting to a shared SSL cert site. I have set up multiple test sites on different providers (particularly GoDaddy).

I am closing this issue as I cannot reproduce. I also have not heard anything further so I will assume the issue you were having is resolved. I will reopen if need.

polonel avatar Sep 15 '18 18:09 polonel