RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 986045 - dovecot imap sometimes fails to start because another service has taken the IMAPS port
Summary: dovecot imap sometimes fails to start because another service has taken the I...
Keywords:
Status: CLOSED DUPLICATE of bug 723228
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dovecot
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-18 20:45 UTC by Ben Webb
Modified: 2013-08-14 11:08 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-14 11:08:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ben Webb 2013-07-18 20:45:20 UTC
Description of problem:
dovecot starts up pretty late in the boot process (S65 in runlevel 3). So sometimes another service that binds to a random port (NFS in our case) starts up before it, and binds to a port that dovecot wants to use. Consequently, dovecot will not start.

Version-Release number of selected component (if applicable):
dovecot-2.0.9-5.el6.x86_64

How reproducible:
Some (small) fraction of the time.

Steps to Reproduce:
1. Install dovecot and configure it to listen on the imaps port.
2. Start up the system.

Actual results:
Sometimes another process will bind to port 993 before dovecot and so it won't start up. Trying to start it manually also won't work:
# /sbin/service dovecot start
Starting Dovecot Imap: Error: service(imap-login): listen(*, 993) failed: Address already in use
Fatal: Failed to start listeners
                                                           [FAILED]

(I guess you could force this to happen 100% of the time by pinning one of the NFS daemons to port 993 by modifying /etc/sysconfig/nfs.)


Expected results:
dovecot starts normally.


Additional info:
A fix that works for me: use portreserve, i.e.

echo "993" > /etc/portreserve/imaps

Add to /etc/init.d/dovecot in the start() function:
     [ -x /sbin/portrelease ] && /sbin/portrelease imaps &>/dev/null || :

Comment 1 Michal Hlavinka 2013-08-14 11:08:02 UTC
This was already reported. Closing as duplicate.
Unfortunately, the original bug is private, so you won't be able to see it.

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


Note You need to log in before you can comment on or make changes to this bug.