Enabling tcpwrappers

A. Schulze sca at andreasschulze.de
Sun Mar 27 22:06:43 UTC 2016


kepa:

> I would like use Dovecot with tcpwrappers enabled to control remote  
> access using hosts.deny and hosts.allow.

I followed http://wiki2.dovecot.org/LoginProcess#TCP_wrappers_support
and "man 5 hosts.deny"

- to allow all clients and deny a specific address

   /etc/hosts.deny
   imap: 192.0.2.143

- to deny all clients and allow a specific address

   /etc/hosts.deny
   imap: *

   /etc/hosts.allow
   imap: 192.0.2.143

Andreas




More information about the dovecot mailing list