Checklist
I have read intro post: https://community.passbolt.com/t/about-the-installation-issues-category/12
I have read the tutorials, help and searched for similar issues
I provide relevant information about my server (component names and versions, etc.)
I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue
Since a while back I noticed that I do no longer receive gmail emails from my Passbolt server.
Getting exception:
php_network_getaddresses: getaddrinfo for smtp.gmail.com failed: Temporary failure in name resolution"
Any tips on how to verify what could be wrong? I did not change the app password or any gmail settings. Only been updating Passbolt docker image and restarting the docker compose.
I was more thinking about the port you are using to configure SMTP e.g., 467
I suspect that your container is unable to translate smtp.gmail.com into an IP address. Are you able to ping it?
ping smtp.gmail.com
After censoring any sensitive data, could you share the full output of:
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=YOUR_EMAIL -v" www-data
# Please replace YOUR_EMAIL with the right one
root@f4d2e92b77c5:/usr/share/php/passbolt# su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=*** -v" www-data
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
/ ____/ /_/ (__ |__ ) /_/ / /_/ / / /
/_/ \__,_/____/____/_.___/\____/_/\__/
Open source password manager for teams
-------------------------------------------------------------------------------
Debug email shell
-------------------------------------------------------------------------------
Email configuration
-------------------------------------------------------------------------------
Host: smtp.gmail.com
Port: 587
Username: ***
Password: *********
TLS: true
Sending email from: Passbolt <***>
Sending email to: ***
-------------------------------------------------------------------------------
Trace
Could not send the test email.
Error: php_network_getaddresses: getaddrinfo for smtp.gmail.com failed: Temporary failure in name resolution
Was unable to do the ping test inside the container, as ping is not an installed command on the image of Passbolt it seems.
From the host, I’m able to ping it.
> ping smtp.gmail.com
PING smtp.gmail.com (142.251.173.108) 56(84) bytes of data.
64 bytes from wi-in-f108.1e100.net (142.251.173.108): icmp_seq=1 ttl=57 time=18.2 ms
64 bytes from wi-in-f108.1e100.net (142.251.173.108): icmp_seq=2 ttl=57 time=19.1 ms
64 bytes from wi-in-f108.1e100.net (142.251.173.108): icmp_seq=3 ttl=57 time=14.5 ms
64 bytes from wi-in-f108.1e100.net (142.251.173.108): icmp_seq=4 ttl=57 time=14.6 ms
64 bytes from wi-in-f108.1e100.net (142.251.173.108): icmp_seq=5 ttl=57 time=16.0 ms