Dale Walsh wrote:


On Dec 8, 2005, at 06:15 , Matthias Keller wrote:

Joachim Schoenberg wrote:

Am Dienstag, 6. Dezember 2005 10:48 schrieb Dale Walsh:

Now it's running, but in debug mode I see

parseFile(/var/log/mail, 0, 3393576)
ERROR : Could not open file /var/log/mail: Permission denied

Well, I am logging amavisd-new to /var/log/mail to keep
all info in one place.
/var/log/mail is rw-r----- on all my systems, owned by root:root.
How to manage that?

Well you could probably change ownership of /var/log/mail to vscan
to have a better separation I'm logging amavisd-new to /var/log/ amavisd.log and this one is rw-r----- vscan:root which allows my amavis-stats to read it.

btw.. i didn't like the default install paths of it so if you want it to install to a (in my opinion) nicer destination like
/usr/share/amavis-stats/  (for php and config)
/var/lib/amavis-stats/  (for rrd stuff)
etc, feel free to use my configure statement:

./configure --enable-id-check --with-user=vscan --mandir=/usr/share/ man --datadir=/usr/share \ --sysconfdir=/etc --localstatedir=/var --sbindir=/sbin --prefix=/ usr/share/amavis-stats


.configure --enable-id-check --with-user=vscan --with-group=vscan -- prefix=/usr \
 --mandir=/usr/share/man  --localstatedir=/var --sysconfdir=/etc

Well I left the group as-is (www) because that allows me to set very tight permissions and the webserver ist still able to read all it wants.... Thanks for the cleaning up. I thought there should be a shorter solution but after some trial and error in my virtual machine i noticed the above works so i used it :)

Matt


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to