From: Giles Coochey <gi...@coochey.net>
To: Jack Fredrikson <jackfredrik...@yahoo.com>
Cc: "simon.brere...@buongiorno.com" <simon.brere...@buongiorno.com>; Dovecot 
Mailing List <dovecot@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@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@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(f...@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@gate ~]# rpm -qf /usr/libexec/dovecot/deliver
> dovecot-2.0.15-1.0.cf.rhel5
> [root@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

Reply via email to