[Dovecot] setting mail_home and vacation
Hello!
dovecot version 2.1.7
I set up vacation with sieve. We have mboxes and maildirs and in dovecot.conf mail_location = mbox:/var/spool/vhosts/%d/dovecotprivate/%n:INBOX=/var/spool/vhosts/%d/%n
Error: User archiv@xyz.de doesn't have home dir set, disabling duplicate database Dec 19 20:37:03 lda(archiv@xyz.de): Error: sieve: sieve script file path ~/.dovecot.sieve is relative to home directory, but home directory is not available. Dec 19 20:37:03 lda(archiv@xyz.de): Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
When I set mail_home = mbox:/var/spool/vhosts/%d/%n:INBOX=/var/spool/vhosts/%d/%n
I get this for mboxes in the log: Error: user archiv@xyz.de: Relative home directory paths not supported: mbox:/var/spool/vhosts/xyz.de/archiv:INBOX=/var/spool/vhosts/xyz.de/archiv
The .dovecot.sieve script of the user seems to be found, a vacation response is sent and the email is stored mail into mailbox 'INBOX'
What is wrong?
Andreas
At 8PM +0100 on 19/12/12 you (Andreas Meyer) wrote:
I set up vacation with sieve. We have mboxes and maildirs and in dovecot.conf mail_location = mbox:/var/spool/vhosts/%d/dovecotprivate/%n:INBOX=/var/spool/vhosts/%d/%n
Error: User archiv@xyz.de doesn't have home dir set, disabling duplicate database Dec 19 20:37:03 lda(archiv@xyz.de): Error: sieve: sieve script file path ~/.dovecot.sieve is relative to home directory, but home directory is not available. Dec 19 20:37:03 lda(archiv@xyz.de): Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
When I set mail_home = mbox:/var/spool/vhosts/%d/%n:INBOX=/var/spool/vhosts/%d/%n
I get this for mboxes in the log: Error: user archiv@xyz.de: Relative home directory paths not supported: mbox:/var/spool/vhosts/xyz.de/archiv:INBOX=/var/spool/vhosts/xyz.de/archiv
mail_home should be set to the path to a directory, not a mailbox location. You want just
mail_home = /var/spool/vhosts/%d/%n
Dovecot is interpreting the initial 'mbox:' part as the start of a relative path.
Ben
Ben Morrow ben@morrow.me.uk wrote:
When I set mail_home = mbox:/var/spool/vhosts/%d/%n:INBOX=/var/spool/vhosts/%d/%n
I get this for mboxes in the log: Error: user archiv@xyz.de: Relative home directory paths not supported: mbox:/var/spool/vhosts/xyz.de/archiv:INBOX=/var/spool/vhosts/xyz.de/archiv
mail_home should be set to the path to a directory, not a mailbox location. You want just
mail_home = /var/spool/vhosts/%d/%n
ok, done that. I get this in Error: chdir(/var/spool/vhosts/xyz.de/archiv) failed: Not a directory Error: sieve: failed to stat sieve script: stat(/var/spool/vhosts/xyz.de/archiv/.dovecot.sieve) failed: Not a directory Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
I guess, this is just normal for mboxes? archiv@xyz.de is a mbox, per bcc serviced by postfix.
Dovecot is interpreting the initial 'mbox:' part as the start of a relative path.
Interessting, thank you!
Ben
Andreas
At 11PM +0100 on 19/12/12 you (Andreas Meyer) wrote:
Ben Morrow ben@morrow.me.uk wrote:
When I set mail_home = mbox:/var/spool/vhosts/%d/%n:INBOX=/var/spool/vhosts/%d/%n
I get this for mboxes in the log: Error: user archiv@xyz.de: Relative home directory paths not supported: mbox:/var/spool/vhosts/xyz.de/archiv:INBOX=/var/spool/vhosts/xyz.de/archiv
mail_home should be set to the path to a directory, not a mailbox location. You want just
mail_home = /var/spool/vhosts/%d/%n
ok, done that. I get this in Error: chdir(/var/spool/vhosts/xyz.de/archiv) failed: Not a directory Error: sieve: failed to stat sieve script: stat(/var/spool/vhosts/xyz.de/archiv/.dovecot.sieve) failed: Not a directory Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
I guess, this is just normal for mboxes? archiv@xyz.de is a mbox, per bcc serviced by postfix.
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
Ben
Ben Morrow ben@morrow.me.uk wrote:
mail_home = /var/spool/vhosts/%d/%n
ok, done that. I get this in Error: chdir(/var/spool/vhosts/xyz.de/archiv) failed: Not a directory Error: sieve: failed to stat sieve script: stat(/var/spool/vhosts/xyz.de/archiv/.dovecot.sieve) failed: Not a directory Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
I guess, this is just normal for mboxes? archiv@xyz.de is a mbox, per bcc serviced by postfix.
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
It's /var/spool/vhosts/xyz.de/archiv . It's one file, a mbox. There is no .dovecot.sieve. This mbox is flushed various times a day by a MUA. This user archiv is a virtual user and has no home directory, just a mbox.
Ben
Andreas
At 12AM +0100 on 20/12/12 you (Andreas Meyer) wrote:
Ben Morrow ben@morrow.me.uk wrote:
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
It's /var/spool/vhosts/xyz.de/archiv . It's one file, a mbox. There is no .dovecot.sieve. This mbox is flushed various times a day by a MUA. This user archiv is a virtual user and has no home directory, just a mbox.
All Dovecot users should have a unique home directory (which needs to be *a directory*, obviously, and shouldn't be the same as any of the mailbox locations). See http://wiki2.dovecot.org/VirtualUsers/Home .
Ben
Ben Morrow ben@morrow.me.uk wrote:
At 12AM +0100 on 20/12/12 you (Andreas Meyer) wrote:
Ben Morrow ben@morrow.me.uk wrote:
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
It's /var/spool/vhosts/xyz.de/archiv . It's one file, a mbox. There is no .dovecot.sieve. This mbox is flushed various times a day by a MUA. This user archiv is a virtual user and has no home directory, just a mbox.
All Dovecot users should have a unique home directory (which needs to be *a directory*, obviously, and shouldn't be the same as any of the mailbox locations). See http://wiki2.dovecot.org/VirtualUsers/Home .
ok, thank you, that was an important step for the mboxes we drive!
Ben
Andreas
Andreas Meyer wrote:
Ben Morrow ben@morrow.me.uk wrote:
mail_home = /var/spool/vhosts/%d/%n
ok, done that. I get this in Error: chdir(/var/spool/vhosts/xyz.de/archiv) failed: Not a directory Error: sieve: failed to stat sieve script: stat(/var/spool/vhosts/xyz.de/archiv/.dovecot.sieve) failed: Not a directory Error: sieve: failed to access user's sieve script ~/.dovecot.sieve (using default script location instead)
I guess, this is just normal for mboxes? archiv@xyz.de is a mbox, per bcc serviced by postfix.
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
It's /var/spool/vhosts/xyz.de/archiv . It's one file, a mbox. There is no .dovecot.sieve. This mbox is flushed various times a day by a MUA. This user archiv is a virtual user and has no home directory, just a mbox.
Your mail_home needs to be a directory, not a file. mbox files should be located inside a subdirectory of your mail_home.
Regards Daniel
Daniel Parthey daniel.parthey@informatik.tu-chemnitz.de wrote:
Where is that user's home directory, then? (Where is its .dovecot.sieve?) That is the path that mail_home should be set to.
It's /var/spool/vhosts/xyz.de/archiv . It's one file, a mbox. There is no .dovecot.sieve. This mbox is flushed various times a day by a MUA. This user archiv is a virtual user and has no home directory, just a mbox.
Your mail_home needs to be a directory, not a file. mbox files should be located inside a subdirectory of your mail_home.
Thank you, got it! And migrated the users to the new location of the mboxes. Great! That makes everything much easier.
Regards Daniel
Andreas
participants (3)
-
Andreas Meyer
-
Ben Morrow
-
Daniel Parthey