Tilman Schmidt
2010-04-09 13:45:05 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On March 22, two of my mail servers running CentOS 5.4 with Sendmail,
MIMEDefang and ClamAV stopped passing mail, filling their logs with
error messages like this:
Mar 22 14:49:47 gimli sendmail[7855]: o2MDnlWB007855: Milter
(mimedefang): local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe
Mar 22 14:49:47 gimli sendmail[7855]: o2MDnlWB007855: Milter
(mimedefang): to error state
This happened immediately after the yum.log entry:
Mar 22 14:03:10 Updated: mimedefang.i386 2.68-1.el5.rf
MIMEDefang was stopped and could not be started, complaining:
Starting mimedefang-multiplexor: /usr/bin/mimedefang-multiplexor: Unable
to chdir(/var/spool/MIMEDefang): Permission denied
[FAILED]
Starting mimedefang: /usr/bin/mimedefang: Unable to
chdir(/var/spool/MIMEDefang): Permission denied
[FAILED]
It turned out the owner of the directories
/var/spool/MIMEDefang
/var/spool/MD-Quarantine
had been changed from "clamav" to "defang", killing MIMEDefang.
I can only assume that the update did this, as "defang" is the
original owner of those directories in that package.
Background: the rpmforge packages clamd and mimedefang do not
cooperate out of the box, because they run as different users
and clamd cannot read the files that MIMEDefang asks it to scan.
To fix this I changed MIMEDefang's configuration to run as the
clamav user, and adapted the ownership of its spool and log
directories accordingly. This has worked quite well until that
fateful mimedefang update.
Any suggestions for avoiding that kind of incident in the future?
Thanks,
Tilman
- --
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany
Hash: SHA1
On March 22, two of my mail servers running CentOS 5.4 with Sendmail,
MIMEDefang and ClamAV stopped passing mail, filling their logs with
error messages like this:
Mar 22 14:49:47 gimli sendmail[7855]: o2MDnlWB007855: Milter
(mimedefang): local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe
Mar 22 14:49:47 gimli sendmail[7855]: o2MDnlWB007855: Milter
(mimedefang): to error state
This happened immediately after the yum.log entry:
Mar 22 14:03:10 Updated: mimedefang.i386 2.68-1.el5.rf
MIMEDefang was stopped and could not be started, complaining:
Starting mimedefang-multiplexor: /usr/bin/mimedefang-multiplexor: Unable
to chdir(/var/spool/MIMEDefang): Permission denied
[FAILED]
Starting mimedefang: /usr/bin/mimedefang: Unable to
chdir(/var/spool/MIMEDefang): Permission denied
[FAILED]
It turned out the owner of the directories
/var/spool/MIMEDefang
/var/spool/MD-Quarantine
had been changed from "clamav" to "defang", killing MIMEDefang.
I can only assume that the update did this, as "defang" is the
original owner of those directories in that package.
Background: the rpmforge packages clamd and mimedefang do not
cooperate out of the box, because they run as different users
and clamd cannot read the files that MIMEDefang asks it to scan.
To fix this I changed MIMEDefang's configuration to run as the
clamav user, and adapted the ownership of its spool and log
directories accordingly. This has worked quite well until that
fateful mimedefang update.
Any suggestions for avoiding that kind of incident in the future?
Thanks,
Tilman
- --
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany