[Dovecot] setting up multiple listeners

Timo Sirainen tss at iki.fi
Fri Nov 18 19:24:31 EET 2011


On Fri, 2011-11-18 at 09:27 -0500, David Mehler wrote:
> Hello,
> 
> I'm using Dovecot v2 and am atempting to get webmail going. I'm trying
> to set up imap so that port 993 only is listening on the external
> interface, for both ipv4 and ipv6, but that on localhost only again
> for ipv4 and ipv6 unencrypted port 143 is active. I've tried various
> combinations but keep getting an error invalid number. I've googled
> and not come up with the missing point.

A full error message would have been nice, but basically you can do:

service imap-login {
  inet_listener imap {
    address = 127.0.0.1 ::1
  }
  inet_listener imaps {
    address = 1.2.3.4 f00::baa # your external ip addresses
  }
}





More information about the dovecot mailing list