Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-17 Thread Cian Davis
Rick Macdougall wrote:
 Cian Davis wrote:
 Michele Neylon:: Blacknight.ie wrote:
 Cian Davis wrote:
  
 Hi,
 I'm wondering if I can specify a different path for configs in instead
 of /home/$USER/.spamassassin. I want to read them from
 /config/$USER/.spamassassin/user_prefs - preferably su'ed to the user.

 This is SA 3.0.3 on Debian Sarge x86 and using spamc/spamd.


 Hi,

 virtual-config-dir option for spamd

 man spamd

 Regards,

 Rick

I tried this and it didn't work. I edited /etc/default/spamassassin and
changed the options to OPTIONS=--create-prefs --max-children 5
--helper-home-dir --virtual-config-dir=/config/%l/.spamassassin -x

The result was SA creating a directory /config/.spamassassin owned by root.

The line in/var/log/mail.log is Feb 17 09:27:11 hex spamd[15467]: Using
default config for davisc: /config//.spamassassin/user_prefs

I assume that even if this did work, the process can't run as the
user.Correct? And if so, then the bayes token cannot be updated. Or new
configs are created owned by root.

Regards,
Cian


Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-17 Thread Rick Macdougall

Cian Davis wrote:

Rick Macdougall wrote:
I tried this and it didn't work. I edited /etc/default/spamassassin and
changed the options to OPTIONS=--create-prefs --max-children 5
--helper-home-dir --virtual-config-dir=/config/%l/.spamassassin -x

The result was SA creating a directory /config/.spamassassin owned by root.

The line in/var/log/mail.log is Feb 17 09:27:11 hex spamd[15467]: Using
default config for davisc: /config//.spamassassin/user_prefs

I assume that even if this did work, the process can't run as the
user.Correct? And if so, then the bayes token cannot be updated. Or new
configs are created owned by root.


Hi,

Try without the --helper-home-dir

I used to use this method before I moved everything into MySQL and it 
did work for me.


Regards,

Rick


Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-17 Thread Cian Davis
Rick Macdougall wrote:
 Cian Davis wrote:
 Rick Macdougall wrote:
 I tried this and it didn't work. I edited /etc/default/spamassassin and
 changed the options to OPTIONS=--create-prefs --max-children 5
 --helper-home-dir --virtual-config-dir=/config/%l/.spamassassin -x

 The result was SA creating a directory /config/.spamassassin owned by
 root.

 The line in/var/log/mail.log is Feb 17 09:27:11 hex spamd[15467]: Using
 default config for davisc: /config//.spamassassin/user_prefs

 I assume that even if this did work, the process can't run as the
 user.Correct? And if so, then the bayes token cannot be updated. Or new
 configs are created owned by root.

 Hi,

 Try without the --helper-home-dir

 I used to use this method before I moved everything into MySQL and it
 did work for me.

 Regards,

 Rick

Still getting the same (I did confirm that the spamd process was running
with the correct arguments).

The problem here is that (for some reason) it's not expanding %l to the
username.

When you used this, did the spamd process su to the user involved?

Regards,
Cian



Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-16 Thread Michele Neylon:: Blacknight.ie
Cian Davis wrote:
 Hi,
 I'm wondering if I can specify a different path for configs in instead
 of /home/$USER/.spamassassin. I want to read them from
 /config/$USER/.spamassassin/user_prefs - preferably su'ed to the user.
 
 This is SA 3.0.3 on Debian Sarge x86 and using spamc/spamd.
 
 Cheers!
 
 Cian Davis
Do you have root access?

You should be able to set the preferences to wherever you want to put
them (at least I know you can on MailScanner, so I presume SA by itself
is the same)

Michele

-- 
Mr Michele Neylon
Blacknight Solutions
Quality Business Hosting  Colocation
http://www.blacknight.ie/
Tel. 1850 927 280
Intl. +353 (0) 59  9183072
Direct Dial: +353 (0)59 9183090
Fax. +353 (0) 59  9164239


Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-16 Thread Cian Davis
Michele Neylon:: Blacknight.ie wrote:
 Cian Davis wrote:
   
 Hi,
 I'm wondering if I can specify a different path for configs in instead
 of /home/$USER/.spamassassin. I want to read them from
 /config/$USER/.spamassassin/user_prefs - preferably su'ed to the user.

 This is SA 3.0.3 on Debian Sarge x86 and using spamc/spamd.

 Cheers!

 Cian Davis
 
 Do you have root access?

 You should be able to set the preferences to wherever you want to put
 them (at least I know you can on MailScanner, so I presume SA by itself
 is the same)

 Michele
   

Yes, I have root access and I've tried every option available but it
keeps going back to /home/$USER

Don't want to have to patch it manually :-/

Cian



Re: Can you read user confs from /config/$USER instead of /home/$USER?

2006-02-16 Thread Rick Macdougall

Cian Davis wrote:

Michele Neylon:: Blacknight.ie wrote:

Cian Davis wrote:
  

Hi,
I'm wondering if I can specify a different path for configs in instead
of /home/$USER/.spamassassin. I want to read them from
/config/$USER/.spamassassin/user_prefs - preferably su'ed to the user.

This is SA 3.0.3 on Debian Sarge x86 and using spamc/spamd.



Hi,

virtual-config-dir option for spamd

man spamd

Regards,

Rick