Could not send the test email. Error: stream_socket_client(): unable to connect to tcp://127.0.0.1:587 (Connection refused)

Hello,

I have successfully installed the Passbolt and I am having problem in adding users. There are no email receive for the verification.

I have read this thread

And I tried the reason no. 1 and this is the result:

Then I tried the reason no. 4 but I don’t know how to do it. Can someone help me with my problem with the email verification?

Here is the configuration in passbolt.php

Blockquote
return [
‘App’ => [
// A base URL to use for absolute links.
// The url where the passbolt instance will be reachable to your end users.
// This information is need to render images in emails for example
‘fullBaseUrl’ => ‘http://10.0.2.15’,
],

// Database configuration.
'Datasources' => [
    'default' => [
        'host' => '127.0.0.1',
        'port' => '3306',
        'username' => 'passboltadmin',
        'password' => '********',
        'database' => 'passboltdb',
    ],
],

// Email configuration.
'EmailTransport' => [
    'default' => [
        'host' => '127.0.0.1',
        'port' => 587,
        'username' => 'passbolt',
        'password' => '********',
        // Is this a secure connection? true if yes, null if no.
        'tls' => true,
        //'timeout' => 30,
        //'client' => null,
        //'url' => null,
    ],
],
'Email' => [
    'default' => [
        // Defines the default name and email of the sender of the emails.
        'from' => ['alexissanosa011@gmail.com' => 'Passbolt'],
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    ],
],
'passbolt' => [
    // GPG Configuration.
    // The keyring must to be owned and accessible by the webserver user.
    // Example: www-data user on Debian
    'gpg' => [
        // Main server key.
        'serverKey' => [
            // Server private key fingerprint.
            'fingerprint' => 'FCD6FF5FC29A04C9F61962FA0C8369FAF1EDA7D3',
            'public' => CONFIG . DS . 'gpg' . DS . 'serverkey.asc',
            'private' => CONFIG . DS . 'gpg' . DS . 'serverkey_private.asc',
        ],
    ],
    'registration' => [
        'public' => false,
    ],
    'ssl' => [
        'force' => false,
    ]

Blockquote

@sixela011 Yeah, the SMTP setup is to log into Gmail in your case, if you want the email to be sent from your Gmail account… The host value needs to be the address (or domain in this case) that Google has established. See IMAP, POP, and SMTP  |  IMAP for Gmail  |  Google Developers “protocol” section.

Search for other threads about Gmail SMTP as well.