User invitation email link has wrong domain name

Just installed Passbolt CE on Ubuntu 20.04, vmware vm

my server name is pb.mydomainName.com

When I send the invitation email for a new user that I create, the link contains a domain name that is not associated with my PB installation. However, I own and use the “other” domain name internally and outside of our network:

http://url7032.oneOfMyOtherDomainNames.com/ls/click?upn=9u9PdQc-2BMRctDVwXxLqshJ9E-2FDvv9kaxTjvZB8p8x5m22C12BRg-2FK-2BQFO0Ll3MCIthDMO55DU9inqcnlzNi1E0aUevXvSh4zfUmZ0lq2e4q0otDb5cMr5kq2S85hmiNeoBJH0sE-2FEBLgnL5b1IcxZ224NgF2BpoXIoZCd8fn5Js-3DxYTC_fq0l1iXIAZziJtVYrmBHc5BPex7YDaFaFUPvr3JBiMGvD8rhITQZGBv4iFKCx6tdquLM0e4yviL…

I am not sure why this is happening, nor how to correct it.

My Other Domain Name was never used during the Passbolt setup. It’s very odd.

Hi,

If you open /etc/passbolt/passbolt.php configuration file, you will find a fullBaseUrl parameter. Is the value of this parameter correct ? It must be your passbolt main url.

Best,

I have the same problem, and I looked for the file mentioned in the mentioned folder, but I can’t find this passbolt.php file.

Could you help me?

Hello @joaoafricano ,

On which distribution are you running passbolt? If you are on Docker, you might want to take a look at the docker compose file with the APP_FULL_BASE_URL environment variable.

Hello antony, thanks for answering.

I’m using docker, here’s the content of the compose file.

version: ‘3.3’
services:

passbolt:
image: passbolt/passbolt:latest-ce
#Alternatively you can use rootless:
#image: passbolt/passbolt:latest-ce-non-root
restart: unless-stopped

environment:
  APP_FULL_BASE_URL: http://192.168.15.5:8081
  DATASOURCES_DEFAULT_HOST: "mariadb"
  DATASOURCES_DEFAULT_USERNAME: "passbolt_user"
  DATASOURCES_DEFAULT_PASSWORD: "Senh@P4ssb0lt"
  DATASOURCES_DEFAULT_DATABASE: "passbolt_db"
  EMAIL_DEFAULT_FROM_NAME: "joao@joaoafricano.com.br"
  EMAIL_DEFAULT_FROM: "joao@joaoafricano.com.br"
  EMAIL_TRANSPORT_DEFAULT_HOST: "smtp.sendgrid.net"
  EMAIL_TRANSPORT_DEFAULT_PORT: "587"
  EMAIL_TRANSPORT_DEFAULT_USERNAME: "apikey"
  EMAIL_TRANSPORT_DEFAULT_PASSWORD: "&hhdf98*UHDKKLD09ppkfd;lfk(DIlkjmf9U(FDppjoidfjpo(LKHJDF\}{SDF}"
  EMAIL_TRANSPORT_DEFAULT_TLS: "true"
volumes:
  - gpg_volume:/etc/passbolt/gpg
  - jwt_volume:/etc/passbolt/jwt
command: ["/usr/bin/wait-for.sh", "-t", "0", "mariadb:3306", "--", "/docker-entrypoint.sh"]
ports:
  - 8081:80
  - 7443:443
networks:
  - guacamole_network
  - passbolt_network

#Alternatively for non-root images:
# - 8080:80
# - 4433:433

networks:
guacamole_network:
external: true
passbolt_network:
name: passbolt_network
driver: bridge
volumes:
gpg_volume:
jwt_volume:

In this case I am using another container with the mariadb database, which is on the guacamole_network .

As you can see, the APP_FULL_BASE_URL variable is filled in.

Everything works, the email reaches the recipient.

Below is a copy of the email that arrives.

=====================================================================

Rina Arielle (joao@alwaystec.com.br)
joao just created an account for you on passbolt!
Feb 23, 2025, 19:18 (UTC)

Welcome Rina,

Joao just invited you to join passbolt at http://192.168.15.5:8081/ Passbolt is an open source password manager. It is designed to allow sharing credentials securely with your team!

Let’s take the next five minutes to get you started!
get started

This email is an automatic notification sent by http://192.168.15.5:8081. You can disable these notifications by requesting an administrator to delete your account.

=====================================================================

Note that although the path appears correct in the email, the link it points to is another one that is not even in the compose file. I have no idea where he gets it from.
Note that the domain “joaoafricano.com.br” is mine, and the only mention of this domain is in the email.

Hi Folks.
My guess would be that Sendgrid is doing “click tracking” and using a subdomain off either their own domain or yours and then redirecting you to the destination (http://192.168.168.15.5:8081 or similar).
Can you confirm this is the case by turning off click tracking in sendgrid for this smtp service?

cheers
gareth

Hi Gyaresu
Thank you very much, you saved me, that was exactly it.
After disabling all the tracking options in SendGrid, everything started working again.
I was going crazy with this problem.

2 Likes

Excellent! Glad to hear it.
Let us know if you have any other issues.
:slight_smile: