How to see the admin password reset in docker with mailman3
I am setting up a new environment of Mailman3 in docker. I understand I have to reset the password to set the password for admin. I go to forget the password, in the GUI and I put in the address I have listed in the docker-compose.yaml and I never get the email. I look at the mail log on the host and I do not see the smtp connections. I assume Django is not using the docker host but sending the mail directly??
Basically, where can I see the password email rest mail logs to make sure an email was sent out and where it is going?
On 4/6/23 13:48, bob B via Mailman-users wrote:
I am setting up a new environment of Mailman3 in docker. I understand I have to reset the password to set the password for admin. I go to forget the password, in the GUI and I put in the address I have listed in the docker-compose.yaml and I never get the email. I look at the mail log on the host and I do not see the smtp connections. I assume Django is not using the docker host but sending the mail directly??
Basically, where can I see the password email rest mail logs to make sure an email was sent out and where it is going?
I can't answer that question, but you can set an admin user and password with the django admin createsuperuser command.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2023-04-06 14:38:41 -0700 (-0700), Mark Sapiro wrote: [...]
I can't answer that question, but you can set an admin user and password with the django admin createsuperuser command.
And for reference, here's how it's run at setup for the containers:
https://github.com/maxking/docker-mailman/blob/b581310/web/docker-entrypoint...
python3 manage.py createsuperuser --noinput --username \
"$MAILMAN_ADMIN_USER" --email "$MAILMAN_ADMIN_EMAIL"
For a maybe more automate-able example, here's how we call it from outside the container via docker exec on our deployments:
https://opendev.org/opendev/system-config/src/commit/ab0e6e1/playbooks/roles...
docker exec mailman-web bash -c \
"DJANGO_SUPERUSER_PASSWORD={{ mailman3_admin_password }} \
python3 manage.py createsuperuser --no-input --username \
{{ mailman3_admin_user }} --email \
'{{ mailman3_admin_email }}'"
The things in {{}} are Jinja2 templated values we supply through Ansible, you could just replace them with whatever values are appropriate for your deployment.
Jeremy Stanley
We rely on other groups to handle sending and receiving our email, and the password email was being held, so not a mailman issue.
participants (3)
-
bob B
-
Jeremy Stanley
-
Mark Sapiro