Dovecot ssl config when adding new domain via Virtualmin

1 post / 0 new
#1 Thu, 10/18/2018 - 12:05
diegoweb

Dovecot ssl config when adding new domain via Virtualmin

Hey!

Is it possible to make "ssl_cert" variable in the file /etc/dovecot/dovecot.conf use .everything extension instead of .cert extension? For example, the default config is this one below:

local_name mydomain.com {
  ssl_cert = </home/playplus/ssl.cert
  ssl_key = </home/playplus/ssl.key
}
local_name www.mydomain.com {
  ssl_cert = </home/playplus/ssl.cert
  ssl_key = </home/playplus/ssl.key
}
local_name mail.mydomain.com {
  ssl_cert = </home/playplus/ssl.cert
  ssl_key = </home/playplus/ssl.key
}

Using .everything extension:

local_name mydomain.com {
  ssl_cert = </home/playplus/ssl.everything
  ssl_key = </home/playplus/ssl.key
}
local_name www.mydomain.com {
  ssl_cert = </home/playplus/ssl.everything
  ssl_key = </home/playplus/ssl.key
}
local_name mail.mydomain.com {
  ssl_cert = </home/playplus/ssl.everything
  ssl_key = </home/playplus/ssl.key
}

I'm asking this because Google for example is not accepting the .cert file itself when I try secure POP3/IMAP connection. If I set the ssl.everything, Google accepts the connection.

I want this to be the default pattern when adding new domains, so I don't have to open the dovecot.conf every time and change the ssl_cert string. Is it possible?