in master.cf you said postfix to run deliver as user dovecot. deliver then ask sql and get the info to stote the mail as uid 12345
deliver has to run setuid root to do that.
see http://wiki.dovecot.org/LDA#Multiple_UIDs
or you can change master.cf to dovecot unix - n n - - pipe flags=DRhu user=12345:12345 argv=/var/postfix/dovecot/libexec/dovecot/deliver -d $(recipient)
if all have the same uid.
Andreas
Am 20.04.2010 08:28 schrieb Zilon X:
Changed home dir of users, in my configuration they are /var/postfix/spool and /var/postfix/dovecot/run, but with no effect. I still got the "fatal setgid failed: Not owner" ( Fatal: setgid(12345(postfix)) failed with euid=12346(dovecot), gid=54322(dovecot), egid=54322(dovecot): Not owner )
2010/4/20 Andreas Schulze andreas.schulze@datev.de:
I would never use /dev/null as homedir. postfix home is /var/spool/postfix, dovecot likes /var/run/dovecot.
-- Andreas Schulze Internetdienste | P532
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen