socket file location doesn't support chroot'd postfix smtpd, which is default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: clamav
A default postfix install, at least on Jaunty, runs smtpd chroot'd.
/etc/clamav/
MilterSocket /var/run/
Which is fine for non-chroot'd smtpd, but doesn't work for chroot'd smtpd.
To solve this for the spamassassin milter, I did something like:
mkdir -p /var/spool/
ln /var/spool/
However, a similar workaround doesn't work for clamav-milter, because the clamav socket is /var/run/
Instead, I added this to fstab:
/var/run/clamav /var/spool/
It'd be nice if the clamav-milter package automated this fstab entry, or provided some other automatic/default solution (or perhaps moved the socket into /var/spool/postfix under some conditions, perhaps set by a default-enabled option in clamav-
There isn't a good automated solution for this. How to configure your system for Postfix in a chroot is described in README.Debian that's shipped with the package. The problem is that if we defaulted to a Postfix friendly configuration, that would break Sendmail configurations.