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édente | ||
homeserver:orangepi3b [2024/10/30 18:53] – [Bug carte ethernet] cyrille | homeserver:orangepi3b [2024/11/22 18:26] (Version actuelle) – cyrille | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Orange PI 3B ====== | ====== Orange PI 3B ====== | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | Globalement pour l' | ||
+ | [[homeserver: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[homeserver: | ||
Pour utilisation serveur auto hébergé. | Pour utilisation serveur auto hébergé. | ||
Ligne 142: | Ligne 152: | ||
@reboot / | @reboot / | ||
</ | </ | ||
+ | |||
+ | <WRAP center round todo 60%> | ||
+ | Attention cette procédure semble changer l'ipv6 de la carte, donc il faut mettre à jour sa zone DNS... A suivre. | ||
+ | </ | ||
+ | |||
===== Ajout d' | ===== Ajout d' | ||
Modifier le message d' | Modifier le message d' | ||
- | Le messade | + | Le message |
- | Il suffit de les prefixer | + | Il suffit de les préfixer |
< | < | ||
ls / | ls / | ||
Ligne 157: | Ligne 172: | ||
Exemple d' | Exemple d' | ||
< | < | ||
- | # nano 31-disk-usb | + | # nano / |
</ | </ | ||
Ligne 183: | Ligne 198: | ||
Puis au prochain log, l' | Puis au prochain log, l' | ||
+ | |||
+ | Pour le tester de suite | ||
+ | < | ||
+ | update-motd | ||
+ | </ | ||
+ | ===== Migration vers DEBIAN 12 / YUNOHOST 12 ===== | ||
+ | Passage sans soucis | ||
+ | |||
+ | Mise à jour complète au préalable et backups des apps et du systeme | ||
+ | <code | download> | ||
+ | yunohost tools update | ||
+ | yunohost tools upgrade apps | ||
+ | yunohost tools upgrade system | ||
+ | </ | ||
+ | |||
+ | Backups | ||
+ | <code | download> | ||
+ | yunohost backup create --apps -n 20241109apps -o /diskUSB | ||
+ | yunohost backup create --system -n 20241109sys -o /diskUSB | ||
+ | </ | ||
+ | |||
+ | Lancement de la migration | ||
+ | <code | download> | ||
+ | yunohost tools migrations run | ||
+ | yunohost tools migrations run --accept-disclaimer | ||
+ | </ | ||
+ | |||
+ | Accès refusé aux pages internet, relancer nginx et c'est réglé | ||
+ | <code | download> | ||
+ | service nginx restart | ||
+ | </ | ||
+ | |||
+ | Soucis au niveau d'apt. Pour le régler : | ||
+ | <code | download> | ||
+ | yunohost tools regen-conf apt --dry-run --with-diff | ||
+ | yunohost tools regen-conf apt --force | ||
+ | </ | ||
+ | |||
+ | Soucis au niveau d'une clef (ugly) méthode pour le régler : | ||
+ | <code | download> | ||
+ | cd /etc/apt | ||
+ | cp trusted.gpg trusted.gpg.d | ||
+ | </ | ||
+ | |||
+ | Installation du rspamd pose soucis. Suffit de supprimer l' | ||
+ | <code | download> | ||
+ | apt purge rspamd | ||
+ | rm -rf /etc/rspamd | ||
+ | </ | ||
+ | Et d' | ||
+ | |||
+ | <code | download> | ||
+ | yunohost --version | ||
+ | yunohost: | ||
+ | repo: stable | ||
+ | version: 12.0.6 | ||
+ | yunohost-admin: | ||
+ | repo: stable | ||
+ | version: 12.0.3.5 | ||
+ | yunohost-portal: | ||
+ | repo: stable | ||
+ | version: 12.0.6 | ||
+ | moulinette: | ||
+ | repo: stable | ||
+ | version: 12.0.3 | ||
+ | ssowat: | ||
+ | repo: stable | ||
+ | version: 12.0.3 | ||
+ | </ | ||
+ | <code | download> | ||
+ | lsb_release -a | ||
+ | No LSB modules are available. | ||
+ | Distributor ID: Debian | ||
+ | Description: | ||
+ | Release: 12 | ||
+ | Codename: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Créer une liste blanche (whitelist) et une liste noire (blacklist) pour rspamd (yunohost 12) ===== | ||
+ | |||
+ | |||
+ | Après avoir relu la doc très consistante de **rspamd** et épluché le web, j’ai adopté cette solution qui me convient (elle peut être très adaptée à tous les besoins mais faut l’assimiler ;) | ||
+ | |||
+ | Donc, tout ce passe dans /etc/rspamd et surtout dans le dossier local.d/ (donc dans **/ | ||
+ | |||
+ | De base, il n’y a que le fichier redis.conf | ||
+ | |||
+ | Créer un fichier de **multimap.conf** contenant la map suivante : | ||
+ | |||
+ | <code | download> | ||
+ | WHITELIST_SENDER_DOMAIN { | ||
+ | type = " | ||
+ | filter = " | ||
+ | map = " | ||
+ | action = " | ||
+ | } | ||
+ | |||
+ | WHITELIST_SENDER_EMAIL { | ||
+ | type = " | ||
+ | map = " | ||
+ | action = " | ||
+ | } | ||
+ | |||
+ | BLACKLIST_SENDER_DOMAIN { | ||
+ | type = " | ||
+ | filter = " | ||
+ | map = " | ||
+ | action = " | ||
+ | } | ||
+ | |||
+ | BLACKLIST_SENDER_EMAIL { | ||
+ | type = " | ||
+ | map = " | ||
+ | action = " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Créer ensuite un fichier **whitelist.sender.domain.map** qui permettra une liste blanche basée sur le domaine.extension et un fichier **whitelist.sender.email.map** qui fournira une liste blanche basée sur l’adresse mail | ||
+ | |||
+ | Donc, par exemple **whitelist.sender.domain.map** | ||
+ | |||
+ | <code | download> | ||
+ | site1.ext | ||
+ | site2.ext | ||
+ | </ | ||
+ | |||
+ | Et pour les adresses mails **whitelist.sender.email.map** | ||
+ | |||
+ | <code | download> | ||
+ | mail@site1.ext | ||
+ | mail@site2.ext | ||
+ | </ | ||
+ | |||
+ | Faire de même pour la liste noire, pour cela créer 2 fichiers **blacklist.sender.domain.map** et **blacklist.sender.email.map** et les renseigner comme ceux de la liste blanche. Sinon les laisser vides. | ||
+ | |||
+ | Attention, pour la blacklist , les mails reviendront à l’expéditeur avec ce message | ||
+ | |||
+ | <code | download> | ||
+ | < | ||
+ | BLACKLIST_SENDER_DOMAIN (in reply to end of DATA command) | ||
+ | </ | ||
+ | |||
+ | Relancer ensuite **rpsamd** | ||
+ | |||
+ | <code | download> | ||
+ | service rspamd restart | ||
+ | </ | ||
+ | |||
+ | C’est mis en place | ||
+ | |||
+ | Plus d’infos ici : [[https:// | ||
+ | |||
+ | |||