Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-12 Thread Gary V
Matt wrote:

>> You decide, it can make a big difference in the speed that the Bayes
>> database is written to or read from:
>> http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html#miscellaneous_options

> Is the Bayesian database on by default?  If so, doesn't it require 
> training?

Yes, it is on by default. The default is to auto_learn. I find
auto_learn works fine for me, I personally don't bother to train.
Devising some method for your users feed false positives to
'sa-learn --ham' would be good. And false negatives to 'sa-learn --spam'
would provide additional training. How you would accomplish that would
take some thought. I think you would have to find a way to get the
original mail that you wanted learned over to the gateway servers also.
The mail cannot be forwarded, it must be exactly as it was when it was
received. All in all, not necessarily a trivial task.

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-12 Thread Matt Juszczak

You decide, it can make a big difference in the speed that the Bayes
database is written to or read from:
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html#miscellaneous_options


Is the Bayesian database on by default?  If so, doesn't it require 
training?



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-12 Thread Mark Martinec
> >> BTW, do you have 'lock_method flock' enabled?
> >
> > In postfix and dovecot I do, but not in the spamassassin config file ...
> > should I? :)
> >
> > -Matt
>
> You decide, it can make a big difference in the speed that the Bayes
> database is written to or read from:
> http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.h
>tml#miscellaneous_options

Or better yet, move Bayes to SQL and the lock_method only
still controls the AWL. Use flock by all means.

  Mark


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-12 Thread Gary V
Matt wrote:

>> BTW, do you have 'lock_method flock' enabled?

> In postfix and dovecot I do, but not in the spamassassin config file ... 
> should I? :)

> -Matt

You decide, it can make a big difference in the speed that the Bayes
database is written to or read from:
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html#miscellaneous_options

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-12 Thread Matt Juszczak

BTW, do you have 'lock_method flock' enabled?


In postfix and dovecot I do, but not in the spamassassin config file ... 
should I? :)


-Matt


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Mark Martinec
Matt,

> > The only bad part is stopping and starting amavisd-new on a busy
> > server. So maybe you could set it up, then save the stop and start for
> > when you have other changes to make.
>
> We have two relays though :) Take one down and the other one is used.
>
> So I kill postfix first, and then work with amavis, then bring amavis back
> up, and then postfix.

Don't stop postfix. And don't bother coordinating restart
on two servers, just restart amavisd if/when needed and it will do.

The messages that were being processes will be retried
by Postfix in few minutes - but if you are impatient and
amavisd was down for more than a few seconds, you may
rush a MTA retry by: postfix flush

  Mark


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Matt Juszczak

The only bad part is stopping and starting amavisd-new on a busy
server. So maybe you could set it up, then save the stop and start for
when you have other changes to make.


We have two relays though :) Take one down and the other one is used.

So I kill postfix first, and then work with amavis, then bring amavis back 
up, and then postfix.


-Matt


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Gary V
Gary wrote:
> But really, configuring razor as I mentioned is quite simple.

The only bad part is stopping and starting amavisd-new on a busy
server. So maybe you could set it up, then save the stop and start for
when you have other changes to make.

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Gary V
Matt wrote:

>> Then I'm not sure where razor is set up for you. If your amavis user
>> is named 'vscan':
>>
>> su vscan -c 'razor-admin -create'
>>
>> should create /var/amavis/.razor
>>
>> with these files in it:
>> -rw-r--r--  1 vscan  vscan  698 Aug 10 10:45 razor-agent.conf
>> -rw-r--r--  1 vscan  vscan  484 Aug 10 10:45 server.folly.cloudmark.com.conf
>> -rw-r--r--  1 vscan  vscan   20 Aug 10 10:45 servers.catalogue.lst
>> -rw-r--r--  1 vscan  vscan   22 Aug 10 10:45 servers.discovery.lst
>> -rw-r--r--  1 vscan  vscan   38 Aug 10 10:45 servers.nomination.lst
>>
>> then run:
>>
>> su vscan -c 'razor-admin -register'
>> (may need to run twice)
>>
>> then:
>> vi /var/amavis/.razor/razor-agent.conf
>> and change debuglevel to 0
>>
>> Optional, but recommended:
>> vi /usr/local/etc/mail/spamassassin/local.cf
>> (or wherever local.cf is located)
>> and insert:
>> razor_config /var/amavis/.razor/razor-agent.conf


> In my rc.local script that creates the RAM drive, can't I just do:

> ln -s /dev/null /var/amavis/tmp/razor-agent.log

> temporarily until such time as I get around to play with razor?  I dont 
> really want to create new config files and mess with config files until 
> next week when I have more time (our current setup is fairly stable).

> -matt

Not absolutely sure, but I would have to say that just seems like a
bad idea.

So you are already using a RAM drive for /var/amavis/tmp ?

As a test, I removed my /var/amavis/.razor directory, then upon running
'amavisd debug-sa' I get:

 Razor-Log: Computed user confpath from env: /var/amavis/.razor
 Razor-Log: No /var/amavis/.razor/razor-agent.conf found, skipping.
 Razor-Log: No razor-agent.conf found, using defaults.
 Razor-Log: Computed razorhome from env: /var/amavis/.razor
 Razor-Log: No razorhome found, using all defaults
 
So, until you create this stuff, defaults (debuglevel = 3) will be used.

If you are currently deleting the file manually,
I would be tempted to simply automate this task in crontab:

7 * * * * /bin/rm /var/amavis/tmp/razor-agent.log

But really, configuring razor as I mentioned is quite simple.

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Matt Juszczak

Then I'm not sure where razor is set up for you. If your amavis user
is named 'vscan':

su vscan -c 'razor-admin -create'

should create /var/amavis/.razor

with these files in it:
-rw-r--r--  1 vscan  vscan  698 Aug 10 10:45 razor-agent.conf
-rw-r--r--  1 vscan  vscan  484 Aug 10 10:45 server.folly.cloudmark.com.conf
-rw-r--r--  1 vscan  vscan   20 Aug 10 10:45 servers.catalogue.lst
-rw-r--r--  1 vscan  vscan   22 Aug 10 10:45 servers.discovery.lst
-rw-r--r--  1 vscan  vscan   38 Aug 10 10:45 servers.nomination.lst

then run:

su vscan -c 'razor-admin -register'
(may need to run twice)

then:
vi /var/amavis/.razor/razor-agent.conf
and change debuglevel to 0

Optional, but recommended:
vi /usr/local/etc/mail/spamassassin/local.cf
(or wherever local.cf is located)
and insert:
razor_config /var/amavis/.razor/razor-agent.conf




In my rc.local script that creates the RAM drive, can't I just do:

ln -s /dev/null /var/amavis/tmp/razor-agent.log

temporarily until such time as I get around to play with razor?  I dont 
really want to create new config files and mess with config files until 
next week when I have more time (our current setup is fairly stable).


-matt


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Gary V
mess-mate wrote:

> Gary V <[EMAIL PROTECTED]> wrote:
> | Matt wrote:
> | 
| >> Hi all,
| >> Is there a way to turn off the annoying razor log in /var/amavis/tmp ?
| >> Thanks,
| >> Matt
> | 
> | Try this
> | 
> | set:
> | debuglevel = 0
> | in:
> | vi /path/to/amavis/.razor/razor-agent.conf
> | 
> | Gary V
> | 
> Strange... I've a razor-agent.log in my $HOME/.razor AND in
> /var/lib/amavis/tmp !! same time updated.
> Is there a way to set it to a path in razor-agent.conf ?

So amavisd-new must be using $HOME/.razor/razor-agent.conf
You could edit that one, or better yet:

You can give amavisd-new (actually, the amavisd-new user) its
own copy of razor:

http://marc.theaimsgroup.com/?l=amavis-user&m=112370391004267&w=2

I would set debuglevel = 0 in both of them.

> mess-mate   
> --
> Blow it out your ear.

My ear is already blown out from the last time.

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread mess-mate
Gary V <[EMAIL PROTECTED]> wrote:
| Matt wrote:
| 
| > Hi all,
| > Is there a way to turn off the annoying razor log in /var/amavis/tmp ?
| > Thanks,
| > Matt
| 
| Try this
| 
| set:
| debuglevel = 0
| in:
| vi /path/to/amavis/.razor/razor-agent.conf
| 
| Gary V
| 
Strange... I've a razor-agent.log in my $HOME/.razor AND in
/var/lib/amavis/tmp !! same time updated.
Is there a way to set it to a path in razor-agent.conf ? 


mess-mate   
--
Blow it out your ear.


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Gary V
Matt wrote:

>> Try this
>>
>> set:
>> debuglevel = 0
>> in:
>> vi /path/to/amavis/.razor/razor-agent.conf
>>

> Which path to amavis?  My config is in /usr/local/etc/amavisd.conf and my 
> amavis dir is /var/amavis but there's no .razor there.  I need to create 
> it?

ls -al /var/amavis does not show a .razor directory?

Then I'm not sure where razor is set up for you. If your amavis user
is named 'vscan':

su vscan -c 'razor-admin -create'

should create /var/amavis/.razor

with these files in it:
-rw-r--r--  1 vscan  vscan  698 Aug 10 10:45 razor-agent.conf
-rw-r--r--  1 vscan  vscan  484 Aug 10 10:45 server.folly.cloudmark.com.conf
-rw-r--r--  1 vscan  vscan   20 Aug 10 10:45 servers.catalogue.lst
-rw-r--r--  1 vscan  vscan   22 Aug 10 10:45 servers.discovery.lst
-rw-r--r--  1 vscan  vscan   38 Aug 10 10:45 servers.nomination.lst

then run:

su vscan -c 'razor-admin -register'
(may need to run twice)

then:
vi /var/amavis/.razor/razor-agent.conf
and change debuglevel to 0

Optional, but recommended:
vi /usr/local/etc/mail/spamassassin/local.cf
(or wherever local.cf is located)
and insert:
razor_config /var/amavis/.razor/razor-agent.conf

BTW, do you have 'lock_method flock' enabled?

amavisd reload
(for the change to take effect)

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Matt Juszczak

Try this

set:
debuglevel = 0
in:
vi /path/to/amavis/.razor/razor-agent.conf



Which path to amavis?  My config is in /usr/local/etc/amavisd.conf and my 
amavis dir is /var/amavis but there's no .razor there.  I need to create 
it?



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Turn off the annoying razor log?

2005-08-10 Thread Gary V
Matt wrote:

> Hi all,
> Is there a way to turn off the annoying razor log in /var/amavis/tmp ?
> Thanks,
> Matt

Try this

set:
debuglevel = 0
in:
vi /path/to/amavis/.razor/razor-agent.conf

Gary V



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/