Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| email:configure-dovecot [2026/01/15 16:08] – willy | email:configure-dovecot [2026/01/22 17:58] (current) – [Setup Sieve] willy | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| Sieve let's you create custom filters that will filter your inbound emails. | Sieve let's you create custom filters that will filter your inbound emails. | ||
| - | |||
| - | Changes in **conf.d/ | ||
| - | < | ||
| - | protocol lmtp { | ||
| - | mail_plugins = $mail_plugins sieve | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | And specify which folder should store the filters. | ||
| Changes in **conf.d/ | Changes in **conf.d/ | ||
| Line 90: | Line 81: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | And enable sieve for lmtp (local delivery), edit **conf.d/ | ||
| + | < | ||
| + | protocol lmtp { | ||
| + | mail_plugins { | ||
| + | sieve = yes | ||
| + | } | ||
| + | </ | ||
| + | |||
| ===== Setup authentication ===== | ===== Setup authentication ===== | ||
| Line 118: | Line 118: | ||
| ssl = yes | ssl = yes | ||
| ssl_server { | ssl_server { | ||
| - | cert_file = /etc/letsencrypt/ | + | cert_file = /etc/dovecot/ |
| - | key_file = /etc/letsencrypt/ | + | key_file = /etc/dovecot/ |
| } | } | ||
| </ | </ | ||
| + | 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 **/ | ||
| + | <file - dovecot.sh> | ||
| + | cp / | ||
| + | cp / | ||
| + | chmod o+r / | ||
| + | / | ||
| + | </ | ||
| + | the chmod is required for command line tools using **doveadm**, | ||
| ===== Testing ===== | ===== Testing ===== | ||