问题原文
原帖链接 · p0lo · CC BY-SA 4.0
I don't know how to set up main.conf postfix config file and 10-ssl.conf dovecot config files in order to make my mail server capable to handle with multiple certificates. Let me explain... I have two domains at the same server, say
mail.example.itmail.example.com
and two different certificates for both in different folders
etc/letsencrypt/live/mail.example.itetc/letsencrypt/live/mail.example.com
The question is how should I set the tls parameters on main.conf of postfix configuration? It seems to support only one entry on
smtpd_tls_cert_filesmtpd_tls_key_file
The same issue on 10-ssl.conf of dovecot configuration: seems to support only one entry for
ssl_certssl_key
Many thanks for help
社区高分解答
原帖链接 · Billy · CC BY-SA 4.0
This is done by looking at the unencrypted domain name in the Server Name Indication (SNI) header in the TLS handshake to select the right certificate before any encrypted data is exchanged. At the moment (I'll edit this answer if this changes)
Update : SNI support introduced in postfix 3.4.0 - http://www.postfix.org/announcements/postfix-3.4.0.html
Dovecot, on the other hand, does. See this example configuration:
# Default
ssl_cert = </path/to/default/cert
ssl_key = </path/to/default/private/key
# mail.example.it
local_name mail.example.it {
ssl_cert = </etc/letsencrypt/live/mail.example.it
ssl_key = </path/to/mail.example.it/private/key
}
# mail.example.com
local_name mail.example.com {
ssl_cert = </etc/letsencrypt/live/mail.example.com
ssl_key = </path/to/mail.example.com/private/key
}
You can leave out each domain's ssl_key if it's the same as the default.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
