Carlos Williams wrote:
> On Mon, Feb 8, 2010 at 12:33 PM, Bowie Bailey <bowie_bai...@buc.com> wrote:
>   
>> sa-update-keys should default to the same location as your local.cf
>> file.  On my system, that is /etc/mail/spamassassin.  Create the
>> directory and try the import again.
>>     
>
> I created the directory from scratch using the 'mkdir' command and it
> appears to have successfully ran. I just get this error:
>
> [r...@mail spamassassin]# sa-update
> gpg: WARNING: unsafe permissions on homedir
> `/etc/mail/spamassassin/sa-update-keys'
>
> Does this need to be owned by any specific user:group and does anyone
> know the permissions on this folder?
>   

The permissions should be 700 (i.e. only readable by the owner).  The
owner should probably be root (assuming that you will be running
sa-update as root).

# chown -R root sa-update-keys
# chmod 700 sa-update-keys

>> The import operation is not writing rules and updates, it is writing key
>> information.  When you run the normal 'sa-update' command, it will write
>> the rules under the /var/lib/spamassassin/3.00X.00X directory.
>>     
>
> I can now see:
>
> [r...@mail 3.002005]# pwd
> /var/lib/spamassassin/3.002005
> [r...@mail 3.002005]# ls -la
> total 16
> drwxr-xr-x 3 root  root  4096 Feb  8 12:39 .
> drwx------ 4 spamd spamd 4096 Feb  8 12:39 ..
> drwxr-xr-x 2 root  root  4096 Feb  8 12:39 updates_spamassassin_org
> -rw-r--r-- 1 root  root  2431 Feb  8 12:39 updates_spamassassin_org.cf
>
> I am guessing that is all working and I shouldn't have to do much else, 
> correct?
>   

That looks correct.  You will find the rule files themselves under the
updates_spamassassin_org directory.  Make sure you restart spamd to
reload the rules after you run sa-update.

-- 
Bowie

Reply via email to