Manual user activation

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

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:

$ 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.

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

Not at the moment but there is a feature request for that: As an admin, retain an escrow copy of users' private keys

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) and providing correct username (e-mail).

How we can debug this issue?

Dmitry

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

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.

@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:

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

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.

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