each time i move an e-mail to the “Junk E-Mail”-Folder the kopano-spamd daemon writes the following warning to its logfile:
2018-05-18 18:47:26,583 - spamd - WARNING - Unable to set ownership: [Errno 1] Operation not permitted: '/var/lib/kopano/spamd/spam/EF548CAE685A4F82A726AACFC69C67C7.eml', entryid 000000001FAAE3D0F015457FB899FD75E0CA336F0100000005000000CA7409CE2FFA442DAFDE72E5D8C9C6FC00000000
The daemon is configured with:
run_as_user = kopano run_as_group = kopano pid_file = /var/run/kopano/spamd.pid server_socket = file:///var/run/kopano/server.sock log_method = file log_level = 3 log_file = /var/log/kopano/spamd.log log_timestamp = 1 log_buffer_size = 0 spam_dir = /var/lib/kopano/spamd/spam spam_db = /var/lib/kopano/spamd/spam.db learn_ham = yes ham_dir = /var/lib/kopano/spamd/ham sa_group = amavis
The directory “/var/lib/kopano/spamd” is owned by kopano:kopano and the permissions of the file from the warning message are:
-rw-rw-rw- 1 kopano kopano 11032 18. Mai 18:47 /var/lib/kopano/spamd/spam/EF548CAE685A4F82A726AACFC69C67C7.eml
For security reasons i don’t like the file having “rw-rw-rw-” permissions and rather would like to have it “rw-------” or “rw-rw----”, maybe the warning occurrs when the daemon is trying to set new permissions on the file?
The version in question is:
installed as rpm on CentOS 7.
Any hints on this?