Closed bluewalk closed 3 years ago
Hi,
You probably mount vmail from a storage? The file permissions are not correct. Did you at any point restore a backup or mount an external storage?
Default:
ll /var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/
total 20
drwxr-xr-x 5 5000 5000 4096 Jan 19 13:36 .
drwxr-xr-x 3 root root 4096 Jan 15 09:57 ..
drwx------ 4 5000 5000 4096 Jan 19 13:36 develcow.de
drwxr-xr-x 2 5000 5000 4096 Jan 15 09:57 _garbage
-rw-r--r-- 1 5000 5000 0 Jan 19 13:36 shared-mailboxes.db
drwxr-xr-x 2 5000 5000 4096 Feb 3 07:45 sieve
Hi @andryyy,
Yes, it's mounting from a storage. I have indeed restored from a backup a while ago. Checking the same folder as you it seems permissions are the same:
root@cs01:/mailcow/data/vmail# ls -al
total 28
dr-xr-xr-x 7 5000 5000 4096 Apr 7 2020 .
drwxrwxr-x 10 administrator administrator 4096 Dec 19 15:36 ..
dr-xr-xr-x 2 5000 5000 4096 Jul 12 2019 _garbage
drwx------ 6 5000 5000 4096 Jun 30 2019 email.com
-r--r--r-- 1 5000 5000 0 Apr 7 2020 shared-mailboxes.db
dr-xr-xr-x 2 5000 5000 4096 Feb 4 01:00 sieve
Funny thing is that my changes in Sogo are written to the sieve file though.
The backup was probably not correct either. :)
That could be a possibility yes ;-) How do I go ahead to fix the permissions?
You can check my "ls" from above and apply the same permissions.
I totally didn't notice the difference in the sieve folder permissions, after checking it for the 10th time I've noticed the difference.
chmod 755 sieve -R
solved it.
Still curious how it did manage to save the settings and throw the error ;-)
Prior to placing the issue, please check following: (fill out each checkbox with an
X
once done)Summary
Adjusting Sieve filters and saving them ends up with the error
Could not enable Sieve script: Internal error occurred. Refer to server log for more information.
Logs
sogo
dovecot
Reproduction
Try saving the filters in sogo. Looking at the sieve files the changes do seem to have been saved.
Furthermore the custom logo was also deleted, seems the upgrade went wrong?
System information
docker version
)docker-compose version
)git diff origin/master
, any other changes to the code? If so, please post them.iptables -L -vn
,ip6tables -L -vn
,iptables -L -vn -t nat
andip6tables -L -vn -t nat
.docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254
(set the IP accordingly, if you changed the internal mailcow network) and post the output.