Carlos Williams wrote:
> On Mon, Feb 8, 2010 at 12:05 PM, Bowie Bailey <bowie_bai...@buc.com> wrote:
>   
>> I'm not sure why root would have a problem writing to the file.
>> sa-update-keys IS a directory, right?  Try removing the sa-update-keys
>> file/directory and then running the command again.
>>     
>
> I don't think those directories exist. At least they don't in
> /var/lib/spamassassin or /etc/mail/spamassassin. Do I need to manually
> create those directories or am not looking in the right path? Where
> should 'sa-update-keys' be?
>
>   
>> You don't need to place the spam.key file anyplace special.  Once you
>> import the key, the important stuff will be copied over to the
>> sa-update-keys directory and then you can delete the file. Just make
>> sure the spam.key file is in your current directory when you run the
>> 'sa-update --import' command, or you will have to specify the full path
>> on the command line.
>>     
>
> Thats what I thought. I just placed it in the right folder to be safe.
> I think the problem is sa-update is looking to write rules and updates
> to folders that are not present. How do I fix this?
>   

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.

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.

-- 
Bowie

Reply via email to