Hi,
attempting to install mailman3 on a remote ubuntu server - my docker-compose file looks like:
https://gist.github.com/epifanio/e668b0b7f3709de8063661d947223e2a
/opt/mailman/core/mailman-extra.cfg
[mta]
incoming: mailman.mta.postfix.LMTP
outgoing: mailman.mta.deliver.deliver
lmtp_host: 127.0.1.1
lmtp_port: 8024
smtp_host: 127.0.1.1
smtp_port: 25
configuration: /etc/postfix-mailman.cfg
opt/mailman/web/settings_local.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = '127.0.1.1'
EMAIL_PORT = 25
USE_SSL = False
DEFAULT_FROM_EMAIL = "mailman@lists.libkml.org"
SERVER_EMAIL = "mailman@lists.libkml.org"
DEBUG = True
ALLOWED_HOSTS='libkml.org'
I know I am still missing the NGNIX/APACHE settings, but trying to access the service at: libkml.org:8000 I get a django error
Invalid HTTP_HOST header: 'libkml.org:8000'. You may need to add 'libkml.org' to ALLOWED_HOSTS.
but I have the 'libkml.org' to ALLOWED_HOSTS in both opt/mailman/web/settings_local.py
and in the dockerfile:
https://gist.github.com/epifanio/e668b0b7f3709de8063661d947223e2a#file-mailm... https://gist.github.com/epifanio/e668b0b7f3709de8063661d947223e2a#file-mailm...
Can you help me please to understand what I am doing wrong?
Thanks!
I left the service up for debug, it is available at: http://libkml.org:8000/
from the link I can see the settings seems correct:
ALLOWED_HOSTS 'libkml.org'
On Tue, Jun 28, 2022, at 2:07 PM, epifanio via Mailman-users wrote:
I left the service up for debug, it is available at: http://libkml.org:8000/
Please don't do that and announce on a public list :-) Debug interface has a lot of information that shouldn't be exposed.
from the link I can see the settings seems correct:
ALLOWED_HOSTS 'libkml.org'
You have set it as a string, it should be a list of strings.
You wan to set
ALLOWED_HOSTS = ['libkml.org',]
In your settings_local.py and then re-start the containers for it take effect.
-- thanks, Abhilash Raj (maxking)
Our settings_local.py looks like this, maybe that is the problem?
ALLOWED_HOSTS = [ "localhost", # Archiving API from Mailman, keep it. "mailman-web", "our.nice.domain", ]
From what I understand, there is no need to set the ALLOWED_HOSTS-parameter in the Dockerfile! This value is not needed anywhere.
Regards, Jens.
Am 27.06.22 um 21:28 schrieb epifanio via Mailman-users:
opt/mailman/web/settings_local.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '127.0.1.1' EMAIL_PORT = 25 USE_SSL = False DEFAULT_FROM_EMAIL ="mailman@lists.libkml.org" SERVER_EMAIL ="mailman@lists.libkml.org" DEBUG = True ALLOWED_HOSTS='libkml.org'
Thankyou, I updated the config file and removed the entry from the docker file - now the postorius app is loads - I will continue dig into the nginx settings :)
participants (3)
-
Abhilash Raj
-
epi@epinux.com
-
Jens Günther