define(`EXOLIA_MX_NAME', `mail.cyclocoop.org.')
* hébergeur : gresille.org
-define(`GRESILLE_IP4', `IP4(VM)')
+define(`GRESILLE_IP4', `IP4(LOCAL)')
divert(0)dnl
$TTL 1d ; TTL (Time To Live) par défaut pour les enregistrements
define(`FQDN', `NAME($1).ZONE_DOMAIN')
* hébergeur : gresille.org
-define(`GRESILLE_IP4', `IP4(VM)')
+define(`GRESILLE_IP4', `IP4(LOCAL)')
* hébergeur : kimsufi.com
define(`KIMSUFI_IP4', `91.121.198.103')
burette A IP4(KIMSUFI)
cartes A IP4(LAUTRENET)
demo.burette A IP4(KIMSUFI)
+fanout A IP4(GRESILLE)
formations A IP4(LAUTRENET)
git A IP4(GRESILLE)
imap A IP4(GRESILLE)
mail A IP4(LAUTRENET)
mx A IP4(GRESILLE)
+notifications A IP4(GRESILLE)
ns A IP4(GRESILLE)
questionnaires A IP4(GRESILLE)
remorque 60 A IP4(KIMSUFI)
define(`FQDN', `NAME($1).ZONE_DOMAIN')
* hébergeur : gresille.org
-define(`GRESILLE_IP4', `IP4(VM)')
+define(`GRESILLE_IP4', `IP4(LOCAL)')
* hébergeur : lautre.net
define(`LAUTRENET_IP4', `80.67.160.70')
--- /dev/null
+#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
+# PORT(S) PORT(S) LIMIT GROUP
+PARAM - - tcp 1986
HTTPS(ACCEPT) net $FW
Limit(IMAPS,5,60):info net $FW tcp imaps
IMAPS(ACCEPT) net $FW
+Fanout(ACCEPT) net $FW
Managesieve(ACCEPT) net $FW
Mosh(ACCEPT) net $FW
Ping(ACCEPT) net $FW
--- /dev/null
+home=/home/fanout
+cd /
+
+"$tool"/local/adduser "$sv" \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home "$home" \
+ --shell /bin/false \
+ --system
+
+sudo install -d -m 750 -o "$sv" -g "$sv" \
+ "$home"
+sudo install -d -m 750 -o sys -g sys \
+ "$home"/src
+sudo adduser sys "$sv"
+if sudo test -d "$home"/src/.git
+ then
+ sudo -u sys /bin/sh -c "cd $home/src && git pull -v"
+ else
+ sudo -u sys git clone https://github.com/travisghansen/fanout "$home"/src
+ fi
+
+sudo -u sys make -C "$home"/src
+sudo install -o 755 -o root -g root \
+ "$home"/src/fanout \
+ /usr/local/bin/fanout
--- /dev/null
+home=~fanout/log
+"$tool"/local/adduser log-"$sv" \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home "$home" \
+ --shell /bin/false \
+ --system
+sudo install -d -m 750 -o log-"$sv" -g log-"$sv" \
+ "$home"/log
+sudo adduser log-"$sv" "$sv"
--- /dev/null
+#!/bin/sh -eux
+sv=${PWD%/log}
+sv=${sv#/etc/sv/}
+eval home="~log-$sv"
+
+cd "$home"
+exec chpst -u log-"$sv":log-"$sv" \
+ svlogd -v -tt "$home"
--- /dev/null
+#!/bin/sh -eux
+exec 2>&1
+sv=${PWD#/etc/sv/}
+eval "home=~$sv"
+
+exec /usr/bin/chpst \
+ -u "$sv":"$sv" \
+ /usr/local/bin/fanout \
+ --debug-level=INFO \
+ --port=1986