Debian Codegraph @

debian/debconf/conf.d/main/03_exim4-config_tlsoptions

raw
1
2 ### main/03_exim4-config_tlsoptions
3 #################################
4
5 # TLS/SSL configuration for exim as an SMTP server.
6 # See /usr/share/doc/exim4-base/README.Debian.gz for explanations.
7
8 .ifdef MAIN_TLS_ENABLE
9
10 # Full paths to Certificate and Private Key. The Private Key file
11 # must be kept 'secret' and should be owned by root.Debian-exim mode
12 # 640 (-rw-r-----). exim-gencert takes care of these prerequisites.
13 # Normally, exim4 looks for certificate and key in different files:
14 # MAIN_TLS_CERTIFICATE - path to certificate file,
15 # CONFDIR/exim.crt if unset
16 # MAIN_TLS_PRIVATEKEY - path to private key file
17 # CONFDIR/exim.key if unset
18 # You can also configure exim to look for certificate and key in the
19 # same file, set MAIN_TLS_CERTKEY to that file to enable. This takes
20 # precedence over all other settings regarding certificate and key file.
21 .ifdef MAIN_TLS_CERTKEY
22 tls_certificate = MAIN_TLS_CERTKEY
23 .else
24 .ifndef MAIN_TLS_CERTIFICATE
25 MAIN_TLS_CERTIFICATE = CONFDIR/exim.crt
26 .endif
27 tls_certificate = MAIN_TLS_CERTIFICATE
28
29 .ifndef MAIN_TLS_PRIVATEKEY
30 MAIN_TLS_PRIVATEKEY = CONFDIR/exim.key
31 .endif
32 tls_privatekey = MAIN_TLS_PRIVATEKEY
33 .endif
34
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
49
50 # A list of hosts which are constrained by `tls_verify_certificates'. A host
51 # that matches `tls_verify_host' must present a certificate that is
52 # verifyable through `tls_verify_certificates' in order to be accepted as an
53 # SMTP client. If it does not, the connection is aborted.
54 .ifdef MAIN_TLS_VERIFY_HOSTS
55 tls_verify_hosts = MAIN_TLS_VERIFY_HOSTS
56 .endif
57
58 # A weaker form of checking: if a client matches `tls_try_verify_hosts' (but
59 # not `tls_verify_hosts'), request a certificate and check it against
60 # `tls_verify_certificates' but do not abort the connection if there is no
61 # certificate or if the certificate presented does not match. (This
62 # condition can be tested for in ACLs through `verify = certificate')
63 # By default, this check is done for all hosts. It is known that some
64 # clients (including incredimail's version downloadable in February
65 # 2008) choke on this. To disable, set MAIN_TLS_TRY_VERIFY_HOSTS to an
66 # empty value.
67 .ifdef MAIN_TLS_TRY_VERIFY_HOSTS
68 tls_try_verify_hosts = MAIN_TLS_TRY_VERIFY_HOSTS
69 .endif
70
71 .else
72 # Use upstream defaults
73 .endif
74
75 # Defines what hosts to 'advertise' STARTTLS functionality to. The
76 # upstream default, *, will advertise to all hosts that connect with EHLO.
77 .ifdef MAIN_TLS_ADVERTISE_HOSTS
78 tls_advertise_hosts = MAIN_TLS_ADVERTISE_HOSTS
79 .endif