Displaying 5 results from an estimated 5 matches for "deploy_cert".
2017 Sep 08
5
Dovecot and Letsencrypt certs
So this morning at 4am I was awoken to my mail clients getting certificate errors for an expired certificate.
I hopped on to the server and checked and? no, the LE certs renewed last month and are valid until November.
After some moments of confusion I noticed that dovecot had been running since before the renewal, so I did a quick service dovecot restart which fixed everything.
Should dovecot
2017 Sep 09
1
Dovecot and Letsencrypt certs
...pt basically calls "run-parts /etc/dehydrated/hooks.d/" so I 
> can just drop hook scripts into that directory. Then in the hooks.d directory, I have the following:
>
> ????#!/bin/bash
>
> ????set -e
> ????set -u
> ????set -o pipefail
>
> ????if [[ ${1} == "deploy_cert" && ${2} == "mail.darac.org.uk" ]]; then
> ??????????? echo " + Hook: Restarting Dovecot..."
> ??????????? /usr/sbin/service dovecot restart
> ????fi
>
> That means that dovecot will be restarted only if the certificate for the mail server is being de...
2017 Sep 08
5
Dovecot and Letsencrypt certs
On Sep 8, 2017, at 07:56, Darac Marjal <mailinglist at darac.org.uk> wrote:
>  #!/bin/bash
> 
>    set -e
>    set -u
>    set -o pipefail
>    
>    if [[ ${1} == "deploy_cert" && ${2} == "mail.darac.org.uk" ]]; then
>            echo " + Hook: Restarting Dovecot..."
>            /usr/sbin/service dovecot restart
>    fi
> 
> That means that dovecot will be restarted only if the certificate for the mail server is being depl...
2017 Sep 08
0
Dovecot and Letsencrypt certs
...using dehydrated, I can share what I do. My hook script 
basically calls "run-parts /etc/dehydrated/hooks.d/" so I can just drop 
hook scripts into that directory. Then in the hooks.d directory, I have 
the following:
	#!/bin/bash
	set -e
	set -u
	set -o pipefail
	
	if [[ ${1} == "deploy_cert" && ${2} == "mail.darac.org.uk" ]]; then
	        echo " + Hook: Restarting Dovecot..."
	        /usr/sbin/service dovecot restart
	fi
That means that dovecot will be restarted only if the certificate for the 
mail server is being deployed. If dehydrated runs, but...
2017 Sep 08
0
Dovecot and Letsencrypt certs
...system.
2017-09-08 19:20 GMT+05:00 LuKreme <kremels at kreme.com>:
> On Sep 8, 2017, at 07:56, Darac Marjal <mailinglist at darac.org.uk> wrote:
>>  #!/bin/bash
>>
>>    set -e
>>    set -u
>>    set -o pipefail
>>
>>    if [[ ${1} == "deploy_cert" && ${2} == "mail.darac.org.uk" ]]; then
>>            echo " + Hook: Restarting Dovecot..."
>>            /usr/sbin/service dovecot restart
>>    fi
>>
>> That means that dovecot will be restarted only if the certificate for the mail s...