k8s-at-home / charts

⚠️ Deprecated : Helm charts for applications you run at home
https://docs.k8s-at-home.com
Apache License 2.0
1.45k stars 623 forks source link

[Bookstack] smtp.gmail.com unable to resolve as email host #1708

Closed mike12806 closed 2 years ago

mike12806 commented 2 years ago

Helm chart name

Bookstack

Helm chart version

5.0.0.0

Container name

ghcr.io/linuxserver/bookstack:version-v21.12

Container tag

v21.12

Description

When trying to send a test email, I get the following error:

Error thrown when sending a test email: Connection could not be established with host smtp.gmail.com :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve

Expected result

After seeing the following variables (below) and deploying this helm chart, I would expect Bookstack to be able to resolve the email host smtp.gmail.com

Helm values to reproduce

  MAIL_DRIVER: smtp
  MAIL_HOST: smtp.gmail.com
  MAIL_PORT: 587
  MAIL_ENCRYPTION: tls
  MAIL_USERNAME: [REDACTED]
  MAIL_PASSWORD: [REDACTED]
  MAIL_FROM: [REDACTED]
  MAIL_FROM_NAME: BookStack

Additional Information

Running inside a K3s cluster w/ Rancher. Both Bookstack and MariaDB are using LoadBalancerIP address.

Repo link

No response

mike12806 commented 2 years ago

I exec'ed into the pod and I can resolve 'smtp.gmail.com' with an NSLOOKUP, however when I try to ping it, I get:

root@bookstack-64b5c976cf-8fg6p:/# ping smtp.gmail.com
ping: bad address 'smtp.gmail.com'

Note, I'm able to ping to the internet from other pods

ghost commented 2 years ago

:wave: @mike12806, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help.

bjw-s commented 2 years ago

As a hint for further troubleshooting, there are known issues with Alpine based images and DNS resolution, especially with the default ndots settings.

mike12806 commented 2 years ago

Thanks @bjw-s !