On Wed, 2009-07-08 at 21:03 +0200, Julien Danjou wrote:
At 1247075539 time_t, Timo Sirainen wrote:
http://hg.dovecot.org/dovecot-1.2/rev/6d7f6ea02e17 makes it log the current directory in the above error message when the path is relative.
Ok, that helps to see what's wrong, thanks:
Jul 8 20:50:16 prometheus dovecot: deliver(jd@danjou.info): mkdir_parents_chown(danjou.info/jd/) in directory /var/spool/postfix failed: Permission denied (euid=8(mail) egid=8(mail)) Jul 8 20:50:16 prometheus dovecot: deliver(jd@danjou.info): copy: i_stream_read() failed: No such file or directory
Of course, that fails.
The thing is that danjou.info/jd/ is the homedir of the user (returned by SQL),
Make your SQL query return absolute path for home dir.
I smell (did not dig into the code) that there's a chdir() to mail_location that is missing for a reason I don't know.
It's not supposed to chdir to mail_location. It's supposed to chdir to home dir.