From 3a6f3fa94a20d0b132d2bcb216d922391b43d03d Mon Sep 17 00:00:00 2001 From: Honza Hommer Date: Sat, 18 May 2019 18:33:42 +0200 Subject: [PATCH] Add notify mail --- notify.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/notify.md b/notify.md index d65a1f8..4bc4169 100644 --- a/notify.md +++ b/notify.md @@ -84,3 +84,20 @@ acme.sh --set-notify --notify-hook sendgrid ``` +## 3. Set notification for mail + +Set it in your systems environment: + +```sh +export MAIL_BIN="sendmail" # should be one of following: sendmail, ssmtp, mutt or mail +export MAIL_FROM="xxx@xxx.com" # currently work only with sendmail +export MAIL_TO="xxx@xxx.com" # your account e-mail will be used as default if available +``` + +Ok, let's set notification hook: + +``` +acme.sh --set-notify --notify-hook mail +``` + +The `MAIL_BIN`, `MAIL_TO` and `MAIL_FROM` will be saved in ~/.acme.sh/account.conf and will be reused when needed. \ No newline at end of file