<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""><blockquote type="cite" class=""><div class="">Le 1 juil. 2020 à 06:50, Jeremy Ardley <<a href="mailto:jeremy@ardley.org" class="">jeremy@ardley.org</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class=""><font face="Courier New, Courier, monospace" class="">I have a mail server with multiple IP addresses and associated DNS names</font></p><p class=""><font face="Courier New, Courier, monospace" class="">In the dovecot configuration I have a listen directive:</font></p><p class=""><font face="Courier New, Courier, monospace" class=""> listen = <a href="http://mail.example.com.com" class="">mail.example.com.com</a>,<a href="http://mail.otherexample.com" class="">mail.otherexample.com</a>,localhost<br class=""></font></p><p class=""><font face="Courier New, Courier, monospace" class="">Multiple local stanzas are of the form:</font></p><p class=""><font face="Courier New, Courier, monospace" class="">local <a href="http://mail.example.com" class="">mail.example.com</a> {<br class=""> protocol imap {<br class=""> ssl_cert = </etc/letsencrypt/live/<a href="http://mail.example.com/fullchain.pem" class="">mail.example.com/fullchain.pem</a><br class=""> ssl_key = </etc/letsencrypt/live/<a href="http://mail.example.com/privkey.pem" class="">mail.example.com/privkey.pem</a><br class=""><br class=""> service imaps_login {<br class=""> inet_listener imaps {<br class=""> address=<a href="http://mail.example.com" class="">mail.example.com</a><br class=""> }<br class=""> inet_listener imap {<br class=""> address=<a href="http://mail.example.com" class="">mail.example.com</a><br class=""> }<br class=""> } <br class=""> }<br class="">}</font><br class=""></p><p class=""><a href="http://mail.example.com" class="">mail.example.com</a> has IPv4 and IPv6 addresses in DNS</p><p class="">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 class=""></p><p class="">How do I force local generation for both IPv4 and IPv6 ?<br class=""></p></div></div></blockquote></div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">You can probably don’t use hostname for address directive, but instead space separated list of IP address you want to listen to.</span><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">And unless you need to disable dovecot on some interfaces, you don’t have to specify the listen directive, as it defaults to all IPv4 and IPv6 addresses.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></div></body></html>