03_exim4-config_tlsoptions 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ### main/03_exim4-config_tlsoptions
  2. #################################
  3. # TLS/SSL configuration for exim as an SMTP server.
  4. # See /usr/share/doc/exim4-base/README.Debian.gz for explanations.
  5. .ifdef MAIN_TLS_ENABLE
  6. # Defines what hosts to 'advertise' STARTTLS functionality to. The
  7. # default, *, will advertise to all hosts that connect with EHLO.
  8. .ifndef MAIN_TLS_ADVERTISE_HOSTS
  9. MAIN_TLS_ADVERTISE_HOSTS = *
  10. .endif
  11. tls_advertise_hosts = MAIN_TLS_ADVERTISE_HOSTS
  12. # Full paths to Certificate and Private Key. The Private Key file
  13. # must be kept 'secret' and should be owned by root.Debian-exim mode
  14. # 640 (-rw-r-----). exim-gencert takes care of these prerequisites.
  15. # Normally, exim4 looks for certificate and key in different files:
  16. # MAIN_TLS_CERTIFICATE - path to certificate file,
  17. # CONFDIR/exim.crt if unset
  18. # MAIN_TLS_PRIVATEKEY - path to private key file
  19. # CONFDIR/exim.key if unset
  20. # You can also configure exim to look for certificate and key in the
  21. # same file, set MAIN_TLS_CERTKEY to that file to enable. This takes
  22. # precedence over all other settings regarding certificate and key file.
  23. .ifdef MAIN_TLS_CERTKEY
  24. tls_certificate = MAIN_TLS_CERTKEY
  25. .else
  26. .ifndef MAIN_TLS_CERTIFICATE
  27. MAIN_TLS_CERTIFICATE = CONFDIR/exim.crt
  28. .endif
  29. tls_certificate = MAIN_TLS_CERTIFICATE
  30. .ifndef MAIN_TLS_PRIVATEKEY
  31. MAIN_TLS_PRIVATEKEY = CONFDIR/exim.key
  32. .endif
  33. tls_privatekey = MAIN_TLS_PRIVATEKEY
  34. .endif
  35. # Pointer to the CA Certificates against which client certificates are
  36. # checked. This is controlled by the `tls_verify_hosts' and
  37. # `tls_try_verify_hosts' lists below.
  38. # If you want to check server certificates, you need to add an
  39. # tls_verify_certificates statement to the smtp transport.
  40. # /etc/ssl/certs/ca-certificates.crt is generated by
  41. # the "ca-certificates" package's update-ca-certificates(8) command.
  42. .ifndef MAIN_TLS_VERIFY_CERTIFICATES
  43. MAIN_TLS_VERIFY_CERTIFICATES = ${if exists{/etc/ssl/certs/ca-certificates.crt}\
  44. {/etc/ssl/certs/ca-certificates.crt}\
  45. {/dev/null}}
  46. .endif
  47. tls_verify_certificates = MAIN_TLS_VERIFY_CERTIFICATES
  48. # A list of hosts which are constrained by `tls_verify_certificates'. A host
  49. # that matches `tls_verify_host' must present a certificate that is
  50. # verifyable through `tls_verify_certificates' in order to be accepted as an
  51. # SMTP client. If it does not, the connection is aborted.
  52. .ifdef MAIN_TLS_VERIFY_HOSTS
  53. tls_verify_hosts = MAIN_TLS_VERIFY_HOSTS
  54. .endif
  55. # A weaker form of checking: if a client matches `tls_try_verify_hosts' (but
  56. # not `tls_verify_hosts'), request a certificate and check it against
  57. # `tls_verify_certificates' but do not abort the connection if there is no
  58. # certificate or if the certificate presented does not match. (This
  59. # condition can be tested for in ACLs through `verify = certificate')
  60. # By default, this check is done for all hosts. It is known that some
  61. # clients (including incredimail's version downloadable in February
  62. # 2008) choke on this. To disable, set MAIN_TLS_TRY_VERIFY_HOSTS to an
  63. # empty value.
  64. .ifdef MAIN_TLS_TRY_VERIFY_HOSTS
  65. tls_try_verify_hosts = MAIN_TLS_TRY_VERIFY_HOSTS
  66. .endif
  67. .endif