IRCNow

Differences

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

Link to this comparison view

Next revision
Previous revision
openbsd:mail:dovecot [2020/07/28 07:56]
jrmu created
openbsd:mail:dovecot [2020/07/29 11:00] (current)
jrmu
Line 1: Line 1:
 Here is how I set up dovecot. Here is how I set up dovecot.
 +
 +<​code>​
 +$ doas pkg_add dovecot
 +</​code>​
  
 In /​etc/​dovecot/​dovecot.conf,​ add these lines at the very bottom: In /​etc/​dovecot/​dovecot.conf,​ add these lines at the very bottom:
Line 18: Line 22:
 You can turn on debugging, verbose ssl, and so forth as you need to help troubleshoot. You can turn on debugging, verbose ssl, and so forth as you need to help troubleshoot.
  
 +In /​etc/​dovecot/​conf.d/​10-auth.conf,​ I make these changes:
  
 +<​code>​
 +#!include auth-system.conf.ext
 +passdb {
 +   args = scheme=blf-crypt /​etc/​mail/​passwd
 +   ​driver = passwd-file
 +}
 +
 +userdb {
 +   args = uid=vmail gid=vmail home=/​var/​vmail/​%d/​%n
 +   ​driver = static
 +}
 +</​code>​
 +
 +Comment out auth-system.conf.ext and add the new passdb/​userdb conf settings.
 +
 +In /​etc/​dovecot/​conf.d/​10-mail.conf:​
 +
 +<​code>​
 +mail_location = maildir:/​var/​vmail/​%d/​%n/​Maildir
 +</​code>​
 +
 +In /​etc/​dovecot/​conf.d/​10-ssl.conf,​ I make these changes:
 +
 +<​code> ​                                                                                   ​
 +ssl = required ​                                                                       ​
 +...
 +ssl_cert = </​etc/​ssl/​ircnow.org.fullchain.pem
 +ssl_key = </​etc/​ssl/​private/​ircnow.org.key
 +ssl_dh_parameters_length = 2048
 +</​code>​