1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mailman3_ynh.git synced 2024-09-03 19:36:17 +02:00
mailman3_ynh/README.md

144 lines
6.2 KiB
Markdown
Raw Normal View History

2021-08-21 17:30:08 +02:00
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
2019-09-20 12:55:12 +02:00
# Mailman3 for YunoHost
2022-06-05 16:15:56 +02:00
[![Integration level](https://dash.yunohost.org/integration/mailman3.svg)](https://dash.yunohost.org/appci/app/mailman3) ![Working status](https://ci-apps.yunohost.org/ci/badges/mailman3.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/mailman3.maintain.svg)
2021-08-21 17:30:08 +02:00
[![Install Mailman3 with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mailman3)
2019-09-20 12:55:12 +02:00
*[Lire ce readme en français.](./README_fr.md)*
2021-08-21 17:30:08 +02:00
> *This package allows you to install Mailman3 quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
2019-09-30 15:50:17 +02:00
2019-09-20 12:55:12 +02:00
## Overview
2021-08-21 17:30:08 +02:00
Electronic mailing lists manager
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
**Shipped version:** 1.0~ynh1
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
**Demo:** https://lists.mailman3.org/mailman3/lists/
2019-09-20 12:55:12 +02:00
## Screenshots
2022-06-05 16:15:56 +02:00
![Screenshot of Mailman3](./doc/screenshots/screenshot1.webp)
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
## Disclaimers / important information
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
* Any known limitations, constrains or stuff not working, such as (but not limited to):
* requiring a full dedicated domain
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
* Other infos that people should be aware of, such as:
* No LDAP support yet (apparently under development)
* Users can also just sign up themselves to manage details
* Users can use mailing lists without signing up?
2019-09-22 17:30:51 +02:00
2019-09-20 12:55:12 +02:00
## Post-installation steps
### Setup Admin User
You must [configure the admin user](http://docs.mailman3.org/en/latest/config-web.html#setting-up-admin-account):
```bash
$ cd /usr/share/mailman3-web
$ python3 manage.py createsuperuser
```
You should then attempt to log in with this user account in the web UI. Once you've logged in, a confirmation mail will be sent to your email address that you specified. Therefore, you should have something like [Rainloop](https://github.com/YunoHost-Apps/rainloop_ynh) installed to view mail on your YunoHost installation.
2019-09-22 18:24:01 +02:00
### Setup your main domain
You'll need to log in as administrator and visit the `/admin/site/site`.
2019-09-30 15:50:17 +02:00
If you're Mailman3 is setup on `https://myyunohost.org` then that would be the following:
2019-09-22 18:24:01 +02:00
2019-09-24 20:55:11 +02:00
> https://myyunohost.org/admin/site/site
2019-09-22 18:24:01 +02:00
2019-09-23 18:25:43 +02:00
### Configure incoming mail
2019-09-23 17:41:48 +02:00
Mailman3 implements an LMTP server for receiving mail from Postfix. This means that Mailman3 doesn't need anything from Dovecot. This is important to understand because Dovecot is the default YunoHost local delivery agent. Therefore, the default YunoHost Postfix configuration uses Dovecot. So, in order to deliver incoming mail, we need to override which delivery agent handles which mails based on the addresses. In other words, if you create a mailing list "mylist@myyunohost.org" you want Mailman3's LMTP server to receive this, *not* Dovecot, becaues Dovecot only delivers to LDAP created user accounts.
You'll need to add this to your Postfix configuration:
```bash
owner_request_special = no
transport_maps =
hash:/var/lib/mailman3/data/postfix_lmtp
local_recipient_maps =
hash:/var/lib/mailman3/data/postfix_lmtp
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf, hash:/var/lib/mailman3/data/postfix_lmtp
```
And then run:
```bash
2019-09-24 20:55:18 +02:00
$ sudo -su list mailman aliases
2019-09-23 17:41:48 +02:00
```
This is unfortunately a manual step at this point because the package remains experimental. Once it matures, this will be integrated into a hook or the default Postfix configuration. For now, remember that when you run `yunohost tools regen-conf postfix` or if any installation invokes `regen-conf`, your Postfix configuration will not be changed because it has diverged from the default configuration. This may cause you problems if YunoHost core expects that there is some new value in your Postfix configuration.
2019-09-23 18:25:43 +02:00
### Configure outgoing mail
Postfix relies on using SMTP which should be configured in your `/etc/postfix/main.cf`.
2019-09-30 15:50:17 +02:00
You should make sure that you have outgoing mail working before getting started with Mailman 3.
2019-09-20 12:55:12 +02:00
2019-09-30 15:50:17 +02:00
## General Configuration
2019-09-20 12:55:12 +02:00
2019-09-30 15:50:17 +02:00
Mailman 3 or "The Mailman Suite" is made up of 5 moving parts. See the following documentation for more:
2019-09-20 12:55:12 +02:00
2019-09-30 15:50:17 +02:00
> http://docs.mailman3.org/en/latest/index.html#the-mailman-suite
2019-09-20 12:55:12 +02:00
On your YunoHost, all the configuration files you need to worry about are in:
* `/etc/mailman3/`
2019-09-30 15:50:17 +02:00
* `/usr/share/mailman3-web/`
The services you need to manage can be checked with:
* `systemctl status mailman3`
* `systemctl status mailman3-web`
2019-09-20 12:55:12 +02:00
2019-09-30 15:50:17 +02:00
It is important to note that this package makes use of the [mailman3-full](http://docs.mailman3.org/en/latest/prodsetup.html#distribution-packages) Debian package contained in the Debian Stretch backports repository. The default installation assumes the use of a SQLite3 database but the installation script overrides this and uses a PostgreSQL database instead.
2019-09-20 12:55:12 +02:00
2019-09-22 18:25:46 +02:00
Finally, you also configure things through the Django web admin available at `/admin/`.
2019-09-20 12:55:12 +02:00
## Limitations
2019-09-30 15:50:17 +02:00
* Migrating from Mailman 2.X is not officially supported, sorry. However, there is a manual and
which details an experimental process. Please see [the documentation](https://docs.mailman3.org/en/latest/migration.html).
2019-09-20 12:55:12 +02:00
2019-09-30 15:50:17 +02:00
* Mailman3 must be configured to use a root domain (https://myyunohost.org and not https://myyunohost.org/mailman3).
2019-09-20 12:55:12 +02:00
* You must have a HTTPS certificate installed on the root domain.
2019-09-23 17:41:48 +02:00
* There may be only one installation per YunoHost.
2021-08-21 17:30:08 +02:00
## Documentation and resources
2019-09-20 12:55:12 +02:00
2022-06-05 16:15:56 +02:00
* Official app website: <http://www.list.org/>
* Official user documentation: <http://docs.mailman3.org/en/latest/userguide.html>
* Official admin documentation: <https://docs.mailman3.org/en/latest/>
* Upstream app code repository: <https://gitlab.com/mailman/mailman-suite>
* YunoHost documentation for this app: <https://yunohost.org/app_mailman3>
* Report a bug: <https://github.com/YunoHost-Apps/mailman3_ynh/issues>
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
## Developer info
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/mailman3_ynh/tree/testing).
2019-09-20 12:55:12 +02:00
2021-08-21 17:30:08 +02:00
To try the testing branch, please proceed like that.
2022-06-05 16:15:56 +02:00
``` bash
2021-08-21 17:30:08 +02:00
sudo yunohost app install https://github.com/YunoHost-Apps/mailman3_ynh/tree/testing --debug
or
sudo yunohost app upgrade mailman3 -u https://github.com/YunoHost-Apps/mailman3_ynh/tree/testing --debug
2019-09-20 12:55:12 +02:00
```
2022-06-05 16:15:56 +02:00
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>