Mark Sapiro wrote:
On 10/15/20 9:24 PM, Andrew Hodgson wrote:
Mark Sapiro wrote:
On 10/14/20 11:11 AM, Andrew Hodgson wrote:
I am having an issue with our system where password resets are giving the users an email with a http://localhost:8000 URL. I have made sure settings in settings_local.py (and even settings.py) are as follows:
POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.hodgsonfamily.org'
This is not relevant.
Does it need resetting back to http://localhost:8000?
Not if it works. Most likely either one is OK, but localhost:8000 avoids a DNS lookup an proxying through the web server.
Ok I have reset this value now.
However emails are still coming through with the wrong URL.
I'm not sure offhand, but it's either domains in Postorius or sites in the django admin UI.
I've checked both and cannot see any errors (I just have the one site lists.hodgsonfamily.org) and nothing is empty which seems as though it needs filling in.
What's in
sites
and what's inMail domains
in the django admin UI
https://lists.hodgsonfamily.org/admin/django_mailman3/maildomain/: <Mailman domain lists.hodgsonfamily.org>
https://lists.hodgsonfamily.org/admin/django_mailman3/maildomain/1/change/ Site: lists.hodgsonfamily.org Mail domain: lists.hodgsonfamily.org
https://lists.hodgsonfamily.org/admin/sites/site/1/change/ Domain name and display name: lists.hodgsonfamily.org
and what's in Web Host in the Postorius domains view - in particular, if you have Postorius 1.3.3, what's the SITE_ID, and what's SITE_ID in settings(_local).py.
https://lists.hodgsonfamily.org/postorius/domains/
Mail Host Description Alias Domain Web Host lists.hodgsonfamily.org lists.hodgsonfamily.org (lists.hodgsonfamily.org) SITE_ID = 1
Site ID is 1 in settings.py (not overridden in settings_local.py)
Also, when you go to the archive UI, whats the domain at the top left of the pages.
Lists.hodgsonfamily.org
I have overridden the following settings relating to this in settings_local.py:
USE_X_FORWARDED_HOST = True
ALLOWED_HOSTS = [ 'localhost', 'lists.hodgsonfamily.org' ]
Settings.py is from the latest commit from the Mailman Suite Gitlab project.
Thanks for helping me with this. Andrew.