Email configuration file

Hi,

I need to change the SMTP auth password, unfortunately i forgot the passphrase and couldn’t login using GUI. please help with the file location to edit using CLI. Also how do i upgrade to latest version?

Thanks,

Sridhar

Hello @chvgms,
When you say “Unfortunately i forgot the passphrase and couldn’t login using GUI” do you mean that you also lost your user account passphrase or you can’t recover your account due to the SMTP issues?

What I’d recommend would be to help you get access to your account, by initiating an account recovery:

  • sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt recover_user -c -u YOUR_EMAIL" www-data
    • If you are on a RPM distribution, please replace www-data with nginx
    • If you are on Docker, from your host you can run docker compose -f docker-compose-ce.yaml exec -ti passbolt su -s /bin/bash -c "./bin/cake passbolt recover_user -c -u YOUR_EMAIL" www-data
      • Replace YOUR_EMAIL with your own email

After that, you can navigate to Organisation Settings > Email server and update the settings from there. There is another workaround which is iterating on your environment variable if you were using it or iterate on the database itself to remove the smtpSettings to use environment variables but there is too much assumptions in my opinion and what I shared is straight forward. If you did lose your user’s account password you can replace ./bin/cake passbolt recover_user with ./bin/cake passbolt register_user -i" and create a new account.

At this point, if you are in this scenario, I believe the main problem is not the smtpSettings but to gain access back to the UI, hope that helps

Hi Antony,

Thanks for the response. yes, i am unable to recover as SMTP auth pwd has changed. I am running passbolt on Ubuntu. i tried to edit passbolt.php located in /etc/passbolt/ but couldnt find the SMTP config. please help.