Confirmation emails to Users has wrong domain name (example.com!)
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> <https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-has-wrong-domain-name-example-com>
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives:
# For Nginx. location / { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_pass http://localhost:8000/; }
Appropriate headers for different web servers needs to be set if something other the
How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
<VirtualHost *:443> ServerName lists.doma.ain ServerAdmin odhiambo@gmail.com
SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/cert.pem" SSLCertificateKeyFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/privkey.pem" SSLCertificateChainFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/chain.pem"
CustomLog /var/log/mm3-lists-access.log combined ErrorLog /var/log/mm3-lists-error.log LogLevel info
Alias /favicon.ico /usr/local/mailman/static/hyperkitty/favicon.ico Alias /static /usr/local/mailman/static
<Directory "/usr/local/mailman/static"> Order Allow,Deny Require all granted Allow from all </Directory>
WSGIScriptAlias /mailman3 /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /hyperkitty /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /postorius /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /archives /usr/local/mailman/etc/wsgi.py process-group=hyperkitty
<Directory "/usr/local/mailman/">
<Files wsgi.py>
Require all granted
</Files>
WSGIProcessGroup mailman-web </Directory>
</VirtualHost>
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On Wed, Sep 29, 2021, at 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> <https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-has-wrong-domain-name-example-com>
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives:
# For Nginx. location / { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_pass http://localhost:8000/; }
Appropriate headers for different web servers needs to be set if something other the
How is this supposed to be mitigated in Apache when using WSGI?
It seems like Apache has this ProxyPassReverse
thing, which should do the same job:
https://www.nginx.com/resources/wiki/start/topics/examples/likeapache/
I haven't tried it myself, but it might help!
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
<VirtualHost *:443> ServerName lists.doma.ain ServerAdmin odhiambo@gmail.com
SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/cert.pem" SSLCertificateKeyFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/privkey.pem" SSLCertificateChainFile "/usr/local/etc/letsencrypt/live/lists.doma.ain/chain.pem"
CustomLog /var/log/mm3-lists-access.log combined ErrorLog /var/log/mm3-lists-error.log LogLevel info
Alias /favicon.ico /usr/local/mailman/static/hyperkitty/favicon.ico Alias /static /usr/local/mailman/static
<Directory "/usr/local/mailman/static"> Order Allow,Deny Require all granted Allow from all </Directory>
WSGIScriptAlias /mailman3 /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /hyperkitty /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /postorius /usr/local/mailman/etc/wsgi.py process-group=hyperkitty WSGIScriptAlias /archives /usr/local/mailman/etc/wsgi.py process-group=hyperkitty
<Directory "/usr/local/mailman/"> <Files wsgi.py> Require all granted </Files>
WSGIProcessGroup mailman-web </Directory>
</VirtualHost>
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> <https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-has-wrong-domain-name-example-com>
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives: ... How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> < https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives: ... How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On Sep 29, 2021, at 2:34 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> < https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives: ... How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
Click on “Domain” in Postorius from the top bar, which should take you to the Domains page.
For your domain (in the “Mail Host” column), see the corresponding “Web Host” column, it should look something like:
lists.mailman3.org (lists.mailman3.org) (Edit) SITE_ID = 1
on a new-ish version of Postorius.
If it doesn’t show the right values and instead shows “example.com” for you, click on the “Edit” link, which will take you to a page that will allow you to edit both the values.
In that page, you can update “Domain name” to whatever your domain is (lists.xxx.xxx) and then “Display Name” can be anything else you want or the domain name itself. Click “Save” and then Click on “View Site” in the top right corner of the page to go back to Postorius.
Abhilas
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On Thu, Sep 30, 2021 at 1:59 AM Abhilash Raj <maxking@asynchronous.in> wrote:
On Sep 29, 2021, at 2:34 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> <
https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives:
...
How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
Click on “Domain” in Postorius from the top bar, which should take you to the Domains page.
For your domain (in the “Mail Host” column), see the corresponding “Web Host” column, it should look something like:
lists.mailman3.org (lists.mailman3.org) (Edit) SITE_ID = 1
Mine looks different, slightly. But there is no example.com at all.
[image: Abhilash.png]
on a new-ish version of Postorius.
I have the newest versions of everything, having installed only yesterday.
If it doesn’t show the right values and instead shows “example.com” for you, click on the “Edit” link, which will take you to a page that will allow you to edit both the values.
It shows the right values, but with "SITE_ID = 2". In my settings_local.py I have SITE_ID = 1. I suppose the example.com is the one tied to SITE_ID = 1 and that is what I have in my settings_local.py. Should I edit my settings_local.py?
I am still confused.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On Thu, Sep 30, 2021, at 2:20 AM, Odhiambo Washington wrote:
On Thu, Sep 30, 2021 at 1:59 AM Abhilash Raj <maxking@asynchronous.in> wrote:
On Sep 29, 2021, at 2:34 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com!) <https://docs.mailman3.org/en/latest/faq.html#id1> <
https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the correct headers when proxying requests. Fix this by setting the right proxy_set_header directives:
...
How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25 python-path=/usr/local/mailman user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
Click on “Domain” in Postorius from the top bar, which should take you to the Domains page.
For your domain (in the “Mail Host” column), see the corresponding “Web Host” column, it should look something like:
lists.mailman3.org (lists.mailman3.org) (Edit) SITE_ID = 1
Mine looks different, slightly. But there is no example.com at all.
[image: Abhilash.png]
on a new-ish version of Postorius.
I have the newest versions of everything, having installed only yesterday.
If it doesn’t show the right values and instead shows “example.com” for you, click on the “Edit” link, which will take you to a page that will allow you to edit both the values.
It shows the right values, but with "SITE_ID = 2". In my settings_local.py I have SITE_ID = 1. I suppose the example.com is the one tied to SITE_ID = 1 and that is what I have in my settings_local.py.
That is most likely what is happening.
Should I edit my settings_local.py?
Yes, please update it to have SITE_ID = 2 to correspond to the site you want and restart.
I am still confused.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On Thu, Sep 30, 2021 at 4:09 PM Abhilash Raj <maxking@asynchronous.in> wrote:
On Thu, Sep 30, 2021 at 1:59 AM Abhilash Raj <maxking@asynchronous.in> wrote:
On Sep 29, 2021, at 2:34 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com
!)
https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the
correct
headers when proxying requests. Fix this by setting the right proxy_set_header directives: ... How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25
On Thu, Sep 30, 2021, at 2:20 AM, Odhiambo Washington wrote: python-path=/usr/local/mailman
user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
Click on “Domain” in Postorius from the top bar, which should take you to the Domains page.
For your domain (in the “Mail Host” column), see the corresponding “Web Host” column, it should look something like:
lists.mailman3.org (lists.mailman3.org) (Edit) SITE_ID = 1
Mine looks different, slightly. But there is no example.com at all.
[image: Abhilash.png]
on a new-ish version of Postorius.
I have the newest versions of everything, having installed only yesterday.
If it doesn’t show the right values and instead shows “example.com” for you, click on the “Edit” link, which will take you to a page that will allow you to edit both the values.
It shows the right values, but with "SITE_ID = 2". In my settings_local.py I have SITE_ID = 1. I suppose the example.com is the one tied to SITE_ID = 1 and that is what I have in my settings_local.py.
That is most likely what is happening.
Should I edit my settings_local.py?
Yes, please update it to have SITE_ID = 2 to correspond to the site you want and restart.
Thank you very much.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On Thu, Sep 30, 2021 at 4:09 PM Abhilash Raj <maxking@asynchronous.in> wrote:
On Thu, Sep 30, 2021 at 1:59 AM Abhilash Raj <maxking@asynchronous.in> wrote:
On Sep 29, 2021, at 2:34 PM, Odhiambo Washington <odhiambo@gmail.com> wrote:
On Wed, Sep 29, 2021 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 9/29/21 9:50 AM, Odhiambo Washington wrote:
- Confirmation emails to Users has wrong domain name (example.com
!)
https://docs.mailman3.org/en/latest/faq.html#confirmation-emails-to-users-ha...
This happens when your reverse (SSL) proxy isn’t setting up the
correct
headers when proxying requests. Fix this by setting the right proxy_set_header directives: ... How is this supposed to be mitigated in Apache when using WSGI?
My config:
WSGIDaemonProcess hyperkitty threads=25
On Thu, Sep 30, 2021, at 2:20 AM, Odhiambo Washington wrote: python-path=/usr/local/mailman
user=mailman group=mailman WSGIPythonHome "/usr/local" WSGIProcessGroup hyperkitty
You are using mod_wsgi and not proxying at all, so this is not relevant in your case.
Are you actually seeing this issue? If so, it might be related to
https://docs.mailman3.org/en/latest/faq.html#the-domain-name-displayed-in-hy...
My issue is related to this, but the documentation referred to is not for the faint-hearted! I can't make head or tails of it.
Click on “Domain” in Postorius from the top bar, which should take you to the Domains page.
For your domain (in the “Mail Host” column), see the corresponding “Web Host” column, it should look something like:
lists.mailman3.org (lists.mailman3.org) (Edit) SITE_ID = 1
Mine looks different, slightly. But there is no example.com at all.
[image: Abhilash.png]
on a new-ish version of Postorius.
I have the newest versions of everything, having installed only yesterday.
If it doesn’t show the right values and instead shows “example.com” for you, click on the “Edit” link, which will take you to a page that will allow you to edit both the values.
It shows the right values, but with "SITE_ID = 2". In my settings_local.py I have SITE_ID = 1. I suppose the example.com is the one tied to SITE_ID = 1 and that is what I have in my settings_local.py.
That is most likely what is happening.
Should I edit my settings_local.py?
Yes, please update it to have SITE_ID = 2 to correspond to the site you want and restart.
I did this, but there is still a problem: The hyperkitty URL still shows example.com. Maybe I need to re-import the database to clear this?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On 10/2/21 4:26 AM, Odhiambo Washington wrote:
On Thu, Sep 30, 2021 at 4:09 PM Abhilash Raj <maxking@asynchronous.in> wrote:
Yes, please update it to have SITE_ID = 2 to correspond to the site you want and restart.
I did this, but there is still a problem: The hyperkitty URL still shows example.com. Maybe I need to re-import the database to clear this?
The SITE_ID setting affects the domain displayed at the top left of HyperKitty pages. Is this the correct domain?
What hyperkitty URL are you talking about?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, Oct 2, 2021 at 8:58 PM Mark Sapiro <mark@msapiro.net> wrote:
On 10/2/21 4:26 AM, Odhiambo Washington wrote:
On Thu, Sep 30, 2021 at 4:09 PM Abhilash Raj <maxking@asynchronous.in> wrote:
Yes, please update it to have SITE_ID = 2 to correspond to the site you want and restart.
I did this, but there is still a problem: The hyperkitty URL still shows example.com. Maybe I need to re-import the database to clear this?
The SITE_ID setting affects the domain displayed at the top left of HyperKitty pages. Is this the correct domain?
No. Mine is showing example.com
What hyperkitty URL are you talking about?
My url (nothing to hide anyway) is https://lists.fem-international.org/mailman3/hyperkitty/list/members@lists.f... . Screenshotted below
[image: msapiro.PNG]
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-)
On 10/3/21 12:47 AM, Odhiambo Washington wrote:
On Sat, Oct 2, 2021 at 8:58 PM Mark Sapiro <mark@msapiro.net> wrote:
The SITE_ID setting affects the domain displayed at the top left of HyperKitty pages. Is this the correct domain?
No. Mine is showing example.com
OK. If I understand correctly, the subject of this thread notwithstanding, your only issue is the domain example.com displayed on the upper left of Hyperkitty web pages, and when you go to the domains view in Postorius, you see your domain with SITE_ID = 2.
You said you edited settings_local.py to set SITE_ID = 2. Did you restart Apache after this?
touch /usr/local/mailman/etc/wsgi.py
should be sufficient to reload Django without restarting Apache. Have you done one of these things?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Abhilash Raj
-
Mark Sapiro
-
Odhiambo Washington