Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

81 rader
3.2 KiB

  1. ##
  2. ## SSL settings
  3. ##
  4. # SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
  5. #ssl = yes
  6. ssl = required
  7. # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
  8. # dropping root privileges, so keep the key file unreadable by anyone but
  9. # root. Included doc/mkcert.sh can be used to easily generate self-signed
  10. # certificate, just make sure to update the domains in dovecot-openssl.cnf
  11. ssl_cert = </etc/ssl/certs/mailserver.pem
  12. ssl_key = </etc/ssl/private/mailserver.pem
  13. # When using Let's Encrypt use these lines instead:
  14. # ssl_cert = </etc/letsencrypt/live/webmail.example.org/fullchain.pem
  15. # ssl_key = </etc/letsencrypt/live/webmail.example.org/privkey.pem
  16. # If key file is password protected, give the password here. Alternatively
  17. # give it when starting dovecot with -p parameter. Since this file is often
  18. # world-readable, you may want to place this setting instead to a different
  19. # root owned 0600 file by using ssl_key_password = <path.
  20. #ssl_key_password =
  21. # PEM encoded trusted certificate authority. Set this only if you intend to use
  22. # ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
  23. # followed by the matching CRL(s). (e.g. ssl_ca = </etc/ssl/certs/ca.pem)
  24. #ssl_ca =
  25. # Require that CRL check succeeds for client certificates.
  26. #ssl_require_crl = yes
  27. # Directory and/or file for trusted SSL CA certificates. These are used only
  28. # when Dovecot needs to act as an SSL client (e.g. imapc backend or
  29. # submission service). The directory is usually /etc/ssl/certs in
  30. # Debian-based systems and the file is /etc/pki/tls/cert.pem in
  31. # RedHat-based systems.
  32. ssl_client_ca_dir = /etc/ssl/certs
  33. #ssl_client_ca_file =
  34. # Request client to send a certificate. If you also want to require it, set
  35. # auth_ssl_require_client_cert=yes in auth section.
  36. #ssl_verify_client_cert = no
  37. # Which field from certificate to use for username. commonName and
  38. # x500UniqueIdentifier are the usual choices. You'll also need to set
  39. # auth_ssl_username_from_cert=yes.
  40. #ssl_cert_username_field = commonName
  41. # SSL DH parameters
  42. # Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096`
  43. # Or migrate from old ssl-parameters.dat file with the command dovecot
  44. # gives on startup when ssl_dh is unset.
  45. ssl_dh = </usr/share/dovecot/dh.pem
  46. # Minimum SSL protocol version to use. Potentially recognized values are SSLv3,
  47. # TLSv1, TLSv1.1, and TLSv1.2, depending on the OpenSSL version used.
  48. #ssl_min_protocol = TLSv1
  49. # SSL ciphers to use, the default is:
  50. #ssl_cipher_list = ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
  51. # To disable non-EC DH, use:
  52. #ssl_cipher_list = ALL:!DH:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
  53. # Colon separated list of elliptic curves to use. Empty value (the default)
  54. # means use the defaults from the SSL library. P-521:P-384:P-256 would be an
  55. # example of a valid value.
  56. #ssl_curve_list =
  57. # Prefer the server's order of ciphers over client's.
  58. #ssl_prefer_server_ciphers = no
  59. # SSL crypto device to use, for valid values run "openssl engine"
  60. #ssl_crypto_device =
  61. # SSL extra options. Currently supported options are:
  62. # compression - Enable compression.
  63. # no_ticket - Disable SSL session tickets.
  64. #ssl_options =