Re: [AMaViS-user] OT: amavis-stats RH9

2006-03-08 Thread Dale Walsh


On Mar 8, 2006, at 15:36 , Hans du Plooy wrote:


On Sat, 2006-03-04 at 13:15 +0100, Peter Huetmannsberger wrote:

Senmail creates logfiles with root:mail amavis runs as amavis and is
member of the group mail. apache runs as nobody (and I can't  
possibly add
nobody to the group mail). If I create the rrd files as amavis,  
apache
can't read them, if I create them as nobody, the maillog files  
can't be

read. Any good ideas?


You need to set the log level to 5 for amavis-stats to work properly,
and that would make your mail log really really messy.  So rather let
amavis log to a separate logfile.  That's what I do on all my mail
servers.


I log to a separate file and have the level set to "2" and I get good  
results.


mustangrestomods:~ root# grep -n -H -e log_level /etc/amavisd.conf
/etc/amavisd.conf:304:$log_level = 2; # (defaults to 0)
/etc/amavisd.conf:307:# $log_level=0) (take care to properly quote  
Perl special characters like '\')

/etc/amavisd.conf:2053:#   log_level => 3,
/etc/amavisd.conf:2093:#   log_level => 3,
mustangrestomods:~ root#


as well, set the following in amavisd.conf

/etc/amavisd.conf.good:192:@local_domains_maps = (1);  # $mydomain  
and its subdomains


You're line numbers may differ.


Hans


-- Dale


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] OT: amavis-stats RH9

2006-03-08 Thread Hans du Plooy
On Sat, 2006-03-04 at 13:15 +0100, Peter Huetmannsberger wrote:
> Senmail creates logfiles with root:mail amavis runs as amavis and is 
> member of the group mail. apache runs as nobody (and I can't possibly add 
> nobody to the group mail). If I create the rrd files as amavis, apache 
> can't read them, if I create them as nobody, the maillog files can't be 
> read. Any good ideas?

You need to set the log level to 5 for amavis-stats to work properly,
and that would make your mail log really really messy.  So rather let
amavis log to a separate logfile.  That's what I do on all my mail
servers.

Hans



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] OT: amavis-stats RH9

2006-03-05 Thread Dale Walsh


On Mar 4, 2006, at 07:15 , Peter Huetmannsberger wrote:





Do you mean you get a report but with all zero counts, or  
literally no

output whatsoever?


Hi,

after playing around all morning I got results in the shape of rrd  
files in the right directory, but now I get an rrdtool eror (not  
the 127 but a 1). I am using rrdtool-1.2.12 and amavis-stats 0.1.21.


Another question. What do you suggest to do about the permissions.

Senmail creates logfiles with root:mail amavis runs as amavis and  
is member of the group mail. apache runs as nobody (and I can't  
possibly add nobody to the group mail). If I create the rrd files  
as amavis, apache can't read them, if I create them as nobody, the  
maillog files can't be read. Any good ideas?


Consider logging amavisd-new to a seperate file instead of sysloging  
to the mail log.


If the amavis-stats daemon is running as the apache user, it should  
have read access to the amavisd-new or mail log files, this should  
resolve the permission issue.



Thanks,

.peter





Cheers

Pete


-- Dale



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] OT: amavis-stats RH9

2006-03-04 Thread Peter Huetmannsberger




Do you mean you get a report but with all zero counts, or literally no
output whatsoever?


Hi,

after playing around all morning I got results in the shape of rrd files 
in the right directory, but now I get an rrdtool eror (not the 127 but a 
1). I am using rrdtool-1.2.12 and amavis-stats 0.1.21.


Another question. What do you suggest to do about the permissions.

Senmail creates logfiles with root:mail amavis runs as amavis and is 
member of the group mail. apache runs as nobody (and I can't possibly add 
nobody to the group mail). If I create the rrd files as amavis, apache 
can't read them, if I create them as nobody, the maillog files can't be 
read. Any good ideas?


Thanks,

.peter





Cheers

Pete




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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/


[AMaViS-user] OT: amavis-stats RH9

2006-03-04 Thread Peter Huetmannsberger


Hi,

sorry to bother you with this question, but has anyone gotten 
amavis-stats-0.1.21 to run on RedHat 9?


I seem to get no results at all. Any debugging available?

Thanks,

.peter


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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/