[Dovecot] I stream read - stale NFS file handle (reboot of server)

Timo Sirainen tss at iki.fi
Wed Mar 17 00:15:19 EET 2010


On 17.3.2010, at 0.11, Joe wrote:

> I'm not sure if this helps at but it is how i have things set up.

Well, if you can't get it fixed on OS side, you can always patch Dovecot. I'm just not sure if there's a way I could make this work well for everyone.

diff -r a1177c6cf8c7 src/deliver/deliver.c
--- a/src/deliver/deliver.c     Wed Jan 20 11:44:06 2010 +0200
+++ b/src/deliver/deliver.c     Wed Mar 17 00:13:57 2010 +0200
@@ -659,7 +659,7 @@
        int fd;
 
        path = t_str_new(128);
-       str_append(path, mail_user_get_temp_prefix(user));
+       str_append(path, "/tmp/deliver");
        fd = safe_mkstemp(path, 0600, (uid_t)-1, (gid_t)-1);
        if (fd == -1 && errno == ENOENT) {
                dir = str_c(path);



More information about the dovecot mailing list