Am Samstag, den 21.10.2006, 08:33 -0400 schrieb Gerard Seibert: > FreeBSD 6.1 STABLE > ClamAV 0.88.5 > clamav-milter 0.88.5 > Postfix-2.4-20061006 > > > I previously had clamav-milter working on a PC with 'Sendmail' as the > MTA. My new system has 'Postfix' installed. I have no desire to change > this, therefore I would like to know how to get the clamav-milter to > operate with Postfix. I have Googled for suggestions. There seems to be > an abundance of them. What I am looking for is the definitive one; i.e., > one that actually works. > > I did not seem to locate one on the ClamAV site. Is there somewhere else > I can get accurate information regarding this?
what your problem? it so easy postfix main.cf: smtpd_milters = unix:/clamav/milter postfix work in chroot /var/spool/postfix clamav-milter fake sendmail.mc: INPUT_MAIL_FILTER(‘clmilter’,‘S=unix:/var/spool/postfix/clamav/milter, F=, T=S:4m;R:4m’)dnl define(‘confINPUT_MAIL_FILTERS’, ‘clmilter’) runit run-file: umask 007 exec 2>&1 exec clamav-milter -A -N -m10 -q \ --sendmail-cf=/etc/clamav-milter/sendmail.mc \ -c /etc/clamd/clamd.conf unix:/var/spool/postfix/clamav/milter permissions for the directory/files should be: ls -la /var/spool/postfix/clamav/ drwxr-x--- 2 _clamav _postfix 512 Oct 18 10:12 ./ drwxr-xr-x 19 root wheel 512 Aug 26 10:46 ../ srwxrwxrwx 1 _clamav _postfix 0 Oct 18 10:12 clamd= srwxrwx--- 1 _clamav _postfix 0 Oct 18 10:12 milter= user _clamav run's clamd, freshclam and clamav-milter postfix need write permission to the socket (user _postfix and umask 007 in run-file) this works on openbsd read postfix's MILTER_README and clamAV's clamdoc.pdf -- Christian Rueger <[EMAIL PROTECTED]> _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
