Activation email isn't sent when using IP address for mailserver

(Hosein Naseri) #1

After installing a fresh discourse, activation email isn’t sent to me. I think I have put everything correctly. However for the DISCOURSE_SMTP_ADDRESS, instead of I have typed the ip address of the smtp provider. For some unknown reason I cant connect to them with their hostname and they have advised me to use their ip address.
when I telnet ip-address 587 everything works fine.
however in logs, I see this:

Sent mail to *** (1353.4ms)
Job exception: hostname "16*.**.***.***" does not match the server certificate

whats wrong?

(Mittineague) #2

Hi hnaseri welcome to the forum

I have to wonder if hostname means a host name and not a host IP

(Jeff Atwood) #3

IP address will not work on the public internet for that field.

(Matt Palmer) #4

You have an incredibly incompetent SMTP service provider. If they require you to connect to an IP address, they should have the IP address in the certificate they present. The idea that they don’t have a stable hostname for you to connect to, however, simply boggles the mind.