dehydrated-email-notify-hook
dehydrated-email-notify-hook copied to clipboard
Wouldn't send e-mail, fixed
I had trouble getting this script to send e-mail. There were two causes. In the main dehydrated file, on line 225, there is an export command with a list of variable to be exported for use by the hook script. CONTACT_EMAIL is not one of them and needs to be added. (I set CONTACT_EMAIL in the config file.) In this script, in the deploy_challenge and clean_challenge functions, RECIPIENT is set as a previous RECIPIENT variable. RECIPIENT needs to be set to CONTACT_EMAIL. After those changes, were made, my e-mails were going though. Prior to that they were going to root@server.
CONTACT_EMAIL is the contact address for the account on the ACME server, and should not be assumed to be the destination for the emails produced by the hook script.