On 23.10.24 21:35, Mark Sapiro wrote:
On 10/22/24 23:07, Gerald Vogt wrote:

For testing I have set

POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.example.org'

to the URL of our main domain, however, if I test an anonymous subscribe through the list info page I still get the timeout error

This will have no effect unless you delete and recreate the template in Postorius because simple changing the setting won't change the `uri` in the template table.

O.K. Did that. Now the uri in mailman.template is https://lists.example.org/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe

However, it doesn't change the timeout issue, except now the error is

HTTPSConnectionPool(host='lists.example.org', port=443): Read timed out. (read timeout=5)

instead of localhost:8000.

I can access http://localhost:8000/mailman3/api/templates/list/ community.lists.example.com/list:user:action:subscribe with curl and immediately get the response.

Can you do that as the Mailman user?, e.g.
```
sudo -u mailman curl http://localhost:8000/mailman3/api/templates/list/ community.lists.example.com/list:user:action:subscribe
```
assuming the Mailman user is `mailman`.

I don't quite understand the relevance of the user accessing the localhost tcp port. Any local user can do that.

I can access the template content with

curl http://localhost:8000/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe

as well as

curl http://lists.example.org/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe

as any user on the mailman server.

And I can use the latter to access the template from anywhere as it's a public server.

In any case, curl immediately returns the content. There is no delay.

Thanks,

Gerald
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/4TVETO47Z7ZS5GY65KNLINYOGTJFNEXQ/

This message sent to arch...@mail-archive.com

Reply via email to