allow_nets equivalent for all users?

Aki Tuomi aki.tuomi at open-xchange.com
Mon Mar 14 16:51:03 UTC 2022


> On 14/03/2022 18:48 Bryan K. Walton <bwalton.21225 at leepfrog.com> wrote:
> 
>  
> On Mon, Mar 14, 2022 at 06:33:16PM +0200, Aki Tuomi wrote:
> > 
> > If you really want, you can add default_fields = allow_nets=value or override_fields = allow_nets=value to the passdb.
> > 
> > But question arises, why not just firewall the machine and allow connections from trusted networks only?
> > 
> 
> Thanks, Aki,
> 
> Our Dovecot configures users against a directory, so I was hoping for
> something that could go into dovecot.conf.
> As for why though: defense in depth.
> 
> Thanks,
> Bryan

you can put 

passdb {
  ....
  default_fields = allow_nets=value
}

in dovecot.conf

Aki


More information about the dovecot mailing list