# Setup account on multiple machines

**URL:** <https://community.passbolt.com/t/setup-account-on-multiple-machines/10750>\
**Category:** Installation Issues\
**Created:** [September 8, 2024, 7:36pm UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750 "2024-09-08T19:36:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 8, 2024, 7:36pm UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/1 "2024-09-08T19:36:24Z")

</div>

**Checklist**  
[X] I have read intro post  
[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.)  
 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

Hello,  
I am running a self-hosted instance of Passbolt CE using the latest docker image. Went successfully through the process and there are no issues when executing the healtcheck.

My troubles are when trying to set up my already configured Passbolt account on my second laptop.  
I provide the account’s email address on the landing page, but no email is coming to the mailbox.  
The email functionality, nevertheless, is certainly working.  
Browsing the forum I stumbled upon [this](https://community.passbolt.com/t/accessing-passbolt-from-multiple-pcs/430) (rather old) thread saying I shall use the recovery process for setting up the account on the second machine.  
So far so good, but following the [instructions](https://www.passbolt.com/docs/user/quickstart/browser/setup-on-another-machine/), I am still required to provide the mail address at the recovery url _\<mypassbolt.address\>/recover_, after which no email is coming in.  
I tried explicitly setting the PASSBOLT\_PLUGINS\_ACCOUNT\_RECOVERY\_ENABLED to true, but still no luck.  
No clue or option for configuring recover on the administration section of the system either.

What do I miss?  
Am I hitting a limitation of the CE version not allowing use of same account on multiple machines?

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 8, 2024, 8:15pm UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/2 "2024-09-08T20:15:08Z")

</div>

Well, [this](https://community.passbolt.com/t/recover-account-on-a-network-without-email/1394) worked well and I was able to pass the account verification step and use recovery for setting up the browser on the second machine…  
Though much easier had the email been sent as expected 🙄

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [September 9, 2024, 5:24am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/3 "2024-09-09T05:24:00Z")

</div>

Hello @ananchev, welcome to the community 🙂

Configuring the browser extension on multiple device is classic and is not limited by any plugins at all.

> [@ananchev](#):
>
> I tried explicitly setting the PASSBOLT\_PLUGINS\_ACCOUNT\_RECOVERY\_ENABLED to true, but still no luck.

This is not the right environment variable as it is dedicated for the [account recovery feature](https://www.passbolt.com/docs/admin/authentication/account-recovery/) which is not included in the community edition.

About the workaround you’ve found, this is definitely not what we would recommend since there is a dedicated CLI command that has been introduced since then. You can use this command instead from the passbolt container itself.

```bash
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt recover_user -c -u YOUR_EMAIL" www-data

```

Regarding the issues you are encountering, this looks like a misconfigured SMTP. Please, could you share the output of this command?

```bash
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt show_queued_emails --failed" www-data

```

You can censor the email address and learn more about this command [here](https://www.passbolt.com/docs/hosting/troubleshooting/email/#listing-email-queue-entries)

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 9, 2024, 9:21am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/4 "2024-09-09T09:21:06Z")

</div>

Thanks a ton Antony for the rapid reaction!

> [@antony](#):
>
> dedicated CLI command that has been introduced since then. You can use this command instead from the passbolt container itself.  
> `su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt recover_user -c -u YOUR_EMAIL" www-data`

This worked a charm and way faster than falling back to querying the DB. Thank you 🍻

> [@antony](#):
>
> Regarding the issues you are encountering, this looks like a misconfigured SMTP. Please, could you share the output of this command?

Here what I get:

 ![2024-09-09 11_11_07 putty](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/b01adf6b1b4aac641fb52081c0d82cce7c5a518b.png)  
Looking at the timestamps and subjects these are mails from earlier when likely I had not yet configured the emailing.  
I did later and mails worked.

For emailing I did the free Google email service with app password. I checked the limits for it and certainly I am well beyond, but maybe another peculiarity with gmail?

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [September 9, 2024, 12:13pm UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/5 "2024-09-09T12:13:05Z")

</div>

Based on the output it looks like the other emails didn’t failed or may not have been sent.

I am interested to see the output of:

```auto
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt show_queued_emails" www-data

```

and

```bash
ls -ail /etc/cron.d/passbolt-ce-server && service cron status

```

Finally, I’d like to see the output of:

```auto
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=YOUR_EMAIl" www-data

```

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 10, 2024, 8:21am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/6 "2024-09-10T08:21:39Z")

</div>

Here they are 🙂  
Posting only one screenshot allowed for me, so the output of the other commands is in a code block.

1. 

```auto
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt show_queued_emails" www-data

```

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/c/c91814b53ec5a0a4105fb2c23c26633c006efd97.png)

1. 

```auto
ls -ail /etc/cron.d/passbolt-ce-server && service cron status

```

```auto
root@4a92ef2d58d9:/usr/share/php/passbolt# ls -ail /etc/cron.d/passbolt-ce-server && service cron status
1227927 -rw-r--r--. 1 root root 428 Aug 14 10:30 /etc/cron.d/passbolt-ce-server
cron is running.
root@4a92ef2d58d9:/usr/share/php/passbolt#

```

1. 

```auto
su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=YOUR_EMAIl" www-data

```

```auto
root@4a92ef2d58d9:/usr/share/php/passbolt# su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=myvalidemail@was.here" www-data

     ______  ____
    / __\____  _________ / /_ ____ / / /_
   / /_/ / __`/___ / ___/__ \/ __\/ /__ /
  / ____/ /_/ (__ |__ ) /_/ / /_/ / / /
 /_/ \ __,_/____ / ____/_.___ /\ ____/_/\__ /

 Open source password manager for teams
-------------------------------------------------------------------------------
 Debug email shell
-------------------------------------------------------------------------------
App\Utility\OpenPGP\Backends\Gnupg::setDecryptKeyFromFingerprint(): Argument #1 ($fingerprint) must be of type string, null given, called in /usr/share/php/passbolt/plugins/PassboltCe/SmtpSettings/src/Service/SmtpSettingsGetSettingsInDbService.php on line 109
root@4a92ef2d58d9:/usr/share/php/passbolt#

```

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 10, 2024, 8:28am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/7 "2024-09-10T08:28:48Z")

</div>

I see the test email command failing, but actually when triggering this via the admin section in the UI, it is coming as expected

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/1/14338d82f7ca60b2e50a4ffb398c5431afaf078d.png)

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [September 10, 2024, 8:47am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/8 "2024-09-10T08:47:51Z")

</div>

It looks like there might be an issues with the key fingerprint.

You can display the key(s) fingerprint with this command:

```auto
su -s /bin/bash -c "gpg --list-keys" www-data

```

And then add the `PASSBOLT_GPG_SERVER_KEY_FINGERPRINT` environent variable with the matching fingerprint in the `docker-compose-ce.yaml` file?

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 10, 2024, 10:38am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/9 "2024-09-10T10:38:28Z")

</div>

Small steps… 😉

Setting the PASSBOLT\_GPG\_SERVER\_KEY\_FINGERPRINT environment variable worked out and now the test email via command line goes through successfully too.

Nevertheless, the root issue of not receiving the ‘recovery confirmation’ email when triggering account recovery using https://my\_passbolt\_url/recover was still not solved.

I do see the recovery token using the command you provided earlier and hence I am not blocked, but still something does not function just right.

Cheers,  
Anton

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [September 10, 2024, 10:56am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/10 "2024-09-10T10:56:08Z")

</div>

That’s nice to hear 😉

I have another idea regarding the recovery emails. We’ve seen similar issues in the past where these kinds of emails “Your account recovery, $name” are flagged as potential spam due to the subject of the email.

Have you check the email spam folder or anywhere else it could have been automatically moved?

If not, then I would recommend sharing a screenshot of the email notifications settings, especially the recovery part from _Administration \> Email Notifications_

---

<div class="post-metadata">

**Author:** ![ananchev](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/ananchev/32/4397_2.png) [@ananchev](https://community.passbolt.com/u/ananchev)\
**Post date:** [September 11, 2024, 9:49pm UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/11 "2024-09-11T21:49:12Z")

</div>

I finally figured it out, thank you again Antony!

What happened was indeed the emails were filtered out, though not landing in the junk but elsewhere.  
Reason was I used Gmail’s SMTP, but sent from custom domain - a ‘trick’, that had resulted into [unverified emails](https://community.cloudflare.com/t/reply-from-a-custom-address-email/455857/7) ultimately being blocked… 😒  
No free lunch as they say, but some fair learning on the other hand.

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [September 12, 2024, 5:44am UTC](https://community.passbolt.com/t/setup-account-on-multiple-machines/10750/12 "2024-09-12T05:44:39Z")

</div>

Glad to hear that it was indeed the issues. We live and we learn I agree 😉

Best regards
