Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559844

Summary: net-mail/dovecot: what is USE=pop3c doing
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED INVALID    
Severity: normal CC: eras
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2015-09-07 09:21:54 UTC
# emerge -pv dovecot

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-mail/dovecot-2.2.16-r1  USE="bzip2 ipv6 maildir pam ssl tcpd zlib -caps -cydir -doc -imapc -kerberos -ldap -lucene -lz4 -lzma -managesieve -mbox -mdbox -mysql -pop3c -postgres -sdbox (-selinux) -sieve -solr -sqlite -static-libs -suid -vpopmail" 0 kB
#

Hmm, but dovecot seems to listen on port 110 with the above USE flags. It is unencrypted, true.

# netstat -l | grep pop3
tcp        0      0 *:pop3                  *:*                     LISTEN     
tcp        0      0 *:pop3s                 *:*                     LISTEN     
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN     
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     2037596  /var/run/dovecot/login/pop3
#

So what is USE=pop3c? I don't see anything like that here:

# grep pop3 /etc/services 
pop3            110/tcp         pop-3           # Post Office Protocol - Version 3
pop3            110/udp         pop-3
pop3s           995/tcp                         # pop3 protocol over TLS/SSL
pop3s           995/udp
#

# euse --info pop3c
global use flags (searching: pop3c)
************************************************************
no matching entries found

local use flags (searching: pop3c)
************************************************************
[-      ] pop3c
    net-mail/dovecot: Add pop3 client storage support
        [-  ] 2.2.9 [gentoo]
        [-  ] 2.2.16-r1 [gentoo]
        [-  ] 2.2.18 [gentoo]

# euse --info pop3
global use flags (searching: pop3)
************************************************************
no matching entries found

local use flags (searching: pop3)
************************************************************
no matching entries found
#


Please document what is the USE flag doing. Initially I thought I do not have enabled ports 110 or 995 but that is fortunately not the case?
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-09-07 09:49:54 UTC
local use flags (searching: pop3c)
************************************************************
[-      ] pop3c
    net-mail/dovecot: Add pop3 client storage support
        [-  ] 2.2.9 [gentoo]
        [-  ] 2.2.16-r1 [gentoo]
        [-  ] 2.2.18 [gentoo]
Comment 2 Martin Mokrejš 2015-09-11 21:59:59 UTC
I have USE=-pop3c but am happily using dovecot as a POP3 server for my external client. If the USE flag to enable some builtin POP3 client (no idea what it would be useful for), then I would not mind. However, the portname/portnumber would better respect namings from /etc/services. Or just provide better description served by 'euse --info pop3c', especially as it is the only package providing this USE flag.

My naive expectation is/was that USE=-pop3 would disable the service on port 110, maybe even 109 which I think the pop1 protocol in the past. Then I would understand that USE=pop3s is for enabling/disabling the port 995 servicing. However, I am talking about server-side options, IMHO. I don';t get what the "client" means here.
Comment 3 Eray Aslan gentoo-dev 2015-09-15 05:19:21 UTC
pop3c determines whether we build a pop3 client.  Pop3 server is a different thing altogether and is configured via teh configuration files.

Here is one use case for pop3c:
http://wiki2.dovecot.org/Migration/Dsync