Invitation Email Are Not Being Sent

Hi,

I installed passbolt and configure a couple of users and everything works fine. However, after a month I want to add another users, so I set the users in the admin page, but the invention email are seems that are not being sent. The notification emails (such as add new password) and the test email are working fine. It seems only the invention emails are not being sent.

Below the email debug shell and the heath check output:

[root@passmgr passbolt]# ./bin/cake passbolt send_test_email --recipient=wsaeed@xyz.com

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

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

Email configuration
---------------------------------------------------------------
Host: mail.xyz.com
Port: 25
Username: 
Password: *********
TLS: false

Sending email from: Passbolt <passbolt@xyz.com>
Sending email to: wsaeed@xyz.com
---------------------------------------------------------------

Trace
[220] xyz.com ESMTP Postfix
> EHLO localhost
[250] mx1.xyz.com
[250] PIPELINING
[250] SIZE 30720000
[250] VRFY
[250] ETRN
[250] ENHANCEDSTATUSCODES
[250] 8BITMIME
[250] DSN
> MAIL FROM:<passbolt@xyz.com>
[250] 2.1.0 Ok
> RCPT TO:<wsaeed@xyz.com>
[250] 2.1.5 Ok
> DATA
[354] End data with <CR><LF>.<CR><LF>
> From: Passbolt <passbolt@xyz.com>
To: wsaeed@xyz.com
Date: Sun, 13 Sep 2020 13:27:00 +0000
Message-ID: <f2ea5648e26e4734b745b9cc9397e918@passmgr>
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 C25287E602
> QUIT

The message has been successfully sent!



[root@passmgr passbolt]# su -s /bin/bash -c "./bin/cake passbolt healthcheck" nginx

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

 Open source password manager for teams
---------------------------------------------------------------
 Healthcheck shell       
---------------------------------------------------------------

 Environment

 [PASS] PHP version 7.3.22.
 [PASS] PCRE compiled with unicode support.
 [PASS] The temporary directory and its content are writable.
 [PASS] The public image directory and its content are writable.
 [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://passmgr.xzy.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] 35 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/nginx/.gnupg.
 [PASS] The directory /var/lib/nginx/.gnupg containing the keyring is writable by the webserver user.
 [PASS] The server gpg 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.

 Application configuration

 [PASS] Using latest passbolt version (2.13.5).
 [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.

 No error found. Nice one sparky!

Hello,

If only the invitation emails are not working, e.g the test email command and other notifications are working, then most likely there is an issue in the delivery of the email as such, e.g. the email address is not reachable, or it is classified as spam, etc.

Hi Remy,

Thanks for your reply.

I used the same email addresses in the email debug shell so I’m pretty sure that the emails are correct, and I also checked the spam and it’s not there.

BTW, I enabled the public access to allow the users to register, but they also not able to receive the activation/invention emails.

BR,
Waleed

@wsaeed do you have the cron job setup? do you see any errors when you run the command manually?

./bin/cake EmailQueue.sender

You can also preview what’s in the queue there:

./bin/cake EmailQueue.preview

Hi @remy,

There’s only one cron job (below), and executing the sender shell
./bin/cake EmailQueue.sender doesn’t show any errors.
[root@server]#crontab -u nginx -l
* * * * * /var/www/passbolt/bin/cake EmailQueue.sender

As for the email queue shell, it shows a hundreds of emails, but it’s an old emails, such as a welcome email and an activation notification for the first accounts created in the beginning of the installation.

Thanks,
Waleed

@wsaeed can you check if the notification setting is not disabled in the administration section? (or using configuration file / environment variables if you’re using these)

1 Like

Thanks @remy … The notification setting for registration & recovery were disabled…

I really appreciate your support… Thanks again…

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