self-service-password icon indicating copy to clipboard operation
self-service-password copied to clipboard

message: send_mail: SMTP connect() failed.

Open haodongz opened this issue 3 years ago • 6 comments

image

image

image image image Hello, I failed to retrieve the password email, and I put the screenshot in the attachment. Take a hard look

haodongz avatar Dec 22 '21 07:12 haodongz

Error tells about SMTP connection failing. Checking with openssl s_client -connect smtp.exmail.qq.com:465, connection is properly established, certificate is valid. From the server running self-service-password, can you connect to that SMTP?

If not, it may be some firewall blocking that traffic. Otherwise, could be worth changing your configuration, setting smtp_debug = true, see what we can find in the logs then ...

Is this running from a Docker container? If not: installed from RPM, deb, or git directly? Which version are you running?

faust64 avatar Dec 22 '21 16:12 faust64

image docker mage: tiredofit/self-service-password:5.1.2 image image

haodongz avatar Dec 23 '21 02:12 haodongz

Ths getaddrinfo error suggests that PHP can't resolve the IP address for this DNS name. Check the DNS resolver configuration in your container (/etc/resolv.conf).

faust64 avatar Dec 23 '21 09:12 faust64

image

haodongz avatar Dec 23 '21 09:12 haodongz

Is this your container? 100.100 addresses are part of the 100.64.0.0/10 range, which is private. Can you resolve smtp.exmail.qq.com?

faust64 avatar Dec 23 '21 14:12 faust64

Thank you so much

haodongz avatar Dec 24 '21 09:12 haodongz