From 9f6f7bd1fda4226670a4388ca035ee9c290968d8 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 16 May 2020 09:57:57 +0300 Subject: [PATCH] Add wanchecker.conf --- ssmtp_conf-sample/wanchecker.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ssmtp_conf-sample/wanchecker.conf diff --git a/ssmtp_conf-sample/wanchecker.conf b/ssmtp_conf-sample/wanchecker.conf new file mode 100644 index 0000000..9bbf251 --- /dev/null +++ b/ssmtp_conf-sample/wanchecker.conf @@ -0,0 +1,28 @@ +# Cache/Log directory of the script +WANIP_DIR="/var/spool/mail" + +# Log file for checked/resolved IPv4 WAN addresses +WANIP_LOG="${WANIP_DIR}/ip_wan.log" + +# 1 = Enable fallback DNS servers, overrides /etc/resolv.conf in case of DNS failure +# Recommended: +# +# - curl built with options '--enable-dnsshuffle' & '--enable-ares' +# - if you work only on IPv4 environments, it is strongly recommended to build curl with '--disable-ipv6' +# as fallback name resolution attempts may fail otherwise +# +# - /usr/lib/libresolvconf-override.so +# +ENABLE_FALLBACK_DNS=1 + +# Email sender +# Same than in /etc/ssmtp/ssmtp.conf +EMAIL_SENDER=( + mailsender@foo.com +) + +# Emails to send notification to +EMAIL_RECIPIENTS=( + whogetsthemail_1@foo.com + whogetsthemail_2@foo.com +)