Hello cPanel gurus,
Kindly asking for your assistance.
I've encountered weird issue while working with vfilters feature lately.
For example, I have domain.tld with user domaint. When I try to enable Auto Delete Spam in the user's control panel, it returns the following error:
Error:
Write Failure: /etc/vfilters/domain.tld
The system failed to write to the configuration file.
/usr/local/cpanel/logs/error.log:
[2015-07-17 01:11:18 +0800] warn [Email::addspamfilter] Encountered error in Email::addspamfilter: Error:
Write Failure: /etc/vfilters/myfeet.net.au
The system failed to write to the configuration file.
[2015-07-17 01:11:19 +0800] warn [Email::enable_spam_autodelete] Encountered error in Email::enable_spam_autodelete: Error:
Write Failure: /etc/vfilters/myfeet.net.au
I went to check the permissions, and it was just fine, 711 and stuff:
drwx--x--x 2 root root 4096 Jul 17 03:21 /etc/vfilters/
I have even compared this to other cPanel servers I have in my cluster, all perms are identical.
However, being not able to find out what's wrong, I tried assigning 777 to /etc/vfilters, and then it worked, file created successfully:
-rw-r--r-- 1 domaint domaint 808 Jul 17 01:44 domain.tld
The first this I noticed is that owner group for this file is not correct, should be 'mail' instead of just user. I've checked with other cPanels and it was confirmed, all files are created with 'mail' owner group.
The thing is that I did not found any settings regarding this, or any option on how to change the default owner of the newly created filter files. Only single server is affected and as I mentioned before, settings are identical and applied via Puppet.
Where do I go next? What do I need to check? Is there a thing I am not aware of? Please send help
My cPanel / WHM is 11.50.0 (build 23)
Thanks for your help in advance.
Regards,
Kindly asking for your assistance.
I've encountered weird issue while working with vfilters feature lately.
For example, I have domain.tld with user domaint. When I try to enable Auto Delete Spam in the user's control panel, it returns the following error:
Error:
Write Failure: /etc/vfilters/domain.tld
The system failed to write to the configuration file.
/usr/local/cpanel/logs/error.log:
[2015-07-17 01:11:18 +0800] warn [Email::addspamfilter] Encountered error in Email::addspamfilter: Error:
Write Failure: /etc/vfilters/myfeet.net.au
The system failed to write to the configuration file.
[2015-07-17 01:11:19 +0800] warn [Email::enable_spam_autodelete] Encountered error in Email::enable_spam_autodelete: Error:
Write Failure: /etc/vfilters/myfeet.net.au
I went to check the permissions, and it was just fine, 711 and stuff:
drwx--x--x 2 root root 4096 Jul 17 03:21 /etc/vfilters/
I have even compared this to other cPanel servers I have in my cluster, all perms are identical.
However, being not able to find out what's wrong, I tried assigning 777 to /etc/vfilters, and then it worked, file created successfully:
-rw-r--r-- 1 domaint domaint 808 Jul 17 01:44 domain.tld
The first this I noticed is that owner group for this file is not correct, should be 'mail' instead of just user. I've checked with other cPanels and it was confirmed, all files are created with 'mail' owner group.
The thing is that I did not found any settings regarding this, or any option on how to change the default owner of the newly created filter files. Only single server is affected and as I mentioned before, settings are identical and applied via Puppet.
Where do I go next? What do I need to check? Is there a thing I am not aware of? Please send help
My cPanel / WHM is 11.50.0 (build 23)
Thanks for your help in advance.
Regards,
Last edited by a moderator: