WAN IPv4 checker & email notifier for computers behind dynamic IP/DHCP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
811 B

3 years ago
  1. # sSMTP executable path
  2. ssmtp_exec="/usr/bin/ssmtp"
  3. # Cache/Log directory of the script
  4. WANIP_DIR="/var/spool/mail"
  5. # Log file for checked/resolved IPv4 WAN addresses
  6. WANIP_LOG="${WANIP_DIR}/ip_wan.log"
  7. # 1 = Enable fallback DNS servers, overrides /etc/resolv.conf in case of DNS failure
  8. # Recommended:
  9. #
  10. # - curl built with options '--enable-dnsshuffle' & '--enable-ares'
  11. # - if you work only on IPv4 environments, it is strongly recommended to build curl with '--disable-ipv6'
  12. # as fallback name resolution attempts may fail otherwise
  13. #
  14. # - /usr/lib/libresolvconf-override.so
  15. #
  16. ENABLE_FALLBACK_DNS=1
  17. # Email sender
  18. # Same than in /etc/ssmtp/ssmtp.conf
  19. EMAIL_SENDER="mailsender@foo.com"
  20. # Emails to send notification to
  21. EMAIL_RECIPIENTS=(
  22. whogetsthemail_1@foo.com
  23. whogetsthemail_2@foo.com
  24. )