Here is what I came up with, if this seems to make sense and is considered as a patch, *please do proofread and test it, I did no such thing on my end.*
One small remark: the "+" after ssl_key and ssl_cert (lines 122+123) mean "match one or more of the last character". Thus, a config line like "ssl_certttttt=/foo/bar" would match too. The line should be fine without the "+" here. And it will break if the filename contains whitespace, but I'm not sure if dovecot supports this (and imho it's a stupid idea anyway).
-- Herwin Weststrate Studenten Net Twente -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org