Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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)
🥲

Posted

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.

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...