Postfix SSL USING SNI

Bc96 asked:

I What to give assign multiple SSL cert to Multiple Domains

I have manage to do so :

by creating a single wild card SSL cert (e.g mail.example.com , mail.example2.com, etc)

But I Want Each domain to have its own ssl cert.

Like So
smtpd_tls_cert_file = msql:/etc/postfix/pem
smtpd_tls_key_file = mysql:/etc/postfix/key

SQL query is

Select dir From ssl where domain = "$1" limit 1;

My answer:


Your mail server only has one name and your TLS certificate only needs to have that name. The domains you accept mail for are irrelevant. There is no need to attempt to do this at all.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.