admin:infrastructure:sympa
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
admin:infrastructure:sympa [2018/07/17 17:54] – [guest -> relais] fpoulain | admin:infrastructure:sympa [2021/12/05 12:20] – [Sur la machine relais] fpoulain | ||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
<note important> | <note important> | ||
- | ===== relais | + | ===== Postfix coté relais ===== |
Pour que le relais transmette les emails au bon guest, il faut installer les bons transports. | Pour que le relais transmette les emails au bon guest, il faut installer les bons transports. | ||
Ligne 70: | Ligne 70: | ||
inet_interfaces = all | inet_interfaces = all | ||
</ | </ | ||
- | ===== guest -> sympa ===== | + | ===== Connexion entre le postfix coté guest et sympa ===== |
Là on retrouve la configuration d'un sympa classique, notamment : | Là on retrouve la configuration d'un sympa classique, notamment : | ||
Ligne 96: | Ligne 96: | ||
sympa: | sympa: | ||
</ | </ | ||
- | |||
====== Construction du fichier d' | ====== Construction du fichier d' | ||
Ligne 151: | Ligne 150: | ||
#!/bin/bash | #!/bin/bash | ||
cd / | cd / | ||
+ | |||
+ | export GIT_AUTHOR_EMAIL=sympa@chapril.org | ||
+ | export GIT_AUTHOR_NAME=Sympa | ||
+ | |||
git add transports/ | git add transports/ | ||
git commit -m 'MaJ des alias des listes' | git commit -m 'MaJ des alias des listes' | ||
</ | </ | ||
- | ainsi que la directive incron suivante | + | ainsi que les units systemd suivantes |
- | <code conf /etc/incron.d/sympa > | + | <code conf /etc/systemd/ |
- | / | + | [Unit] |
+ | Description=Wait for new sympa transports | ||
+ | |||
+ | [Path] | ||
+ | PathChanged=/ | ||
+ | Unit=sympa-transports.service | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
</ | </ | ||
- | qu'on va penser à rendre exécutable : | ||
- | chown a+x / | ||
- | Puis on redémarre incron : | + | <code conf // |
- | | + | [Unit] |
+ | Description=Push sympa transports toward postfix | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | qu'on va penser à activer : | ||
+ | systemctl enable sympa-transports.path sympa-transports.service | ||
+ | systemctl start sympa-transports.path sympa-transports.service |
admin/infrastructure/sympa.txt · Dernière modification : 2022/01/05 13:56 de fcouchet