exim4:tls
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exim4:tls [2016/11/30 12:13] – created peter | exim4:tls [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Exim4 - TLS ====== | ====== Exim4 - TLS ====== | ||
- | |||
- | Generate your keys. | ||
- | |||
- | first switch to cd /etc | ||
===== Generate a 1024-bit RSA key ===== | ===== Generate a 1024-bit RSA key ===== | ||
<code bash> | <code bash> | ||
- | openssl req -x509 -newkey rsa:1024 -keyout | + | openssl req -x509 -newkey rsa:1024 -keyout |
</ | </ | ||
Line 15: | Line 11: | ||
<code bash> | <code bash> | ||
- | openssl dhparam -out eximdeffie.key 1024 | + | openssl dhparam -out exim.dhparam |
</ | </ | ||
- | The DH key is not required. | + | The DH key is optional |
+ | |||
+ | ===== Update Exim Config ===== | ||
Edit your Exim's configuration file, adding the following lines: | Edit your Exim's configuration file, adding the following lines: | ||
< | < | ||
- | tls_advertise_hosts = * | ||
- | |||
# | # | ||
# Enable TLS with strong ciphers | # Enable TLS with strong ciphers | ||
Line 47: | Line 43: | ||
</ | </ | ||
- | #************************ | + | <WRAP info> |
+ | If tls_dhparam is set, the SSL library is initialized for the use of Diffie-Hellman ciphers with the parameters contained in the file. Set this to none to disable use of DH entirely, by making no prime available: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | The ciphers could be set as something like: | ||
+ | |||
+ | < | ||
+ | tls_require_ciphers = ${if =={$received_port}{25}\ | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | # Use this command to check the ciphers that openssl supports: | ||
+ | |||
+ | <code bash> | ||
+ | openssl ciphers ' | ||
+ | </ | ||
+ | </ | ||
+ | ===== Logging ===== | ||
During run-time mainlog entries showing TLS: | During run-time mainlog entries showing TLS: | ||
Line 63: | Line 78: | ||
### acl_start_tls: | ### acl_start_tls: | ||
### | ### | ||
- | |||
acl_start_tls: | acl_start_tls: | ||
- | accept | + | |
- | $sender_host_address: | + | |
Line 77: | Line 89: | ||
acl_check_helo: | acl_check_helo: | ||
- | + | | |
- | # | + | # Report |
- | | + | # |
- | | + | warn condition = ${if def: |
- | | + | logwrite = CRYPTO: Client $sender_host_address: |
- | | + | |
- | $sender_host_address: | + | |
</ | </ | ||
+ |
exim4/tls.1480508007.txt.gz · Last modified: 2020/07/15 09:30 (external edit)