Bug 796577

Summary: Dovecot disconnects remote clients immediately.
Product: [Fedora] Fedora Reporter: Christian Birch <christianrbirch>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-23 11:13:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Christian Birch 2012-02-23 08:47:35 UTC
Description of problem:

Dovecot will disconnect remote clients immediately because of a wrong default 10-master.conf. I verified this with #dovecot on Freenode. Solution is below.

Version-Release number of selected component (if applicable):

2.0.17 (684381041dc4+)

How reproducible:

Is reproducible. See below.

Steps to Reproduce:

Use VirtualBox to setup dovecot on a Fedora guest, then verify that you may connect from the guest itself. Now forward e.g. port 11011 on the host to 110 on the guest and try to connect from the host. Will get disconnected immediately.
  
Actual results:

Getting disconnected immediately after being connected.

Expected results:

*Not* being disconnected immediately after being connected.

Additional info:

Problem is "address = localhost" for inet_listener pop3 { ... }, inet_listener imap { ... } etc. in 10-master.conf. Uncommenting those lines solves the problem:

service pop3-login {
  inet_listener pop3 {
    #port = 110
    #address = localhost # allow plain imap only on localhost
  }
...

service imap-login {
  inet_listener imap {
    #port = 143
    #address = localhost # allow plain imap only on localhost
  }
...

Comment 1 Michal Hlavinka 2012-02-23 09:07:41 UTC
There is no dovecot 2.0.17 rpm for Fedora 17. We have dovecot 2.1 there. What package do you use?

Comment 2 Christian Birch 2012-02-23 10:08:45 UTC
Sorry, this should have been Fedora 16. I just edited the bug.

Comment 3 Michal Hlavinka 2012-02-23 11:13:06 UTC

*** This bug has been marked as a duplicate of bug 767542 ***