Email not sending [Office365 app password needed]

The activation link is only for new accounts. Based on the screenshot from before of the query with the errors the recovery link was what you needed, this is confirmed by it asking you for your recovery kit.

Since you don’t have your recovery kit you won’t be able to log in with that account, you’ll need to make a new admin account and then log in with that one to correct the issue. You can do this by running:

su -m -c "/usr/share/php/passbolt/bin/cake \
                                passbolt register_user \
                                -u your@email.com \
                                -f yourname \
                                -l surname \
                                -r admin" -s /bin/sh www-data

You’ll want to use a valid email address here and it will have to be different from your original account but once you are in you could delete your old admin account and then recreate it with the email address you were using

maybe stupid question but do i need to fix SMTP first?

You have to do that to receive the emails, but you can bypass them as we explained.
You can try to solve it using the passbolt.php config as I mentioned above, without the GUI.
Be sure that the password, username and so on are correct and set it. Then try to send a test email:

sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt send_test_email --recipient=youremail@domain.com"

If you are convinced you are using the correct SMTP password on passbolt for your mail host, the email_queues records are saying your mail host is not accepting it. This happens for various reasons and there are many examples in forum threads about what is needed to get the mail working.

If you need assistance finding the right thread, we would need to know what mail host you are working with.

But no, as @clayton described, you can gain access to the links that would be sent in the mail, even though the mail isn’t currently working. Eventually mail will need to be functional.

Okay guys, i made a new user and try to send a test mail

image

Can i upload the logs or isnt that smart?

@Termindiego25 i cant find the passbolt.php :sweat_smile:

Just double check that they don’t have any confidential information and then you should be fine to post the logs.

Your passbolt.php file is likely at /etc/passbolt/passbolt.php

I hope i filtered everything :sweat_smile:

[
    {
        "cmd": null,
        "response": [
            {
                "code": "220",
                "message": "AM9P195CA0010.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 9 Mar 2023 16:33:24 +0000"
            }
        ]
    },
    {
        "cmd": "EHLO EHLO website of passbolt",
        "response": [
            {
                "code": "250",
                "message": "AM9P195CA0010.outlook.office365.com Hello [WAN IP]"
            },
            {
                "code": "250",
                "message": "SIZE 157286400"
            },
            {
                "code": "250",
                "message": "PIPELINING"
            },
            {
                "code": "250",
                "message": "DSN"
            },
            {
                "code": "250",
                "message": "ENHANCEDSTATUSCODES"
            },
            {
                "code": "250",
                "message": "STARTTLS"
            },
            {
                "code": "250",
                "message": "8BITMIME"
            },
            {
                "code": "250",
                "message": "BINARYMIME"
            },
            {
                "code": "250",
                "message": "CHUNKING"
            },
            {
                "code": "250",
                "message": "SMTPUTF8"
            }
        ]
    },
    {
        "cmd": "STARTTLS",
        "response": [
            {
                "code": "220",
                "message": "2.0.0 SMTP server ready"
            }
        ]
    },
    {
        "cmd": "EHLO website of passbolt",
        "response": [
            {
                "code": "250",
                "message": "AM9P195CA0010.outlook.office365.com Hello [WAN IP]"
            },
            {
                "code": "250",
                "message": "SIZE 157286400"
            },
            {
                "code": "250",
                "message": "PIPELINING"
            },
            {
                "code": "250",
                "message": "DSN"
            },
            {
                "code": "250",
                "message": "ENHANCEDSTATUSCODES"
            },
            {
                "code": "250",
                "message": "AUTH LOGIN XOAUTH2"
            },
            {
                "code": "250",
                "message": "8BITMIME"
            },
            {
                "code": "250",
                "message": "BINARYMIME"
            },
            {
                "code": "250",
                "message": "CHUNKING"
            },
            {
                "code": "250",
                "message": "SMTPUTF8"
            }
        ]
    },
    {
        "cmd": "AUTH PLAIN AHN2b3NAaXR2b3MubmwAQXJyYXRheTkyIQ==",
        "response": [
            {
                "code": "504",
                "message": "5.7.4 Unrecognized authentication type [AM9P195CA0010.EURP195.PROD.OUTLOOK.COM 2023-03-09T16:33:30.240Z 08DB1ECC99CFE373]"
            }
        ]
    },
    {
        "cmd": "AUTH LOGIN",
        "response": [
            {
                "code": "334",
                "message": "VXNlcm5hbWU6"
            }
        ]
    },
    {
        "cmd": "c3Zvc0BpdHZvcy5ubA==",
        "response": [
            {
                "code": "334",
                "message": "UGFzc3dvcmQ6"
            }
        ]
    }
]

Check organization settings.

Also read release info on v3.9.0 Passbolt Help | Release notes regarding Azure SSO. Not sure what your use case is.

Apppasword was indeed the key!
image

Thanks so much! <3

3 Likes