[Dovecot] Howto disable imap listener in dovecot 2.0
Hi,
How do I disable the imap listener in dovecot 2.0-beta-3? I only want to enable the imaps listener. In previous dovecot versions I could specify:
prototols = imaps
But in dovecot 2.0 this is no longer possible (imap and imaps are now both enabled with "protocols = imap"). I already made ssl a requirement with:
ssl = required
This is in the global section. I commented out the imap listener in master.conf, but "dovecot -a" still shows the config for the imap listener, so I suppose it's default configuration.
Can I explicitly tell dovecot to not open an imap listener, but only an imaps listener?
Kind regards,
Erik.
Am 10.03.2010 um 17:17 schrieb Erik Logtenberg:
Hi,
How do I disable the imap listener in dovecot 2.0-beta-3? I only want to enable the imaps listener. In previous dovecot versions I could specify:
prototols = imaps
Hi Erik,
service imap-login { inet_listener imap { port = 0 } inet_listener imaps { port = 993 } }
should do the trick (untested).
Regards Thomas
Hi,
Thanks for the tip. Is setting the port to 0 actually a designed feature, or is it merely a accidental behaviour of the current implementation? (and as such prone to unannounced change)
Unfortunately the documentation doesn't mention the "port" directive at all: http://wiki2.dovecot.org/MainConfig In fact the usage of "imaps" in the "protocols" directive is still documented, but that certainly doesn't work anymore.
Regards,
Erik.
On 03/10/2010 06:56 PM, Thomas Leuxner wrote:
Am 10.03.2010 um 17:17 schrieb Erik Logtenberg:
Hi,
How do I disable the imap listener in dovecot 2.0-beta-3? I only want to enable the imaps listener. In previous dovecot versions I could specify:
prototols = imaps
Hi Erik,
service imap-login { inet_listener imap { port = 0 } inet_listener imaps { port = 993 } }
should do the trick (untested).
Regards Thomas
On 11.3.2010, at 1.36, Erik Logtenberg wrote:
Thanks for the tip. Is setting the port to 0 actually a designed feature, or is it merely a accidental behaviour of the current implementation? (and as such prone to unannounced change)
It's intentionally added feature. Also latest hg version automatically changes "protocols=imaps" to instead set imap port to 0 (while warning about obsolete setting).
Unfortunately the documentation doesn't mention the "port" directive at all: http://wiki2.dovecot.org/MainConfig In fact the usage of "imaps" in the "protocols" directive is still documented, but that certainly doesn't work anymore.
There is no documentation of v2.0 configs yet. wiki2 is still almost the same as wiki1.
Allright Timo, thanks for confirming.
When I do uncomment the "inet_listener imap" line and set the port to 0, I get the following error message:
Mar 11 00:53:45 mbox dovecot: config: Fatal: Error in configuration file /opt/dovecot-2.0.beta3/etc/dovecot/dovecot.conf: duplicate listener: 0:
What could I have done wrong?
I grepped for other "inet_listener" directives, but they are only specified in master.conf and there is only one "inet_listener imap" and one "inet_listener imaps" in there. So I can't find anything that's duplicate.
Kind regards,
Erik.
On 03/11/2010 12:47 AM, Timo Sirainen wrote:
On 11.3.2010, at 1.36, Erik Logtenberg wrote:
Thanks for the tip. Is setting the port to 0 actually a designed feature, or is it merely a accidental behaviour of the current implementation? (and as such prone to unannounced change)
It's intentionally added feature. Also latest hg version automatically changes "protocols=imaps" to instead set imap port to 0 (while warning about obsolete setting).
Unfortunately the documentation doesn't mention the "port" directive at all: http://wiki2.dovecot.org/MainConfig In fact the usage of "imaps" in the "protocols" directive is still documented, but that certainly doesn't work anymore.
There is no documentation of v2.0 configs yet. wiki2 is still almost the same as wiki1.
participants (3)
-
Erik Logtenberg
-
Thomas Leuxner
-
Timo Sirainen