Hello, I've been working on setting up Mailman3 on a RHEL 7.5 vm using the guides and documentation found here: http://docs.mailman3.org/en/latest/index.html https://mailman.readthedocs.io/en/latest/README.html http://docs.mailman3.org/projects/postorius/en/latest/index.html http://docs.mailman3.org/projects/mailmanclient/en/latest/README.html https://hyperkitty.readthedocs.io/en/latest/index.html https://gitlab.com/mailman/mailman-hyperkitty
nginx is serving the Django applications via uwsgi. I was able to get mailman, postorius + hyperkitty, running and test sending out email verifications. In an attempt to set the default domain to something other than example.com I deleted the site: example.com, I did have another site. Unfortunately, this seems to have broken the Django applications. At the moment I am preparing to delete the virtual environment and set things up again. Unless there is something that can be done in the current virtual environment to "reset" things back to start.
I was also running into an issue where the verification emails were successfully sent out. The url to verify the email looks like this: http://my.domain.com:8000/accounts/confirm-email/xxxxxxxxxxxx/
Replacing my.domain.com with the domain I added. How can I get the outgoing verification emails to not reference port 8000? If I take that same link and remove the port, I get the desired page. Port 8000 is blocked at our sites permitter firewall, I don't necessarily want to open it. I'd rather the URL just obfuscate the port and send it to https...
Thank you in advance for your attention and assistance. Best regards, Enrique J. Terrazas
Just an update, re-creating the environment was trivial. I now have a working installation of the Mailman3 suite. I still am not sure how to have the outgoing verification emails not include the port number. I suspect this is because the Django applications are listening on port 8000: from my uwsgi.ini file: http-socket = my.domain.com:8000
from my settings.py file: POSTORIUS_TEMPLATE_BASE_URL = 'http://my.domain.com:8000'
from my nginx.conf file: server { listen 80; server_name my.domain.com; return 301 https://$server_name$request_uri; }
server {
listen 443 ssl;
server_name my.domain.com;
ssl_certificate certificate.cer;
ssl_certificate_key private.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location /static/ {
alias /opt/mailman/mailman-suite/mailman-suite_project/static/;
}
location / {
include uwsgi_params;
proxy_pass http://my.domain.com:8000;
}
}
Thanks for your time. Enrique
On Wed, Sep 26, 2018, at 8:10 PM, enrique.terrazas@utsa.edu wrote:
Just an update, re-creating the environment was trivial. I now have a working installation of the Mailman3 suite. I still am not sure how to have the outgoing verification emails not include the port number. I suspect this is because the Django applications are listening on port 8000: from my uwsgi.ini file: http-socket = my.domain.com:8000
from my settings.py file: POSTORIUS_TEMPLATE_BASE_URL = 'http://my.domain.com:8000'
from my nginx.conf file: server { listen 80; server_name my.domain.com; return 301 https://$server_name$request_uri; }
server { listen 443 ssl; server_name my.domain.com; ssl_certificate certificate.cer; ssl_certificate_key private.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location /static/ { alias /opt/mailman/mailman-suite/mailman-suite_project/static/; } location / { include uwsgi_params; proxy_pass http://my.domain.com:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
I think you are missing these two settings here, which is the reason for additional :8000, specifically the Host header.
} }
Thanks for your time. Enrique
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)
Hi,
Did you ever figure out the issue with port 8000 showing up in your outgoing verification emails?
I'm having whats seems to be a related issue. All my outgoing emails show localhost:8000.
I've got just about everything else working with Mailman3 this one issue has got me stumped.
Thanks.
-- Dan
On Mon, Jul 8, 2019, at 10:06 AM, dancab@caltech.edu wrote:
Hi,
Did you ever figure out the issue with port 8000 showing up in your outgoing verification emails?
I'm having whats seems to be a related issue. All my outgoing emails show localhost:8000.
I've got just about everything else working with Mailman3 this one issue has got me stumped.
Please sure that your Nginx configuration has these two lines:
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
In your location /
directive.
There should be similar or equivalent settings in case you are using Apache.
-- thanks, Abhilash Raj (maxking)
participants (3)
-
Abhilash Raj
-
dancab@caltech.edu
-
enrique.terrazas@utsa.edu