sieve
When checking /var/log/maillog I see a lot of lines with:
Error: maildir: stat(/home/xxxxx/mail/xxxx.com/xxxxxx/.dovecot.sieve/tmp) failed: Not a directory
-
Hey there!
Can you let me know the folder structure of the /home/username/mail/domain.com/email-account directory? Running this command would show that structure:
ls -lah /home/username/mail/domain.com/email-account
Just make sure you replace username, domain.com, and email-account from the command with the correct information.
On a working system I would expect this to be a symlink but if something else is happening that command would show us. If that symlink also shows up as red text in your command line, that would indicate it is broken.
Let me know that output, and if it is indeed a broken symlink, and we can go from there.
0 -
the symbolic link appears in blue
[root@srv ~]# ls -lah /home/xxxccoma/mail/xxx.com/tim
total 3.2M
drwxr-x--x 13 xxxcoma xxxcoma 4.0K Mar 24 23:28 .
drwxr-x--x 8 xxxcoma xxxcoma 4.0K Feb 7 21:45 ..
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Dec 15 13:59 .Archive
drwxr-x--x 2 xxxcoma xxxcoma 156K Mar 24 23:27 cur
-rw-r----- 1 xxxcoma xxxcoma 0 Jun 11 2024 dovecot-acl-list
-rw-r----- 1 xxxcoma xxxcoma 33K Mar 23 13:39 dovecot.index
-rw-r----- 1 xxxcoma xxxcoma 2.8M Mar 24 23:27 dovecot.index.cache
-rw-r----- 1 xxxcoma xxxcoma 5.2K Mar 24 23:27 dovecot.index.log
-rw-r----- 1 xxxcoma xxxcoma 33K Mar 23 13:39 dovecot.index.log.2
-rw-r----- 1 xxxcoma xxxcoma 98 Dec 10 16:50 dovecot-keywords
-rw-r----- 1 xxxcoma xxxcoma 1.3K Mar 24 12:59 dovecot.list.index
-rw-r----- 1 xxxcoma xxxcoma 3.6K Mar 24 22:56 dovecot.list.index.log
-rw-r----- 1 xxxcoma xxxcoma 168 Mar 18 15:41 dovecot.mailbox.log
-rw-r----- 1 xxxcoma xxxcoma 55 Mar 24 23:27 dovecot-quota
lrwxrwxrwx 1 xxxcoma xxxcoma 21 Mar 18 15:41 .dovecot.sieve -> sieve/roundcube.sieve
-rw------- 1 xxxcoma xxxcoma 232 Mar 18 15:56 .dovecot.svbin
-rw-r----- 1 xxxcoma xxxcoma 100K Mar 24 23:28 dovecot-uidlist
-rw-r----- 1 xxxcoma xxxcoma 8 Mar 18 15:41 dovecot-uidvalidity
-r--r--r-- 1 xxxcoma xxxcoma 0 Jun 11 2024 dovecot-uidvalidity.66684320
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Mar 24 12:23 .Drafts
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Jun 11 2024 .Junk
-rw------- 1 xxxcoma xxxcoma 4.5K Mar 24 23:27 maildirsize
drwxr-x--x 2 xxxcoma xxxcoma 4.0K Jan 28 16:13 new
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Jun 25 2024 .Notes
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Mar 24 22:38 .Sent
drwx------ 3 xxxcoma xxxcoma 4.0K Mar 18 15:41 sieve
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Sep 1 2025 .spam
-rw-r----- 1 xxxcoma xxxcoma 24 Nov 4 2024 subscriptions
drwxr-x--x 2 xxxcoma xxxcoma 4.0K Mar 24 23:27 tmp
drwxr-x--x 5 xxxcoma xxxcoma 4.0K Mar 24 09:32 .Trash0 -
Blue is good - that indicates the link is working properly.
It's interesting to me that it's referencing a directory under that link, as that will never exist. It would be good to know what specifically is calling that bad path on the server. Can you reproduce this behavior by accessing the user's Roundcube?
Ultimately, you may need to create a ticket so the server can be examined directly in order to get this resolved.
0 -
Accessing the users Roundcube will create the error in the maillog file.
When in the users Rouncube -> Settings -> Folders -> it lists a folder "dovecot" and a folder under that "sieve". They are not toggled on.
0 -
sorry this bit is not correct "Accessing the users Roundcube will create the error in the maillog file."
I'm not sure what action causes the error
0 -
Thanks for the clarification. I did some more research on this and found that it's a known issue that certain Roundcube functions trigger this error as that directory can never exist. We're tracking this in case CPANEL-50744 but at this time you can just remove the link from the system to stop this error from being logged:
unlink /home/$user/mail/$domain/$mailuser/.dovecot.sieveJust make sure to update the path with the correct variables.
Can you try that and let me know if that works?
0
Please sign in to leave a comment.
Comments
6 comments