Thanks for your replies.
From Mark's reply, and looking at django_allauth, the Subject of the confirmation email uses the site name from the django_site db table in brackets, but the URL in the message body comes from the HTTP header.
Adding proxy_set_header Host $http_host before the proxy_pass line on the SSL proxy server solved the problem.
From: Mark Sapiro <mark@msapiro.net> Sent: Thursday, December 3, 2020 10:25 AM To: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: [MM3-users] Re: {Spam?} Server name in new account confirmation email
On 12/3/20 9:26 AM, Meehan, John wrote: > Hi, when someone creates a new account (Sign Up), an email is sent to them to confirm their email address. It has the form below. Does anyone know how I can Caution (External, mark@msapiro.net<mailto:mark@msapiro.net>) Sensitive Content, First-Time Sender Details<https://shared.outlook.inky.com/details?id=Y29tbXNjb3BlL2pvaG4ubWVlaGFuQGNvb...> Report This Email<https://shared.outlook.inky.com/report?id=Y29tbXNjb3BlL2pvaG4ubWVlaGFuQGNvbW...> FAQ<https://www.inky.com/banner-faq/> Protection by INKY<https://www.inky.com>
On 12/3/20 9:26 AM, Meehan, John wrote:
Hi, when someone creates a new account (Sign Up), an email is sent to them to confirm their email address. It has the form below. Does anyone know how I can change the server name in the URL (From server.example.com to something else)? I have an SSL proxy server that I want to direct users through. Thanks. - John
This message comes from django_allauth. The domains come from the
django_site database table.
If you have Postorius >= 1.3.3 The Domains view will show you the
SITE_ID for the domain and has an Edit
link the the Django admin UI
entry for that site. Otherwise, you can go to the Django admin Sites
view and see the DOMAIN NAME and DISPLAY NAME for each defined site, and
you can edit the domain name.
You may also need to adjust the SITE_ID setting in your Django settings
to match the site you want. The trick here is the SITE_IDs aren't
displayed in the Django admin UI or in Postorius < 1.3.3, and they may
not be sequential or start at 1. If you query the database with `SELECT
- FROM django_site;` you'll see entries with columns id, domain and name
which will tell you the SITE_ID.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-leave@mailman3.org
https://secure-web.cisco.com/1FBkrl8Fna83jeBpMzhcS-TGdx6ALOyBwi0uCPsqGDtm9Jr...