local stanza only generated for IPv6

Jeremy Ardley jeremy at ardley.org
Wed Jul 1 07:50:11 EEST 2020


I have a mail server with multiple IP addresses and associated DNS names

In the dovecot configuration I have a listen directive:

    listen = mail.example.com.com,mail.otherexample.com,localhost

Multiple local stanzas are of the form:

local mail.example.com {
  protocol imap {
     ssl_cert = </etc/letsencrypt/live/mail.example.com/fullchain.pem
     ssl_key = </etc/letsencrypt/live/mail.example.com/privkey.pem

     service imaps_login {
       inet_listener imaps {
         address=mail.example.com
       }
       inet_listener imap {
         address=mail.example.com
       }
     }
  }
}

mail.example.com has IPv4 and IPv6 addresses in DNS

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.

How do I force local generation for both IPv4 and IPv6 ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20200701/4ed9d702/attachment.html>


More information about the dovecot mailing list