I'm using nginx for proxying pop/pops & imap/imaps. It has been configured with certificates for the ssl interfaces and everything works fine for SSL & non-SSL.
The issue I'm having is that for tls I can't configure nginx to use the pop certificate for pop and imap certificate for imap.
It can be seen in the mail configuration file for TLS it is only possible for the ssl_certificate to be referenced to one file and not separate files:
Ideally I would expect something similar to below, but I can't work out how I could do it and if it is even possible.
$ egrep -i 'SSL|TLS' nginx.conf.mail
# on whether cleartext login is available (see description for starttls)
# For example, if starttls is set to only, then SASL PLAIN is not
# available outside of TLS/SSL
# TLS configuration