[Dovecot] Marathon Day 6 of First Install: MySQL Connection Problem

Jack Fredrikson jackfredrikson at yahoo.com
Tue Oct 25 18:01:31 EEST 2011


From: Giles Coochey <giles at coochey.net>
To: Jack Fredrikson <jackfredrikson at yahoo.com>
Cc: "simon.brereton at buongiorno.com" <simon.brereton at buongiorno.com>; Dovecot Mailing List <dovecot at dovecot.org>
Sent: Tuesday, October 25, 2011 10:02 AM
Subject: Re: [Dovecot] Marathon Day 6 of First Install: MySQL Connection Problem

I just discovered this:
[root at myserver postfix]# ls -al /usr/libexec/dovecot/
total 8
drwxr-xr-x 2 root root 4096 Oct 22 08:59 .
drwxr-xr-x 9 root root 4096 Oct 23 08:36 ..
lrwxrwxrwx 1 root root   34 Oct 22 08:59 deliver -> /usr/local/libexec/dovecot/deliver
[root at myserver postfix]# ls -al /usr/local/libexec/dovecot/deliver*
lrwxrwxrwx 1 root root 11 Oct 20 17:14 /usr/local/libexec/dovecot/deliver -> dovecot-lda

Huh? So I made a softlink directly to /usr/local/libexec/dovecot/dovecot-lda (which is where it resides)
But I'm still getting the same errors:
Oct 25 07:58:47 lda(foo at bar.com): Fatal: setgid(12(mail) from userdb lookup) failed with euid=512(vmail), gid=512(vmail), egid=512(vmail): Operation not permitted (This binary should probably be called with process group set to 12(mail) instead of 512(vmail))

I need to change the gid because it's wrong. Now, rebuilding dovecot isn't going to do that because we don't set such things in the flags to rebuild. So where in tarnation do we???
TIA,
Jack

> On my Centos 5.x:
>
> [root at gate ~]# rpm -qf /usr/libexec/dovecot/deliver
> dovecot-2.0.15-1.0.cf.rhel5
> [root at gate ~]# rpm -qf /usr/libexec/dovecot/dovecot-lda
> dovecot-2.0.15-1.0.cf.rhel5
>
> What dovecot do you have?

2.0.15

I built mine the old way:
./configure --with-mysql
make
make install

So how would I rebuild just this one file? From where does it get its data? I need to change the first_valid_gid.
TIA,
Jack


More information about the dovecot mailing list