How to configure SMTP on CentOS7?

How to configure SMTP on CentOS7 once I completed the passbolt installation? Is possible this, or I should to install again?

Hi @rfernandez :wave: and welcome to Passbolt Community forum :handshake:

If you already installed passbolt on your CentOS7 server but made a mistake with SMTP configuration, you can open passbolt PHP configuration file /var/www/passbolt/config/passbolt.php and search for the EmailTransport section:

    'EmailTransport' => [
        'default' => [
            'host' => 'localhost',
            'port' => 587,
            'username' => null,
            'password' => null,
            // Is this a secure connection? true if yes, null if no.
            'tls' => null,
            //'timeout' => 30,
            //'client' => null,
            //'url' => null,

Once done, you can check your SMTP configuration is working by executing the email test command from the /var/www/passbolt directory:

sudo -H -u nginx bash -c "./bin/cake passbolt send_test_email"


Thank you very much _jc for your answer.

You’re welcome :slight_smile: By the way, if you are interested, RPM package for CentOS 7 is coming soon.

1 Like