[Dovecot] How to disable pop3 in version 2?

Knute Johnson dovecot at knutejohnson.com
Wed Nov 23 02:40:31 EET 2011


On 11/22/2011 3:03 PM, Timo Sirainen wrote:
> On 23.11.2011, at 0.53, Knute Johnson wrote:
>
>> I'm about to bring up a new mail server running Ubuntu 11.10 with
>> Dovecot 2.  I've been using 1.2 all along and there are a bunch
>> more config files in 2.  In 1.2 I just edited the protocols
>> statement but I can't find one in version 2.  Is there a way to
>> disable pop3 or do I just firewall the ports?
>
> In the example dovecot.conf there's a protocols setting. If you don't
> see any, you can just add your own wherever. "protocols=imap" should
> work.
>
>> And a related question, I've been using imaps on port 993 but I
>> hear that's not the best solution anymore, I should be using imap
>> with STARTTLS?  How do I disable imaps?
>
> Well, http://wiki2.dovecot.org/SSL explains this more. I don't think
> you really need to disable imaps, but if you want to, you can do it
> with:
>
> service imap-login { inet_listener imaps { port = 0 } }
>
>

Thanks for that.  The service imap-login line above is in the file 
/etc/dovecot/conf.d/10-master.conf.  I don't know if that is standard 
for version 2 or something that Ubuntu created.

The Ubuntu installation has this line in the /etc/dovecot/dovecot.conf file;

!include_try /usr/share/dovecot/protocols.d/*.protocol

That directory contains one file;

dovecot-imapd.protocol

and it contains one line;

protocols = $protocols imap

So I am assuming that it is adding imap to the protocols in the 
environment variable $protocols somehow?

dovecot -n yields;

protocols = " imap"

I did get TBird to retrieve mail from port 993 using SSL however.  Will 
it work without a protocols = imaps?

Thanks,

-- 


Knute Johnson



More information about the dovecot mailing list