New Mailserver Problems

Home » CentOS » New Mailserver Problems
CentOS 6 Comments

Well, in part we will see if you get this and I get the return.

I JUST launched my new mail server after a few miscues. Actually the OS
is Redsleeve6, which is the arm port of CentOS 6, and perhaps some of my problems may come down to porting problems. But first, it may be that despite my testing, I missed something in the configurations.

First clamd problems:

Nov 19 08:09:54 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18598/parts Nov 19 08:10:15 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18599/parts Nov 19 08:11:13 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18598/parts Nov 19 08:11:35 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18599/parts Nov 19 08:12:33 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18598/parts Nov 19 08:12:54 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18599/parts Nov 19 08:14:07 z9m9z clamd[857]: lstat() failed on:
/var/spool/amavisd/tmp/amavis-20141119T075446-18598/parts

Then amavis problems:

08:08:42 z9m9z amavis[18599]: (18599-05) Checking: dkz-30wwFhmC
[85.214.87.163] ->
Nov 19 08:08:43 z9m9z amavis[18599]: (18599-05) (!)run_av (ClamAV-clamd)
FAILED – unexpected , output=”/var/spool/amavisd/tmp/amavis-20141119T075446-18599/parts:
lstat() failed: Permission denied. ERROR\n”
Nov 19 08:08:43 z9m9z amavis[18599]: (18599-05) (!)ClamAV-clamd av-scanner FAILED: CODE(0x29d9e28) unexpected , output=”/var/spool/amavisd/tmp/amavis-20141119T075446-18599/parts:
lstat() failed: Permission denied. ERROR\n” at (eval 100) line 594. Nov 19 08:08:43 z9m9z amavis[18599]: (18599-05) (!!)WARN: all primary virus scanners failed, considering backups

But is seems others are working?

Anyway, a mailserver change is always painful….

6 thoughts on - New Mailserver Problems

  • Can you reproduce in a VM on normal CentOS 6 with the same config files and package names (and versions)?

  • Unfortunately no selinux on RSEL. has to do, in part, with it being a port to armv5, eventhough I run it on armv7.

    I looked at the permissions and from /var/spool/amavisd it is owned by amavis:amavis

  • Without selinux, permission errors are usually pretty straightforward
    – that is, if something logs a ‘permission denied’, it means exactly that. I could be anywhere up the path, or the program accessing it might not have the uid you expect, though.

  • Is the clamav user a member of the amavis group and does the group permit read access to /var/spool/amavisd/tmp?

  • That was the problem as I said in my ‘solved’ message. I DID add clam to the amavis group, but left out giving permissions to the group. I
    found a ubuntu setup discussion that said to give r & x permissions.
    Thinking about it, don’t see way x permissions are needed.