git-svn: trunk@2354
Nigel Horne authored on 2006/10/09 05:56:54... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Sun Oct 8 21:55:46 BST 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter/INSTALL: Documented integration with postfix, thanks |
|
4 |
+ to Edvin Torok |
|
5 |
+ |
|
1 | 6 |
Sun Oct 8 20:51:40 CEST 2006 (tk) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav: fix crash in phishing code on database reload (Edvin Torok) |
... | ... |
@@ -184,10 +184,10 @@ with this software. Add to /etc/rc.conf: |
184 | 184 |
|
185 | 185 |
Solaris 10 should install out of the box. Edit /etc/mail/cf/cf/main.mc adding |
186 | 186 |
the line: |
187 |
- INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl |
|
187 |
+ INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter, F=, T=S:4m;R:4m')dnl |
|
188 | 188 |
Then: |
189 | 189 |
cp /etc/mail/cf/cf/main.cf /etc/mail/main.cf |
190 |
- /usr/local/sbin/clamav-milter local:/var/run/clamav/clmilter.sock |
|
190 |
+ /usr/local/sbin/clamav-milter local:/var/run/clamav/clamav-milter |
|
191 | 191 |
mkdir /var/run/clamav |
192 | 192 |
chown clamav /var/run/clamav (if you use User clamav in clamd.conf) |
193 | 193 |
chmod 700 /var/run/clamav |
... | ... |
@@ -295,6 +295,25 @@ appearing in a log file, you will need to increase the number of threads on |
295 | 295 |
your system (/proc/sys/kernel/threads-max), or decrease the value of |
296 | 296 |
--max-children. |
297 | 297 |
|
298 |
+2.7 Postfix |
|
299 |
+ |
|
300 |
+Clamav-milter is designed only to work with Sendmail. I understand that postfix |
|
301 |
+now has milter support, and I've heard that clamav-milter now runs with |
|
302 |
+postfix, however it is not supported with that software and I do not know how |
|
303 |
+much functionality works. |
|
304 |
+ |
|
305 |
+Try this to start clamav-milter: |
|
306 |
+ |
|
307 |
+ # clamav-milter --sendmail-cf= --max-children=2 \ |
|
308 |
+ --timeout=0 --pidfile=/var/run/clamav/clamav-milter \ |
|
309 |
+ local:/var/spool/postfix/clamav/clamav-milter |
|
310 |
+ # chown clamav:postfix /var/spool/postfix/clamav/clamav-milter |
|
311 |
+ # chmod g+w /var/spool/postfix/clamav/clmilter |
|
312 |
+ |
|
313 |
+In /etc/postfix/main.cf set: |
|
314 |
+ smtpd_milters = unix:clamav/clamav-milter |
|
315 |
+ non_smtpd_milters = unix:clamav/clamav-milter |
|
316 |
+ |
|
298 | 317 |
3. CHANGE HISTORY |
299 | 318 |
|
300 | 319 |
See ../ChangeLog |