diff --git a/Metadata/groups.xml b/Metadata/groups.xml index 2e88ff7..599b9fd 100644 --- a/Metadata/groups.xml +++ b/Metadata/groups.xml @@ -312,4 +312,13 @@ --> + + + + + + + diff --git a/Probes/rescue b/Probes/rescue new file mode 100755 index 0000000..4cadaec --- /dev/null +++ b/Probes/rescue @@ -0,0 +1,8 @@ +#!/bin/bash + +rescue_file=/usr/scripts/secours/etat_$(hostname -s) +if [ -f $rescue_file ]; then + if [ "$(< rescue_file)" = "secours" ]; then + echo "group:rescue-mode" + fi +fi diff --git a/TGenshi/etc/postfix/main.cf/template.txt b/TGenshi/etc/postfix/main.cf/template.txt index a2fa2f5..fafa873 100644 --- a/TGenshi/etc/postfix/main.cf/template.txt +++ b/TGenshi/etc/postfix/main.cf/template.txt @@ -241,14 +241,12 @@ lmtp_send_xforward_command=yes # Pieces jointes mime_header_checks = regexp:/etc/postfix/mime_header_checks -{% if not secondary %}\ +{% if not secondary and has("rescue-mode") %}\ # +----------------------+ # | Connexion de secours | # +----------------------+ -### BEGIN RESCUE MODE -#relayhost = [ultra-adsl.crans.org]:25 -### END RESCUR MODE +relayhost = [ultra-adsl.crans.org]:25 {% end %}\ {# Fin de la conf specifique au mx #}