[GH-ISSUE #183] dovecot: lmtp Error sieve: sieve script file path ~/.dovecot.sieve is relative to home directory, but home directory is not available. #143

Closed
opened 2026-02-26 09:36:16 +03:00 by kerem · 5 comments
Owner

Originally created by @Sebbo94BY on GitHub (Apr 15, 2016).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/183

I'm getting following error messages in /var/log/mail.log:

dovecot: lmtp(28787, user@example.com): Error: User user@example.com doesn't have home dir set, disabling duplicate database
dovecot: lmtp(28787, user@example.com): Error: v0THAoYlEVdzcAAARcn2aQ: sieve: sieve script file path ~/.dovecot.sieve is relative to home directory, but home directory is not available.
dovecot: lmtp(28787, user@example.com): Error: v0THAoYlEVdzcAAARcn2aQ: sieve: failed to access user's Sieve script ~/.dovecot.sieve (temporary failure)

Did I miss something?

Originally created by @Sebbo94BY on GitHub (Apr 15, 2016). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/183 I'm getting following error messages in _/var/log/mail.log_: ``` dovecot: lmtp(28787, user@example.com): Error: User user@example.com doesn't have home dir set, disabling duplicate database dovecot: lmtp(28787, user@example.com): Error: v0THAoYlEVdzcAAARcn2aQ: sieve: sieve script file path ~/.dovecot.sieve is relative to home directory, but home directory is not available. dovecot: lmtp(28787, user@example.com): Error: v0THAoYlEVdzcAAARcn2aQ: sieve: failed to access user's Sieve script ~/.dovecot.sieve (temporary failure) ``` Did I miss something?
kerem closed this issue 2026-02-26 09:36:16 +03:00
Author
Owner

@PhrozenByte commented on GitHub (Apr 15, 2016):

User user@example.com doesn't have home dir set

See https://github.com/opensolutions/ViMbAdmin/wiki/Configuration#mailbox-settings-and-defaults

<!-- gh-comment-id:210574707 --> @PhrozenByte commented on GitHub (Apr 15, 2016): `User user@example.com doesn't have home dir set` See https://github.com/opensolutions/ViMbAdmin/wiki/Configuration#mailbox-settings-and-defaults
Author
Owner

@Sebbo94BY commented on GitHub (Apr 16, 2016):

Do I need to create all sub-directories manually after creating a new account/alias?

Die entire path /srv/vmail/%d/%u/ (/srv/vmail/example.com/user/) does exists for this user, but the mail directory inside of it not for example. Otherwise, the mail/ directory was created for two of four new email accounts...

I'm using the default configuration except the password_scheme.

I'll delete all domains, email accounts and aliases and re-create them all. I'll update this issue later.

<!-- gh-comment-id:210699307 --> @Sebbo94BY commented on GitHub (Apr 16, 2016): Do I need to create all sub-directories manually after creating a new account/alias? Die entire path _/srv/vmail/%d/%u/_ (/srv/vmail/example.com/user/) does exists for this user, but the mail directory inside of it not for example. Otherwise, the mail/ directory was created for two of four new email accounts... I'm using the default configuration except the _password_scheme_. I'll delete all domains, email accounts and aliases and re-create them all. I'll update this issue later.
Author
Owner

@Sebbo94BY commented on GitHub (Apr 16, 2016):

@PhrozenByte I'm confused. Why does it not work? I'm always just getting "OK, Mailbox was created successful" and the above mentioned log messages...

I've configured following (default):

defaults.mailbox.maildir = "maildir:/srv/vmail/%d/%u/mail:LAYOUT=fs"
defaults.mailbox.homedir = "/srv/vmail/%d/%u"
# ls -lha /srv/vmail/
insgesamt 32K
drwxr-xr-x 4 vmail vmail 4,0K Apr 16 16:11 .
drwxr-xr-x 3 root  root  4,0K Apr 16 13:19 ..
-rw------- 1 vmail vmail  314 Apr 16 16:08 .bash_history
-rw-r--r-- 1 vmail vmail  220 Apr  9  2014 .bash_logout
-rw-r--r-- 1 vmail vmail 3,6K Apr  9  2014 .bashrc
drwx------ 3 vmail vmail 4,0K Apr 16 16:11 example.com
-rw-r--r-- 1 vmail vmail  675 Apr  9  2014 .profile
# ls -lha /srv/vmail/example.com/user/
insgesamt 8,0K
drwx------ 2 vmail vmail 4,0K Apr 16 16:10 .
drwx------ 4 vmail vmail 4,0K Apr 16 16:10 ..

Is the webinterface may not able to create the mail/ directory due the permissions are only 0700 instead of 0755? Can I change this behaviour anywhere?

<!-- gh-comment-id:210824314 --> @Sebbo94BY commented on GitHub (Apr 16, 2016): @PhrozenByte I'm confused. Why does it not work? I'm always just getting "OK, Mailbox was created successful" and the above mentioned log messages... I've configured following (default): ``` defaults.mailbox.maildir = "maildir:/srv/vmail/%d/%u/mail:LAYOUT=fs" defaults.mailbox.homedir = "/srv/vmail/%d/%u" ``` ``` # ls -lha /srv/vmail/ insgesamt 32K drwxr-xr-x 4 vmail vmail 4,0K Apr 16 16:11 . drwxr-xr-x 3 root root 4,0K Apr 16 13:19 .. -rw------- 1 vmail vmail 314 Apr 16 16:08 .bash_history -rw-r--r-- 1 vmail vmail 220 Apr 9 2014 .bash_logout -rw-r--r-- 1 vmail vmail 3,6K Apr 9 2014 .bashrc drwx------ 3 vmail vmail 4,0K Apr 16 16:11 example.com -rw-r--r-- 1 vmail vmail 675 Apr 9 2014 .profile ``` ``` # ls -lha /srv/vmail/example.com/user/ insgesamt 8,0K drwx------ 2 vmail vmail 4,0K Apr 16 16:10 . drwx------ 4 vmail vmail 4,0K Apr 16 16:10 .. ``` Is the webinterface may not able to create the mail/ directory due the permissions are only 0700 instead of 0755? Can I change this behaviour anywhere?
Author
Owner

@PhrozenByte commented on GitHub (Apr 16, 2016):

You missed the important part of the linked wiki article:

Needs to match your Dovecot configuration.

ViMbAdmin doesn't create any of these files. This isn't a misconfiguration of ViMbAdmin, it's a misconfiguration of Dovecot (as /var/log/mail.log tells you). Maybe the SQL query you configured for Dovecot is wrong. Unfortunately I can't help you with that, sorry. Dovecot doesn't seem to recognize the homedir correctly.

<!-- gh-comment-id:210834424 --> @PhrozenByte commented on GitHub (Apr 16, 2016): You missed the important part of the linked wiki article: > Needs to match your Dovecot configuration. ViMbAdmin doesn't create any of these files. This isn't a misconfiguration of ViMbAdmin, it's a misconfiguration of Dovecot (as `/var/log/mail.log` tells you). Maybe the SQL query you configured for Dovecot is wrong. Unfortunately I can't help you with that, sorry. Dovecot doesn't seem to recognize the homedir correctly.
Author
Owner

@Sebbo94BY commented on GitHub (Apr 16, 2016):

Oh, yes. That was it. Thank you very much! 👍

I've corrected following lines in /etc/dovecot/conf.d/10-mail.conf:

mail_home = /srv/vmail/%d/%u
mail_location = maildir:/srv/vmail/%d/%u/mail:LAYOUT=fs

Dovecot and ViMbAdmin has now the same mail_home and mail_location set.

<!-- gh-comment-id:210861114 --> @Sebbo94BY commented on GitHub (Apr 16, 2016): Oh, yes. That was it. Thank you very much! :+1: I've corrected following lines in _/etc/dovecot/conf.d/10-mail.conf_: ``` mail_home = /srv/vmail/%d/%u mail_location = maildir:/srv/vmail/%d/%u/mail:LAYOUT=fs ``` Dovecot and ViMbAdmin has now the same mail_home and mail_location set.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#143
No description provided.