i want to enable mail sending when creating a new user at passbolt dashboard , i installed passbolt using docker compose , and i don’t know which environment variables(env/passbolt.env) to use to send mail to a the new user created by the admin
i want to enable mail sending when creating a new user at passbolt dashboard , i installed passbolt using docker compose , and i don’t know which environment variables(env/passbolt.env) to use to send mail to a the new user created by the admin
See. https://github.com/passbolt/passbolt_docker#environment-variables-reference
EMAIL_TRANSPORT_DEFAULT_CLASS_NAME | Email classname | Smtp |
---|---|---|
EMAIL_DEFAULT_FROM | From email address | you@localhost |
EMAIL_DEFAULT_TRANSPORT | Sets transport method | default |
EMAIL_TRANSPORT_DEFAULT_HOST | Server hostname | localhost |
EMAIL_TRANSPORT_DEFAULT_PORT | Server port | 25 |
EMAIL_TRANSPORT_DEFAULT_TIMEOUT | Timeout | 30 |
EMAIL_TRANSPORT_DEFAULT_USERNAME | Username for email server auth | null |
EMAIL_TRANSPORT_DEFAULT_PASSWORD | Password for email server auth | null |
EMAIL_TRANSPORT_DEFAULT_CLIENT | Client | null |
EMAIL_TRANSPORT_DEFAULT_TLS | Set tls | null |
EMAIL_TRANSPORT_DEFAULT_URL | Set url | null |
These map to the cakephp email configuration described here: https://book.cakephp.org/3.0/en/core-libraries/email.html#configuring-transports
Yes ,by the way i have a Smtp host , what to do to make the server send mail for me , another question
for these environment variables ; what value to put ,
EMAIL_DEFAULT_FROM (you@localhost) refers to what
this is my SMTP config
var = {mail_options
hôte: ’ gon.smtpServer.com ',
Port: 3005,
debug: true,
auth: {
utilisateur: “zak-des”,
passer: “***********”
}
};
Hi Remy i’ve aleready did this , but still have the same problem ,could you please ,help me to configure my Smtp server so that i can send mails.
Thank you
this is my SMTP CONfig
var = {mail_options
hôte: ' [gon.smtpServer.com](http://gon.smtpServer.com) ',
Port: 3005,
debug: true,
auth: {
utilisateur: "zak-des",
passer: "*********"
}
};
Le mer. 25 juil. 2018 à 04:55, remy passbolt@discoursemail.com a écrit :
Refers to the email that will shown as the sender.
To be honest I don’t understand the rest of your request.
ok, this var — EMAIL_TRANSPORT_DEFAULT_HOST— should contain wich value ?? it should not contain localhost, my problem is that i don’t know what values to put in those environment variables , because here i must put my smtp configuration to make my passbolt , send mails to users created by admin
EMAIL_TRANSPORT_DEFAULT_HOST
That would be address of the SMTP host, so a the domain / subdomain like smtp.gmail.com
, or localhost
.
So ,the configuration should be like this
(----------------------------------------------------------------------------------)
EMAIL_DEFAULT_FROM=noReply@localhost
EMAIL_DEFAULT_TRANSPORT=Smtp
EMAIL_TRANSPORT_DEFAULT_HOST=passbolt@MySmtpDomain
EMAIL_TRANSPORT_DEFAULT_PORT=the Port of MySmtpDomain
EMAIL_TRANSPORT_DEFAULT_TIMEOUT=30
EMAIL_TRANSPORT_DEFAULT_USERNAME=the username of MySmtpDomain
EMAIL_TRANSPORT_DEFAULT_PASSWORD=the password of MySmtpDomain
EMAIL_TRANSPORT_DEFAULT_CLIENT=null
EMAIL_TRANSPORT_DEFAULT_TLS=true
EMAIL_TRANSPORT_DEFAULT_URL=null
(--------------------------------------------------------------------------------)
Yes something like that. The final configuration depends on your setup.
You can send a test email using the command:
./bin/cake/passbolt send_test_email
That should give you more information about your issues if any.
that file doesn’t exist because i am running passbolt as a container on docker
yep , i knew this , i ran it and it works , i can access to the dashboard , i create user and the user created doesn’t receive any email , this ./bin/cake/passbolt doesn’t exist because passbolt isn’t installed on OS , it is running as a container
To open a console on the docker:
docker ps -a
docker exec -ti CONTAINER_NAME /bin/bash
su -s /bin/bash www-data
cd /var/www/passbolt
nope that file doesn’t exist , because passbolt is in a container not installed on The Operation System so there are no suche files
Those are the files in my container
bin(directory) --contains(docker-entrypoint.sh)
conf(directory) --contains(passbolt.conf–supervisord.conf)
docker-compose-pro.yml
Dockerfile
Gemfile
ISSUE_TEMPLATE.md
Rakefile
scripts
CHANGELOG.md
docker-compose-dev.yml
docker-compose.yml
env(directory) – contains(mysql.env --passbolt.env)
Gemfile.lock
LICENSE
README.md
spec(directory) --contains (docker_image–docker_runtime–spec_helper.rb)
Following the instruction I gave you in my previous comment will help you to connect to the container.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.