# Manual user activation

**URL:** <https://community.passbolt.com/t/manual-user-activation/703>\
**Category:** Installation Issues\
**Created:** [May 23, 2018, 12:12pm UTC](https://community.passbolt.com/t/manual-user-activation/703 "2018-05-23T12:12:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkorzhevin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/dkorzhevin/32/208_2.png) [@dkorzhevin](https://community.passbolt.com/u/dkorzhevin)\
**Post date:** [May 23, 2018, 12:12pm UTC](https://community.passbolt.com/t/manual-user-activation/703/1 "2018-05-23T12:12:26Z")

</div>

Hello,

We are just updraded 2.x CE version to Pro and I wonder, if there is a way for manual user activation in case we don’t use mail sending software on servers, which hosts passbolt?

Current setup allows to start user recovery process, which claims to send e-mail to user, but we don’t have any smtp software on server.

OS - Debian, passbolt 2.0.8 Pro

Thank you

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [May 23, 2018, 12:38pm UTC](https://community.passbolt.com/t/manual-user-activation/703/2 "2018-05-23T12:38:01Z")

</div>

Hi @dkorzhevin!

You can manually create users from the command line. The process will output a single use link that you can provide to your users so they can complete the registration process.

Example:

```auto
$ su -c "./bin/cake passbolt register_user -u user@email -f first_name -l last_name -r role" -s /bin/bash www-data
     ______  ____  
    / __\____  _________ / /_ ____ / / /_ 
   / /_/ / __`/___ / ___/__ \/ __\/ /__ / 
  / ____/ /_/ (__ |__ ) /_/ / /_/ / / /    
 /_/ \ __,_/____ / ____/_.___ /\ ____/_/\__ /   

 Open source password manager for teams
---------------------------------------------------------------
User saved successfully.
To start registration follow the link in provided in your mailbox or here: 
https://passbolt.local/setup/install/8f1c097e-613c-409c-87a0-a1527b447e64/3b9eec53-5563-4b2f-94e9-b7dc24c2e69f

```

You might have to adapt the command to your needs depending on your web user that runs passbolt.  
If you don’t want to install a local smtp server a different approach would be to setup passbolt for using remote smtp servers like gmail to send passbolt emails.

---

<div class="post-metadata">

**Author:** ![dkorzhevin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/dkorzhevin/32/208_2.png) [@dkorzhevin](https://community.passbolt.com/u/dkorzhevin)\
**Post date:** [May 23, 2018, 12:45pm UTC](https://community.passbolt.com/t/manual-user-activation/703/3 "2018-05-23T12:45:50Z")

</div>

Thanks, for reply. What about command line recovery, in case user remembers his passphrase and have ask key backup ?

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [May 23, 2018, 12:48pm UTC](https://community.passbolt.com/t/manual-user-activation/703/4 "2018-05-23T12:48:00Z")

</div>

Not at the moment but there is a feature request for that: [As an admin, retain an escrow copy of users' private keys](https://community.passbolt.com/t/as-an-admin-retain-an-escrow-copy-of-users-private-keys/655)

---

<div class="post-metadata">

**Author:** ![dkorzhevin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/dkorzhevin/32/208_2.png) [@dkorzhevin](https://community.passbolt.com/u/dkorzhevin)\
**Post date:** [May 23, 2018, 2:34pm UTC](https://community.passbolt.com/t/manual-user-activation/703/5 "2018-05-23T14:34:08Z")

</div>

Thank you. We installed postfixm and are able to send e-mail from server (test check):

```
# su -s /bin/bash -c "./bin/cake passbolt send_test_email --recipient=xxxxxxxxxxx@protonmail.com" nginx

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

 Open source password manager for teams
---------------------------------------------------------------
 Debug email shell
---------------------------------------------------------------

Email configuration
---------------------------------------------------------------
Host: localhost
Port: 25
Username:
Password: *********
TLS: false

Sending email from: Passbolt <passbolt@passbolt.example.com>
Sending email to: xxxxxxxxxxx@protonmail.com
---------------------------------------------------------------

Trace
[220] passbolt.sekh ESMTP Postfix
> EHLO localhost
[250] passbolt.sekh
[250] PIPELINING
[250] SIZE 10240000
[250] VRFY
[250] ETRN
[250] ENHANCEDSTATUSCODES
[250] 8BITMIME
[250] DSN
> MAIL FROM:<passbolt@passbolt.example.com>
[250] 2.1.0 Ok
> RCPT TO:<xxxxxxxxxxx@protonmail.com>
[250] 2.1.5 Ok
> DATA
[354] End data with <CR><LF>.<CR><LF>
> From: Passbolt <passbolt@passbolt.example.com>
To: xxxxxxxxxxx@protonmail.com
Date: Wed, 23 May 2018 14:24:45 +0000
Message-ID: <7f15e13a2192464694e3849ec4d6d332@passbolt.sekh>
Subject: Passbolt test email
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Congratulations!
If you receive this email, it means that your passbolt smtp configuration is working fine.

.
[250] 2.0.0 Ok: queued as 0991E60026B2
> QUIT

The message has been successfully sent!

```

But, passbolt doesn’t send recovery e-mail, after clicking on link ([https://URL/users/recover](https://URL/users/recover)) and providing correct username (e-mail).

How we can debug this issue?

Dmitry

---

<div class="post-metadata">

**Author:** ![dkorzhevin](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/dkorzhevin/32/208_2.png) [@dkorzhevin](https://community.passbolt.com/u/dkorzhevin)\
**Post date:** [May 23, 2018, 2:41pm UTC](https://community.passbolt.com/t/manual-user-activation/703/6 "2018-05-23T14:41:45Z")

</div>

Ok, this was solved, after running cronjob tasks, all e-mail arrived. Suddenly, this was not documented properly ☹

---

<div class="post-metadata">

**Author:** ![joshleonhart](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@joshleonhart](https://community.passbolt.com/u/joshleonhart)\
**Post date:** [May 23, 2018, 9:24pm UTC](https://community.passbolt.com/t/manual-user-activation/703/7 "2018-05-23T21:24:36Z")

</div>

I’m seeing the same issue with Docker CE version. What do you mean by running cronjob tasks?

The test email is sent, but not one for user registration.

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [May 24, 2018, 6:33am UTC](https://community.passbolt.com/t/manual-user-activation/703/8 "2018-05-24T06:33:56Z")

</div>

@joshleonhart there is an issue with the documention that @diego needs to fix. There is a need for a cron job to send emails. Such as:

```auto
 * * * * * /var/www/passbolt_api/bin/cake EmailQueue.sender >> /var/log/passbolt.log

```

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [May 24, 2018, 7:21am UTC](https://community.passbolt.com/t/manual-user-activation/703/9 "2018-05-24T07:21:11Z")

</div>

Hi all!

@joshleonhart you could open a separate thread for your docker email problem with specific description on whats your problem. It is not necessary to modify the cron jobs in the docker image as it provides the correct updated paths for each version.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/bee7d3f9329f668000d46e9fcb2e5db1e9d31348.svg) [@system](https://community.passbolt.com/u/system)\
**Post date:** [May 29, 2018, 7:21am UTC](https://community.passbolt.com/t/manual-user-activation/703/10 "2018-05-29T07:21:15Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
