Hello guys,

Since yesterday I'm running a server with ubuntu 14.04.1 and spamassassin version 3.4.0-1ubuntu2. Spamassassin was installed as a package from the ubuntu repositories. SpamAssassin runs in daemon mode with a user named spamd.

This morning I got the following email. It indicates, that there is something wrong with my permission settings.

/etc/cron.daily/spamassassin:
Jan 12 02:42:56.374 [23592] warn: config: path "/var/lib/spamassassin/.spamassassin/user_prefs" is inaccessible: Permission denied config: path "/var/lib/spamassassin/.spamassassin/user_prefs" is inaccessible: Permission denied cannot create a directory: Permission denied at /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1034. cannot write to /var/lib/spamassassin/.spamassassin/sa-compile.cache/rules.body_0 at /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1036. print() on closed filehandle CACHE at /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1037. plugin: eval failed: error writing: Bad file descriptor at /usr/share/perl5/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1037.

"/var/lib/spamassassin/.spamassassin/user_prefs" doesn't exist. The directory permissions are as follows:

:~# ll -d /var/lib/spamassassin/.spamassassin
drwx------ 3 spamd spamd 4096 Jan 12 05:01 /var/lib/spamassassin/.spamassassin/

Now, I have two questions:

1. Do I have to create the file user_prefs manually?
2. What are the correct permissions for the directory and the file?

Thanks in advance.
John

Reply via email to