Hi, I have changed smarthost for emails and need to update the settings. How to do that?
Community edition, didn’t see anything on the administration page.
Hi @ncastle530 Welcome to the forum!
Can you clarify: are you trying to change which SMTP service the app uses for email notifications or are you trying to change the email address of your user account?
For user accounts, see: As a logged in user I should be able to change my email address - it is not a feature yet. Creating a new user would be needed.
Hi,
Trying to change SMTP settings. I originally set up one smarthost for sending emails, now we have a different smarthost service.
Hi @ncastle530,
Please read Passbolt Help | Configure email providers
The passbolt.php config file will be under /etc/passbolt/passbolt.php or /var/www/passbolt/config/passbolt.php depending how you installed passbolt.
Thanks! That did it.
I made the changes to the file, but could not get it to work. It is no longer sending out emails. I switched it back to the original settings (that service is still active) and still not sending emails.
Is there something else that needs to be done?
Damn, now the site is down. “HTTP ERROR 500”
Rebooted a couple of times
@ncastle530 please provide more information such as the content of the error log file (in /var/log/passbolt/error.log
) and config files, so that we can help you understand what the issue is. 500 errors means internal application error, so there could be an issue with the php config file after your changes, that makes the application crash.
Hi remy,
Attached are the passbolt config and error.log
(Attachment error.log is missing)
(Attachment passbolt.php is missing)
Contents of passbolt.php:
<?php
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 2.0.0
*/
/**
* PASSBOLT CONFIGURATION FILE
*
* This is a generated configuration file, which was generated by the passbolt web installer.
*
* To see all available options, you can refer to the default.php file, or replace this file
* by a copy of passbolt.default.php
* Do not modify default.php or you may break your upgrade process.
*
* Read more about how to install passbolt: https://www.passbolt.com/help/tech/install
* Any issue, check out our FAQ: https://www.passbolt.com/faq
* An installation issue? Ask for help to the community: https://community.passbolt.com/
*/
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' => '****************',
],
// Database configuration.
'Datasources' => [
'default' => [
'host' => 'localhost',
'port' => '3306',
'username' => '****************',
'password' => '****************',
'database' => '****************',
],
],
// Email configuration.
'EmailTransport' => [
'default' => [
'host' => '****************',
'port' => 25,
'username' => '****************',
'password' => '****************',
// Is this a secure connection? true if yes, null if no.
'tls' => null,
//'timeout' => 30,
//'client' => null,
//'url' => null,
],
],
'Email' => [
'default' => [
// Defines the default name and email of the sender of the emails.
'from' => ['****************' => 'Passbolt Administrator'],
//'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' => '****************',
'public' => CONFIG . DS . 'gpg' . DS . 'serverkey.asc',
'private' => CONFIG . DS . 'gpg' . DS . 'serverkey_private.asc',
],
],
'registration' => [
'public' => false,
],
'ssl' => [
'force' => true,
]
],
];
Contents of error.log:
2022-02-25 08:14:15 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 08:14:42 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 08:14:53 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 08:39:58 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/.env" could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /.env
Client IP: ****************
2022-02-25 08:44:42 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 08:45:38 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 13:06:14 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/.git/config" could not be found. in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Routing/RouteCollection.php on line 199
Request URL: /.git/config
Client IP: ****************
2022-02-25 14:06:26 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
2022-02-25 16:07:25 Error: [Authentication\Authenticator\UnauthenticatedException] Authentication is required to continue in /usr/share/php/passbolt/vendor/cakephp/authentication/src/Controller/Component/AuthenticationComponent.php on line 177
Request URL: /auth/is-authenticated.json
Client IP: ****************
Typically SMTP with credentials goes to port 587, and I notice you configured it to port 25.
Please share what installation process you followed. There will need to be a CRON job running - this is installed automatically with package installation.
There is no 500 error in the logs and php file looks correct. I’m not sure if this error is coming from the passbolt app. Can you put a screenshot / full response? Do you have anything else installed next to passbolt on the same server?
What file would you like a screenshot of?
Just passbolt on a Ras Pi 3.
Hi @ncastle530 ,
Do you still have the 500 error ? If yes, you should see an error logged in your /var/log/nginx/ error files.
How did you setup passbolt on your raspberry ? from source ? from Debian package ? Which passbolt version are you running ?
Can you post here the full output of the healthcheck command ?
sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck" www-data
Cheers,
Hello,
Yes, still getting a 500 error.
I used the Debian install on the Pi. We’re on the recent stable version, updated two months ago.
Here is the result of the health check:
/bin/bash -c “/usr/share/php/passbolt/bin/cake passbolt healthcheck” www-data
PHP Parse error: syntax error, unexpected ‘.43’ (T_DNUMBER), expecting ‘]’ in /etc/passbolt/passbolt.php on line 75
Missing a “]” somewhere?
Finally found it! A syntax error in passbolt.php.
When I modified “'client => IP Address” i neglected to include “’” like ‘IP address’ .
Learn something new everyday!
Thanks for all your help.
Great, so no more 500 errors ? Is email working through your new smarthost ?
Cheers,
Yes, no more 500 error. I’m still having a problem sending emails but I’ll have to work with our smarthost to figure that one out.
Can you post the healthcheck command output ? We also have this documentation page to troubleshoot email part of passbolt.
Best,
Yes, here it is:
Command Shell
/bin/bash -c “/usr/share/php/passbolt/bin/cake passbolt healthcheck” www-data
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///./_//__/
Open source password manager for teams
Healthcheck shell…
Environment
[PASS] PHP version 7.3.31-1~deb10u1.
[PASS] PCRE compiled with unicode support.
[PASS] The temporary directory and its content are writable and not executable.
[PASS] The logs directory and its content are writable.
[PASS] GD or Imagick extension is installed.
[PASS] Intl extension is installed.
[PASS] Mbstring extension is installed.
Config files
[PASS] The application config file is present
[PASS] The passbolt config file is present
Core config
[PASS] Debug mode is off.
[PASS] Cache is working.
[PASS] Unique value set for security.salt
[PASS] Full base url is set to https://bolt.gp-mfg.com
[PASS] App.fullBaseUrl validation OK.
[PASS] /healthcheck/status is reachable.
SSL Certificate
[PASS] SSL peer certificate validates
[PASS] Hostname is matching in SSL certificate.
[PASS] Not using a self-signed certificate
Database
[PASS] The application is able to connect to the database
[PASS] 26 tables found
[PASS] Some default content is present
[PASS] The database schema up to date.
GPG Configuration
[PASS] PHP GPG Module is installed and loaded.
[PASS] The environment variable GNUPGHOME is set to /var/lib/passbolt/.gnupg.
[PASS] The directory /var/lib/passbolt/.gnupg containing the keyring is writable by the webserver user.
[PASS] The server OpenPGP key is not the default one
[PASS] The public key file is defined in config/passbolt.php and readable.
[PASS] The private key file is defined in config/passbolt.php and readable.
[PASS] The server key fingerprint matches the one defined in config/passbolt.php.
[PASS] The server public key defined in the config/passbolt.php (or environment variables) is in the keyring.
[PASS] There is a valid email id defined for the server key.
[PASS] The public key can be used to encrypt a message.
[PASS] The private key can be used to sign a message.
[PASS] The public and private keys can be used to encrypt and sign a message.
[PASS] The private key can be used to decrypt a message.
[PASS] The private key can be used to decrypt and verify a message.
[PASS] The public key can be used to verify a signature.
[PASS] The server public key format is Gopengpg compatible.
[PASS] The server private key format is Gopengpg compatible.
Application configuration
[PASS] Using latest passbolt version (3.5.0).
[PASS] Passbolt is configured to force SSL use.
[PASS] App.fullBaseUrl is set to HTTPS.
[PASS] Selenium API endpoints are disabled.
[PASS] Search engine robots are told not to index content.
[PASS] Registration is closed, only administrators can add users.
[PASS] Serving the compiled version of the javascript app
[PASS] All email notifications will be sent.
JWT Authentication
[PASS] The JWT Authentication plugin is enabled
[PASS] The /etc/passbolt/jwt/ directory is not writable.
[PASS] A valid JWT key pair was found
[PASS] No error found. Nice one sparky!