User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
email:configure-dovecot [2026/03/31 15:10] – [Setup Sieve] willyemail:configure-dovecot [2026/04/07 06:49] (current) willy
Line 120: Line 120:
 ssl = yes ssl = yes
 ssl_server { ssl_server {
-  cert_file = /etc/dovecot/fullchain.pem +  cert_file = /etc/letsencrypt/live/[ ... domain ... ]/fullchain.pem 
-  key_file = /etc/dovecot/privkey.pem+  key_file = /etc/letsencrypt/live/[ ... domain ... ]/privkey.pem
 } }
 </code> </code>
- 
-For this to work, you need to ensure that the certs are properly moved after being renewed by Let's Encrypt. I use the following post hook in **/etc/letsencrypt/renewal-hooks/post/dovecot.sh**: 
-<file - dovecot.sh> 
-cp /etc/letsencrypt/live/[cert path]/privkey.pem /etc/dovecot/privkey.pem 
-cp /etc/letsencrypt/live/[cert path]/fullchain.pem /etc/dovecot/fullchain.pem 
-chmod o+r /etc/dovecot/privkey.pem /etc/dovecot/fullchain.pem 
-/etc/init.d/dovecot restart 
-</file> 
- 
-the chmod is required for command line tools using **doveadm**, like PostfixAdmin. 
  
 ===== Testing ===== ===== Testing =====