Browse code

Added FreeBSD5.2 startup script

git-svn: trunk@1174

Nigel Horne authored on 2004/12/13 05:22:03
Showing 1 changed files
... ...
@@ -109,6 +109,33 @@ Installations for RedHat Linux and it's derivatives such as YellowDog:
109 109
 	Where /var/run/spamass.sock is the location of the spamass-milt
110 110
 	socket file (on some systems it is in /var/run/sendmail/spamass.sock).
111 111
 
112
+Installations for FreeBSD5 (may be true for other BSDs)
113
+	Add to /etc/mail/freebsd.mc:
114
+	INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
115
+	define(`confINPUT_MAIL_FILTERS', `clamav')
116
+
117
+	Check entry in /usr/local/etc/clamd.conf of the form:
118
+	LocalSocket /var/run/clamav/clamd.sock
119
+
120
+	If you already have a filter (such as spamassassin-milter from
121
+	http://savannah.nongnu.org/projects/spamass-milt) add it thus:
122
+	INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
123
+	INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
124
+	define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl
125
+
126
+	mkdir /var/run/clamav
127
+	chown clamav /var/run/clamav	(if you use User clamav in clamd.conf)
128
+	chmod 700 /var/run/clamav
129
+
130
+	Where /var/run/spamass.sock is the location of the spamass-milt
131
+	socket file (on some systems it is in /var/run/sendmail/spamass.sock).
132
+
133
+You should have received a script to install into /etc/rc.d as /etc/rc.d/clamav
134
+with this software. Add to /etc/rc.conf:
135
+	clamd_enable="YES"
136
+	clamav_milter_enable="YES"
137
+	clamav_milter_flags="--max-children=2 --dont-wait --timeout=0 -P local:/var/run/clamav/clamav.sock --pidfile=/var/run/clamav/clamav-milter.pid --quarantine-dir=/var/run/clamav/quarantine"
138
+
112 139
 You may find INPUT_MAIL_FILTERS is not needed on your machine, however it
113 140
 is recommended by the Sendmail documentation and I recommend going along
114 141
 with that.