[Dovecot] 1.1.1-1 gotcha with Fedora Rawhide package
I just installed the Rawhide package on my CentOS 5 system. The one item that bit me is that the config file defaults to using interface "[::]" so it only listens on IPv6. (This is from a patch in the package that changes the upstream default of "*", so it only affects those using the Fedora package.)
For those wanting to track the issue, here's the Bugzilla:
<https://bugzilla.redhat.com/show_bug.cgi?id=453054>
I rebuilt the package from the source RPM, to make sure it was "tuned" to the C5 distro.
I got the source RPM here, from the Portland State mirror:
<http://mirrors.cat.pdx.edu/fedora/linux/development/source/SRPMS/dovecot-1.1.1-1.fc10.src.rpm>
Here's a full list of Rawhide mirrors:
<http://mirrors.fedoraproject.org/publiclist/Fedora/development/>
If you'd like to see all Red Hat bugs associated with dovecot, here's a suitable query:
Kenneth Porter píše v Čt 26. 06. 2008 v 16:24 -0700:
I just installed the Rawhide package on my CentOS 5 system. The one item that bit me is that the config file defaults to using interface "[::]" so it only listens on IPv6. (This is from a patch in the package that changes the upstream default of "*", so it only affects those using the Fedora package.)
For those wanting to track the issue, here's the Bugzilla:
The default "listen" setting is consistent with this setting in the 1.0.x series in F-9 and earlier. It used the "[::] listens in on all IPv6 intefaces, but may also listen on all IPV4 interfaces depending on the OS" clause. So now I need to check what has changed, whether the listen code in dovecot 1.1 (vs, the 1.0.x) or newer glibc is the cause or ...
Dan
-- Fedora and Red Hat package maintainer
On Fri, 2008-06-27 at 07:35 +0200, Dan Horák wrote:
Kenneth Porter píše v Čt 26. 06. 2008 v 16:24 -0700:
I just installed the Rawhide package on my CentOS 5 system. The one item that bit me is that the config file defaults to using interface "[::]" so it only listens on IPv6. (This is from a patch in the package that changes the upstream default of "*", so it only affects those using the Fedora package.)
For those wanting to track the issue, here's the Bugzilla:
The default "listen" setting is consistent with this setting in the 1.0.x series in F-9 and earlier. It used the "[::] listens in on all IPv6 intefaces, but may also listen on all IPV4 interfaces depending on the OS" clause. So now I need to check what has changed, whether the listen code in dovecot 1.1 (vs, the 1.0.x) or newer glibc is the cause or ...
v1.1 changed, because using the same socket for IPv4 and IPv6 caused the IPv4 connections to use IPv4-mapped IPv6 addresses which then caused problems.
So if you want to listen on both IPv4 and IPv6, use:
listen = *, [::]
Timo Sirainen píše v Pá 27. 06. 2008 v 09:43 +0300:
On Fri, 2008-06-27 at 07:35 +0200, Dan Horák wrote:
Kenneth Porter píše v Čt 26. 06. 2008 v 16:24 -0700:
I just installed the Rawhide package on my CentOS 5 system. The one item that bit me is that the config file defaults to using interface "[::]" so it only listens on IPv6. (This is from a patch in the package that changes the upstream default of "*", so it only affects those using the Fedora package.)
For those wanting to track the issue, here's the Bugzilla:
The default "listen" setting is consistent with this setting in the 1.0.x series in F-9 and earlier. It used the "[::] listens in on all IPv6 intefaces, but may also listen on all IPV4 interfaces depending on the OS" clause. So now I need to check what has changed, whether the listen code in dovecot 1.1 (vs, the 1.0.x) or newer glibc is the cause or ...
v1.1 changed, because using the same socket for IPv4 and IPv6 caused the
The change is <http://hg.dovecot.org/dovecot-1.1/rev/da971cec0395>
IPv4 connections to use IPv4-mapped IPv6 addresses which then caused problems.
So if you want to listen on both IPv4 and IPv6, use:
listen = *, [::]
But with this change is the statement about possible listening on IPv4 with only [::] on some OSes still valid?
Dan
-- Fedora and Red Hat package maintainer
On Fri, 2008-06-27 at 09:11 +0200, Dan Horák wrote:
v1.1 changed, because using the same socket for IPv4 and IPv6 caused the
The change is <http://hg.dovecot.org/dovecot-1.1/rev/da971cec0395>
IPv4 connections to use IPv4-mapped IPv6 addresses which then caused problems.
So if you want to listen on both IPv4 and IPv6, use:
listen = *, [::]
But with this change is the statement about possible listening on IPv4 with only [::] on some OSes still valid?
With v1.1 [::] listens only on IPv6 addresses on all modern OSes (AFAIK). Perhaps I should remove the comment about it possibly listening also on IPv4.
Timo Sirainen píše v Pá 27. 06. 2008 v 10:15 +0300:
On Fri, 2008-06-27 at 09:11 +0200, Dan Horák wrote:
v1.1 changed, because using the same socket for IPv4 and IPv6 caused the
The change is <http://hg.dovecot.org/dovecot-1.1/rev/da971cec0395>
IPv4 connections to use IPv4-mapped IPv6 addresses which then caused problems.
So if you want to listen on both IPv4 and IPv6, use:
listen = *, [::]
But with this change is the statement about possible listening on IPv4 with only [::] on some OSes still valid?
With v1.1 [::] listens only on IPv6 addresses on all modern OSes (AFAIK). Perhaps I should remove the comment about it possibly listening also on IPv4.
Yes, that would surely remove the variance in the two statements.
Dan
-- Fedora and Red Hat package maintainer
Kenneth Porter wrote:
I just installed the Rawhide package on my CentOS 5 system. The one item that bit me is that the config file defaults to using interface "[::]" so it only listens on IPv6. (This is from a patch in the package that changes the upstream default of "*", so it only affects those using the Fedora package.)
For those wanting to track the issue, here's the Bugzilla:
<https://bugzilla.redhat.com/show_bug.cgi?id=453054>
I rebuilt the package from the source RPM, to make sure it was "tuned" to the C5 distro.
This issue just bit us when we upgraded from 1.0 to 1.1 (using the RPM from ATRPMS testing).
Under 1.0, the default setting in dovecot.conf was to listen on both IPv4/IPv6? In 1.1, the default setting (at least with the ATRPMs?) is now to listen only on IPv6. We had never changed that line in the dovecot.conf file (it was still commented out) and were relying on the default behavior not changing.
(Foolish of us, I know.)
The symptoms were that there were no error messages in the log file, no issues with SELinux, and no port blocking by the linux firewall. Everything seemed to be configured correctly, except that Dovecot was no longer listening on the pop3/imap ports. It was very bizarre at the time.
Our change, was naturally to explicitly tell Dovecot to listen to the IPv4 addresses:
listen = *
(I only discovered the issue by doing a diff of the old, working, 1.0 configuration file and the new 1.1 default configuration file. Fortunately for us, we keep a complete version history for all of our configuration files on the mail server.)
participants (4)
-
Dan Horák
-
Kenneth Porter
-
Thomas Harold
-
Timo Sirainen