<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Courier New, Courier, monospace">I have a mail server
with multiple IP addresses and associated DNS names</font></p>
<p><font face="Courier New, Courier, monospace">In the dovecot
configuration I have a listen directive:</font></p>
<p><font face="Courier New, Courier, monospace"> listen =
mail.example.com.com,mail.otherexample.com,localhost<br>
</font></p>
<p><font face="Courier New, Courier, monospace"> Multiple local
stanzas are of the form:</font></p>
<p><font face="Courier New, Courier, monospace">local
mail.example.com {<br>
protocol imap {<br>
ssl_cert =
</etc/letsencrypt/live/mail.example.com/fullchain.pem<br>
ssl_key =
</etc/letsencrypt/live/mail.example.com/privkey.pem<br>
<br>
service imaps_login {<br>
inet_listener imaps {<br>
address=mail.example.com<br>
}<br>
inet_listener imap {<br>
address=mail.example.com<br>
}<br>
} <br>
}<br>
}</font><br>
</p>
<p>mail.example.com has IPv4 and IPv6 addresses in DNS</p>
<p>When I run doveconf -n the local configuration is only generated
for the IPv6 address. I can test the operation on IPv6 using
openSSL and see different server certificates on different IP
addresses as expected.<br>
</p>
<p>How do I force local generation for both IPv4 and IPv6 ?<br>
</p>
</body>
</html>