Passbolt is not sending email

Checklist
[x] I have read intro post: About the Installation Issues category
[x] I have read the tutorials, help and searched for similar issues
[x] I provide relevant information about my server (component names and versions, etc.)
[x] I provide a copy of my logs and healthcheck
[x] I describe the steps I have taken to trouble shoot the problem
[x] I describe the steps on how to reproduce the issue

Hi TEAM,

Here is the Error message :

Email configuration
---------------------------------------------------------------
Host: smtp-relay.gmail.fr
Port: 587
Username: 
Password: *********
TLS: true

Sending email from: Passbolt <adminsys@toto-viag.com>
Sending email to: vigow@ayvo.fr
---------------------------------------------------------------

Trace

A test email could not be sent.
Error: php_network_getaddresses: getaddrinfo failed: Name or service not known

My Conf :

// Email configuration.
‘EmailTransport’ => [
‘default’ => [
‘host’ => ‘smtp-relay.gmail.fr’,
‘port’ => 587,
‘username’ => ‘’,
‘password’ => ‘’,
// Is this a secure connection? true if yes, null if no.
‘tls’ => true,
‘timeout’ => 300,
‘client’ => null,
‘url’ => null,
],
],
‘Email’ => [
‘default’ => [
// Defines the default name and email of the sender of the emails.
‘from’ => [‘adminsys@toto-viag.com’ => ‘Passbolt’],
//‘charset’ => ‘utf-8’,
//‘headerCharset’ => ‘utf-8’,

error.log

2018-05-29 08:00:25 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/myadmin/index.php" could not be found.
Request URL: /myadmin/index.php
2018-05-29 08:00:26 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/myadmin2/index.php" could not be found.
Request URL: /myadmin2/index.php
2018-05-29 08:00:26 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/xampp/phpmyadmin/index.php" could not be found.
Request URL: /xampp/phpmyadmin/index.php
2018-05-29 08:00:27 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpMyadmin_bak/index.php" could not be found.
Request URL: /phpMyadmin_bak/index.php
2018-05-29 08:00:28 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/www/phpMyAdmin/index.php" could not be found.
Request URL: /www/phpMyAdmin/index.php
2018-05-29 08:00:28 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/tools/phpMyAdmin/index.php" could not be found.
Request URL: /tools/phpMyAdmin/index.php
2018-05-29 08:00:29 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpmyadmin-old/index.php" could not be found.
Request URL: /phpmyadmin-old/index.php
2018-05-29 08:00:29 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpMyAdminold/index.php" could not be found.
Request URL: /phpMyAdminold/index.php
2018-05-29 08:00:30 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpMyAdmin.old/index.php" could not be found.
Request URL: /phpMyAdmin.old/index.php
2018-05-29 08:00:31 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/pma-old/index.php" could not be found.
Request URL: /pma-old/index.php
2018-05-29 08:00:31 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/claroline/phpMyAdmin/index.php" could not be found.
Request URL: /claroline/phpMyAdmin/index.php
2018-05-29 08:00:32 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/typo3/phpmyadmin/index.php" could not be found.
Request URL: /typo3/phpmyadmin/index.php
2018-05-29 08:00:32 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpma/index.php" could not be found.
Request URL: /phpma/index.php
2018-05-29 08:00:33 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpmyadmin/phpmyadmin/index.php" could not be found.
Request URL: /phpmyadmin/phpmyadmin/index.php
2018-05-29 08:00:34 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/phpMyAdmin/phpMyAdmin/index.php" could not be found.
Request URL: /phpMyAdmin/phpMyAdmin/index.php

cli-debug.log

2018-05-28 09:54:40 Notice: Notice (8): Trying to get property of non-object in [/var/www/passbolt/src/Template/Email/html/AN/user_register_self.ctp, line 22]

I can’t understand from where the problem is coming .

Could you please show me a way to search ?

Thanks

regards,

You seem to have multiple problems:

Error: php_network_getaddresses: getaddrinfo failed: Name or service not known

This means your smtp server domain name is not reachable by the server. Maybe there is a firewall rule preventing this. Maybe it’s something else like DNS configuration, hard to know.

2018-05-29 08:00:25 Error: [Cake\Routing\Exception\MissingRouteException] A route matching “/myadmin/index.php” could not be found.

You seems to have a lot of other things installed on your server like phpmyadmin and the application routes are getting mixed up. You should double check your webserver configuration. On a side note, it’s not a good idea to run passbolt alongside other applications, you should probably use a dedicated server for this.

Hi Remy,

Ok , strange, this is a dedicated server, with fresh Debian 9 install from 3 days ago.

Here is the things installed :

apache2 exim4 networking rsync
apache-htcacheclean hwclock.sh procps ssh
cron mysql rng-tools

No iptables / Firewall rules.

I followed the DEBIAN 9 Passbolt CE tutorial , nothing more , except Migrate Tutorial to use old v.1.6.9 Passbolt install from a DEBIAN 8 .

Check the DNS, could be that the host is not reachable from this machine.

Wow ! that’s right ! i wrote wrong the smtp relay address ! :dizzy_face:

Please Forgive my weakness !

Ok for the mail test…

Just need to understand the

Cake\Routing\Exception

Now …

And check if the email alert works on prod …

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.