local stanza only generated for IPv6

Jean-Daniel jddupas at xooloo.com
Wed Jul 1 08:21:39 EEST 2020



> Le 1 juil. 2020 à 06:50, Jeremy Ardley <jeremy at ardley.org> a écrit :
> 
> 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 ?
> 
You can probably don’t use hostname for address directive, but instead space separated list of IP address you want to listen to.

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.

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


More information about the dovecot mailing list