Bowie wrote: > From: Gary V [mailto:[EMAIL PROTECTED] >> >> Bowie wrote: >> >> > I'm not sure if the problem is with Amavis or Clamd, so I'm >> > posting here first. >> >> > I have two servers both running Courier, Amavisd-new, and ClamAV. >> > The first one, my production server, is working fine. The second >> > one, a testing server, is producing errors. I can't find the >> > difference in the setup. Hopefully someone here can point me in >> > the right direction. >> >> > This is what I'm seeing in the logs: >> > amavis[1165]: (1165-1) ask_av (ClamAV-clamd) FAILED - unexpected >> > result: /var/amavis/tmp/amavis-20050923T145615-01165/parts: Access >> > denied. ERROR\n >> >> > Amavis is running as user 'amavis' and is configured to use group >> > 'mailuser'. >> > $daemon_user = 'amavis'; >> > $daemon_group = 'mailuser'; >> >> > Clamd is running as 'mailuser'. >> >> > # ls -l /var/amavis/tmp/amavis-20050923T145615-01165/ >> > total 0 >> > drwxr-x--- 2 amavis mailuser 40 Sep 23 14:56 parts >> >> > I don't see anything in the parts directory, but I assume that's >> > because it was removed when Amavis finished. The permissions look >> > good to me. They are the same on the server that is working. >> >> Are you sure user 'mailuser' also belongs to group 'mailuser'?
> Yes. >> What OS are you on? If you have the 'groups' program, try: >> groups amavis >> groups mailuser >> to display group membership. > I'm on CentOS 4.0 > # groups amavis > amavis : mailuser > # groups mailuser > mailuser : mailuser >> Double check clamd.conf for 'User mailuser' > # grep mailuser /usr/local/etc/clamd.conf > User mailuser >> If you have used usermod, it's easy to accidently remove a user >> from their primary group. Just a thought. >> >> You should also try (and you will need to if you make changes): >> stopping amavisd >> stopping clamd >> starting clamd >> starting amavisd > Did that. Same results. > amavis[22230]: (22230-1) Using ClamAV-clamd: (built-in interface) > amavis[22230]: (22230-1) ask_av (ClamAV-clamd): query template1: CONTSCAN > {}\n > amavis[22230]: (22230-1) Using (ClamAV-clamd) on dir: CONTSCAN > /var/amavis/tmp/amavis-20050923T163818-22230/parts\n > amavis[22230]: (22230-1) ClamAV-clamd: Connecting to socket > /var/run/clamav/clamd > amavis[22230]: (22230-1) ClamAV-clamd: Sending CONTSCAN > /var/amavis/tmp/amavis-20050923T163818-22230/parts\n to UNIX socket > /var/run/clamav/clamd > amavis[22230]: (22230-1) ask_av (ClamAV-clamd) result: > /var/amavis/tmp/amavis-20050923T163818-22230/parts: Access denied. ERROR\n > amavis[22230]: (22230-1) ask_av (ClamAV-clamd) FAILED - unexpected result: > /var/amavis/tmp/amavis-20050923T163818-22230/parts: Access denied. ERROR\n >> http://www200.pair.com/mecham/spam/clamav-amavisd-new.html > Uncommented "AllowSupplementaryGroups", restarted clamd, no change. > Any other suggestions? > Bowie Since this is a test server, reboot, and cross your fingers. Gary V ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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/