> On 22 Dec 2015, at 01:10, SATOH Fumiyasu <fumi...@osstech.jp> wrote: > > Hi, > > I have the following configuration in my dovecot.conf for Dovecot 2.2.21: > > passdb { > driver = ldap > args = /etc/dovecot/dovecot-ldap.conf.ext > default_fields = allow_nets=local,127.0.0.1,10.255.1.0/24 > } > > This triggers "auth: Panic" on POP3/IMAP logins as the below: > > Dec 22 14:57:39 localhost dovecot: auth: > ldap(u0000,::1,<oiF8SHYngqsAAAAAAAAAAAAAAAAAAAAB>): allow_nets: Invalid > network 'local' > Dec 22 14:57:39 localhost dovecot: auth: Panic: file net.c: line 1137 > (net_is_in_network): assertion failed: (IPADDR_IS_V6(ip) == > IPADDR_IS_V6(net_ip)) > > `doveadm auth test <username> <password>` is no problem as expected. > > What's wrong?
allow_nets can only contain IP/network ranges. You can't use any names like "local". Anyway, it still shouldn't crash. This fixes it: https://github.com/dovecot/core/commit/f53a1b98d6792a3aa28474fca0901b1de035f8ba