Go to file
Andreas Schneider 5b19a9286c Accepting request 1036470 from home:gladiac:branches:devel:languages:python:mailman
- Update to version 1.3.7
  *  Fix a bug where various form(s) allowed setting empty values for
     delivery_mode and language. (Fixes #540, #522)
  *  Rename labels description and info fields as 'Short Description' and 'Long
     Description' to signify what they mean. (Fixes #510)
  *  Use date to format the dates in 'List Metrics' section in the List summary
     page. (Fixes #508)
  *  Sort the list of languages in all Select elements alphabetically so they
     are easier to naviate with screen readers. (Fixes #498)
  *  Add support for Django 4.0
  *  A couple of unit tests are now marked expectedFailure due to
     https://gitlab.com/mailman/mailman/-/merge_requests/997. (See #548)
  *  Translate template names in the “New Templates” page (See #547)
  *  Translate the section names in the MailingList->"Settings" tab. (See #550)
  *  Add support for Django 4.1
  *  Add support for Python 3.10
  *  Remove support for Django < 3.2
  *  Remove support for Python < 3.7
  *  Replace the use of mock with unittest.mock
  *  Change the way role is selector in the List index page to allow use of the
  *  filtering without javascript enabled dropdowns. It also enhances usability
     by enabling the roles that are currently active by default. (See #544)
  *  Show the number of files in each Mailman queue under 'System Information'
     tab for Admins. (Fixes #480)

OBS-URL: https://build.opensuse.org/request/show/1036470
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=42
2022-11-17 15:12:06 +00:00
.gitattributes - initial version 1.3.0 [SLE-7686] 2019-11-15 10:12:48 +00:00
.gitignore - initial version 1.3.0 [SLE-7686] 2019-11-15 10:12:48 +00:00
postorius-1.3.7.tar.gz Accepting request 1036470 from home:gladiac:branches:devel:languages:python:mailman 2022-11-17 15:12:06 +00:00
postorius-fix-django-4.0-compatibility.patch Accepting request 956322 from home:gladiac:mailman3 2022-02-22 21:36:58 +00:00
postorius-manage.sh Remove link to Factory. 2021-11-17 08:26:15 +00:00
postorius-settings.patch Accepting request 1036470 from home:gladiac:branches:devel:languages:python:mailman 2022-11-17 15:12:06 +00:00
postorius.uwsgi Remove link to Factory. 2021-11-17 08:26:15 +00:00
python-postorius-rpmlintrc Accepting request 986687 from home:bnavigator:branches:devel:languages:python:mailman 2022-07-04 18:07:26 +00:00
python-postorius.changes Accepting request 1036470 from home:gladiac:branches:devel:languages:python:mailman 2022-11-17 15:12:06 +00:00
python-postorius.spec Accepting request 1036470 from home:gladiac:branches:devel:languages:python:mailman 2022-11-17 15:12:06 +00:00
README.SUSE.md Remove link to Factory. 2021-11-17 08:26:15 +00:00

Postorius

Configuration

The web application is configured in /etc/postorius/settings_local.py which is included by the default configuration in /srv/www/webapps/postorius/settings.py.

  1. Optional: Change the default secret for the application: We already created one, but feel free to replace with a stronger alternative.

    /etc/postorius/settings_local.py:

    SECRET_KEY = 'something-very-secret'
    
  2. Make sure to disable debugging when running in production:

    /etc/postorius/settings_local.py:

    DEBUG = False
    
  3. The valid hosts or domain names for the application need to be defined:

    /etc/postorius/settings_local.py:

     ALLOWED_HOSTS = [
         'localhost',
         'lists.example.com'
     ]
    
  4. To be able to configure a running mailman instance configuration options for its REST API have to be added to postorius' configuration.

    /etc/postorius/settings_local.py

    MAILMAN_REST_API_URL = 'http://localhost:8001'
    MAILMAN_REST_API_USER = 'rest_admin'
    MAILMAN_REST_API_PASS = 'rest_admin_password'
    
  5. Add a valid email configuration

    /etc/postorius/settings_local.py:

     EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
     EMAIL_HOST = 'localhost'
     EMAIL_PORT = 25
     EMAIL_HOST_USER = <username>
     EMAIL_HOST_PASSWORD = <password>
    
  6. Optional: Configure postgres or another database (default: sqlite3)

  7. Create and setup the database

    postorius-manage migrate

  8. Create admin user

    postorius-manage createsuperuser

Apache2

To configure postorius with Apache and uwsgi, just add the follwing lines to a vhost:

ProxyPass /.well-known/acme-challenge !
ProxyPassMatch ^/static !
ProxyPass / unix:/run/uwsgi/uwsgi-postorius.sock|uwsgi://localhost/
<Directory /srv/www/webapps/mailman/postorius>
    Require all granted
</Directory>