[Dovecot] dovecot mysql support
Hi Guys,
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
TIA.
jan
jan gestre wrote:
Hi Guys,
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
TIA.
jan
Hi Jan,
You need to rebuild it, without any patches or so... Just enable mysql and LDA support in the .spec and don't forget to edit yum.conf and exclude=postfix*.
On Nov 19, 2007 12:57 AM, Bazy bazy@darkdawn.net wrote:
jan gestre wrote:
Hi Guys,
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
TIA.
jan
Hi Jan,
You need to rebuild it, without any patches or so... Just enable mysql and LDA support in the .spec and don't forget to edit yum.conf and exclude=postfix*.
Hi Bazy,
Sigh.. that's what I'm afraid of, anyways, I tried rebuilding it using dovecot-1.0.7-0_63.src.rpm however I keep on getting this
# rpmbuild -bb /usr/src/redhat/SPECS/dovecot.spec
"Unknown tag error in line 1" %bcond_without inotify <--- line 1
I already tried adding --without inotify switch with same result. Googling around told me that the option is only available on the 2.6.13 kernel and above, the CentOS4 kernel is only 2.6.9. Any ideas how to resolve this?
TIA
On Mon, 19 Nov 2007, jan gestre wrote:
On Nov 19, 2007 12:57 AM, Bazy bazy@darkdawn.net wrote:
jan gestre wrote:
Hi Guys,
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
TIA.
jan
Hi Jan,
You need to rebuild it, without any patches or so... Just enable mysql and LDA support in the .spec and don't forget to edit yum.conf and exclude=postfix*.
Hi Bazy,
Sigh.. that's what I'm afraid of, anyways, I tried rebuilding it using dovecot-1.0.7-0_63.src.rpm however I keep on getting this
# rpmbuild -bb /usr/src/redhat/SPECS/dovecot.spec
"Unknown tag error in line 1" %bcond_without inotify <--- line 1
I already tried adding --without inotify switch with same result. Googling around told me that the option is only available on the 2.6.13 kernel and above, the CentOS4 kernel is only 2.6.9. Any ideas how to resolve this?
I ran into the same problem on CentOS 4.5. It's not the 'inotify' part that's causing that error message. It's the %bcond_without. See the wiki (Building your own rpms) for how to add those macros. http://wiki.dovecot.org/PrebuiltBinaries#line-54
After those RPM macros are installed, you also need to add --without inotify:
rpmbuild --without inotify -bb /path/to/dovecot.spec
I didn't have to add anything regarding 'quota'. (This was with 1.0.1 a while ago, though. YMMV.)
Best, Ben
On Nov 19, 2007 6:42 PM, Benjamin R. Haskell dovecot@benizi.com wrote:
On Mon, 19 Nov 2007, jan gestre wrote:
On Nov 19, 2007 12:57 AM, Bazy bazy@darkdawn.net wrote:
jan gestre wrote:
Hi Guys,
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
TIA.
jan
Hi Jan,
You need to rebuild it, without any patches or so... Just enable mysql and LDA support in the .spec and don't forget to edit yum.conf and exclude=postfix*.
Hi Bazy,
Sigh.. that's what I'm afraid of, anyways, I tried rebuilding it using dovecot-1.0.7-0_63.src.rpm however I keep on getting this
# rpmbuild -bb /usr/src/redhat/SPECS/dovecot.spec
"Unknown tag error in line 1" %bcond_without inotify <--- line 1
I already tried adding --without inotify switch with same result. Googling around told me that the option is only available on the 2.6.13 kernel and above, the CentOS4 kernel is only 2.6.9. Any ideas how to resolve this?
I ran into the same problem on CentOS 4.5. It's not the 'inotify' part that's causing that error message. It's the %bcond_without. See the wiki (Building your own rpms) for how to add those macros. http://wiki.dovecot.org/PrebuiltBinaries#line-54
After those RPM macros are installed, you also need to add --without inotify:
rpmbuild --without inotify -bb /path/to/dovecot.spec
I didn't have to add anything regarding 'quota'. (This was with 1.0.1 a while ago, though. YMMV.)
Best, Ben
Finally I was able to rebuild it by adding a file called /etc/rpm/macros.atrpms with the following contents:
%bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} %with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
Then run:
# rpmbuild --without inotify -bb /usr/src/redhat/SPECS/dovecot.spec
Then started dovecot , but encountered an error during startup
[root@mail ~]# /etc/init.d/dovecot start Starting Dovecot Imap: Error: Error in configuration file /etc/dovecot.conf line 21: Unknown setting: imap_listen Fatal: Invalid configuration in /etc/dovecot.conf [FAILED]
I then changed imap_listen to localhost and * respectively but still have the same error. I'm lost. :(
[root@mail ~]# /etc/init.d/dovecot start Starting Dovecot Imap: Error: Error in configuration file /etc/dovecot.conf line 21: Unknown setting: imap_listen Fatal: Invalid configuration in /etc/dovecot.conf [FAILED]
I then changed imap_listen to localhost and * respectively but still have the same error. I'm lost. :(
Well, providing output of dovecot -n would maybe help...
--
Best regards,
Charles
On Mon, 2007-11-19 at 21:05 +0800, jan gestre wrote:
[root@mail ~]# /etc/init.d/dovecot start Starting Dovecot Imap: Error: Error in configuration file /etc/dovecot.conf line 21: Unknown setting: imap_listen Fatal: Invalid configuration in /etc/dovecot.conf [FAILED]
I then changed imap_listen to localhost and * respectively but still have the same error. I'm lost. :(
There's no such setting as imap_login anymore. You're trying to use v0.99's configuration file with v1.0. That won't work.
On Mon, 19 Nov 2007, Axel Thimm wrote:
On Sun, Nov 18, 2007 at 05:15:24PM -0800, jan gestre wrote:
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
The packages at ATrpms already come with mysql support. Did you try them?
Do they also have 'inotify' support? I seem to recall trouble with the ATrpms version of dovecot. The particular CentOS 4.5 box I was using still had a 2.4 kernel, since it'd been recently upgraded from RHEL3. (We didn't want to upgrade the kernel on the remote box since it was working fine for our purposes).
Best, Ben
On Mon, Nov 19, 2007 at 03:21:08PM -0500, Benjamin R. Haskell wrote:
On Mon, 19 Nov 2007, Axel Thimm wrote:
On Sun, Nov 18, 2007 at 05:15:24PM -0800, jan gestre wrote:
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
The packages at ATrpms already come with mysql support. Did you try them?
Do they also have 'inotify' support? I seem to recall trouble with the ATrpms version of dovecot. The particular CentOS 4.5 box I was using still had a 2.4 kernel, since it'd been recently upgraded from RHEL3. (We didn't want to upgrade the kernel on the remote box since it was working fine for our purposes).
No, on RHEL4 (and therefore CentOS4 as well) inotify has been disabled. Although I didn't document the reason good enough, so maybe it is worth while checking if a rebuild would be OK (simply rebuilding the package will enable inotify). Would you like to test it and report back?
As for a 2.4 kernel on RHEL4 & clones: The kernel will not provide the neccessary inotify functions, but I hope dovecot will just notice that and not fail on it (e.g. just disable inotify support). But I haven't tested that combo.
Axel.Thimm at ATrpms.net
On Nov 19, 2007 2:05 PM, Axel Thimm Axel.Thimm@atrpms.net wrote:
On Mon, Nov 19, 2007 at 03:21:08PM -0500, Benjamin R. Haskell wrote:
On Mon, 19 Nov 2007, Axel Thimm wrote:
On Sun, Nov 18, 2007 at 05:15:24PM -0800, jan gestre wrote:
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
The packages at ATrpms already come with mysql support. Did you try them?
Do they also have 'inotify' support? I seem to recall trouble with the ATrpms version of dovecot. The particular CentOS 4.5 box I was using still had a 2.4 kernel, since it'd been recently upgraded from RHEL3. (We didn't want to upgrade the kernel on the remote box since it was working fine for our purposes).
No, on RHEL4 (and therefore CentOS4 as well) inotify has been disabled. Although I didn't document the reason good enough, so maybe it is worth while checking if a rebuild would be OK (simply rebuilding the package will enable inotify). Would you like to test it and report back?
As for a 2.4 kernel on RHEL4 & clones: The kernel will not provide the neccessary inotify functions, but I hope dovecot will just notice that and not fail on it (e.g. just disable inotify support). But I haven't tested that combo.
-- Axel.Thimm at ATrpms.net
As it turned out the rebuild also created a newer dovecot.conf which I failed to notice, I guess the old config won't work with version 1.0.7
On Tue, 20 Nov 2007, Axel Thimm wrote:
On Mon, Nov 19, 2007 at 03:21:08PM -0500, Benjamin R. Haskell wrote:
On Mon, 19 Nov 2007, Axel Thimm wrote:
On Sun, Nov 18, 2007 at 05:15:24PM -0800, jan gestre wrote:
I'm using CentOS 4.5, is the dovecot default rpm comes with mysql support? Do I need to rebuild it?
The packages at ATrpms already come with mysql support. Did you try them?
Do they also have 'inotify' support? I seem to recall trouble with the ATrpms version of dovecot. The particular CentOS 4.5 box I was using still had a 2.4 kernel, since it'd been recently upgraded from RHEL3. (We didn't want to upgrade the kernel on the remote box since it was working fine for our purposes).
No, on RHEL4 (and therefore CentOS4 as well) inotify has been disabled. Although I didn't document the reason good enough, so maybe it is worth while checking if a rebuild would be OK (simply rebuilding the package will enable inotify). Would you like to test it and report back?
I don't have access to that server any more. It was at a former job. But, I just finished installing CentOS 4.5 into a VMWare server. (It's something I'd wanted to try for a while, so I used this as an excuse.) I'd be happy to test on that.
As for a 2.4 kernel on RHEL4 & clones: The kernel will not provide the neccessary inotify functions, but I hope dovecot will just notice that and not fail on it (e.g. just disable inotify support). But I haven't tested that combo.
I'm not optimistic that this will work, but I can certainly give it a shot.
Best, Ben
participants (6)
-
Axel Thimm
-
Bazy
-
Benjamin R. Haskell
-
Charles Marcus
-
jan gestre
-
Timo Sirainen