mricardi Posted 15 hours ago Posted 15 hours ago Hi guys, how are you? I've been having issues with email sending I've been running local tests on my app, including email sending To configure my SMTP connection, I retrieved the details from: Mail -> Configure Email Clients -> Manual Setup user: [Filtered] password: [Filtered] host: covireus-api.helioho.st ssl: true port: 465 I ran my first email sending test and found this error: Connection encountered an error (Hostname/IP does not match certificate's altnames: Host: covireus-api.helioho.st. is not in the cert's altnames: DNS:morty.heliohost.org) To fix this, I replaced the host with: Host: morty.heliohost.org With that change, everything worked perfectly for my local tests the next stepw as to upload everything to the server (covireus-api.helioho.st) and run tests directly from there After the first test on the server, I found this error: Connection encountered an error (connect EHOSTUNREACH 66.220.18.186:465) I’m not sure why it's resolving to 66.220.18.186. As far as I understand, morty ip should be 65.19.154.94 do you have any idea what might be happening guys? Quote
wolstech Posted 14 hours ago Posted 14 hours ago Try using localhost for the mail hostname when code is running on the server. The .186 is an old IP (may have been the one used to configure the server base image when we made it). I'll bet it was left in a host file or something. Quote
mricardi Posted 14 hours ago Author Posted 14 hours ago Hi @wolstech I tried but in this case the error is: connection encountered an error (Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames: DNS:morty.heliohost.org) 🥲 Quote
wolstech Posted 5 hours ago Posted 5 hours ago Try port 25 with no encryption. SSL isn't really required for a connection to localhost since it never leaves the server. I'm going to have Krydos a look at this anyway, because I am not sure where the other IP is coming from. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.