You are not logged in.
Hi,
after having quite a bunch of problems with the amavisd-new problems accumulated over time and a lot of lousy will-work-until-next-update patches, I decided to start over with the package and
completely removed and reinstalled it. Anyway, I'm stuck now with a permission problem when trying to start amavisd-new. Here's the log:
[...]
Jul 26 12:01:51 epiasrv amavis[18424]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.43, libdb 5.2
Jul 26 12:01:52 epiasrv amavis[18424]: (!!)TROUBLE in pre_loop_hook: QUARANTINEDIR $MYHOME/virus inaccessible: Permission denied at /usr/sbin/amavisd line 9310.
Jul 26 12:01:52 epiasrv amavis[18424]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: QUARANTINEDIR $MYHOME/virus inaccessible: Permission denied at /usr/sbin/amavisd line 9310.
I tried both, the standard $MYHOME setting and using /home/amavis which I used before to store all the virus and quarantined mails in. For using /home/amavis, I kept the old folders but also tried deleting and recreating them as user amavis.
Still, I get the above shown error message. I simply don't know why amavis shouldn't have the right permissions...
$ ls -l /home/amavis
drwxr-xr-x 2 amavis amavis 4096 26. Jul 11:06 db
drwxr-xr-x 2 amavis amavis 4096 26. Jul 11:01 quarantine
drwxr-xr-x 2 amavis amavis 4096 26. Jul 11:01 tmp
drwxr-xr-x 2 amavis amavis 4096 26. Jul 11:01 var
drwxr-xr-x 2 amavis amavis 4096 26. Jul 11:01 virus
$ ls -l /var/lib/amavis
drwxr-x--- 2 amavis amavis 4096 26. Jul 12:01 db
drwxr-x--- 2 amavis amavis 4096 24. Apr 16:48 tmp
drwxr-x--- 2 amavis amavis 4096 24. Apr 16:48 var
drwxr-x--- 2 amavis amavis 4096 26. Jul 11:09 virus
Some settings from /etc/amavisd/amavisd.conf
$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g
$MYHOME = '/var/lib/amavis'; # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.
$QUARANTINEDIR = '$MYHOME/virus'; # -Q
# $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine
# $release_format = 'resend'; # 'attach', 'plain', 'resend'
# $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf'
# $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R
# $db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
# $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S
Thanks for any help in advance,
Vrob
Last edited by Vrob (2011-07-26 10:11:13)
Offline