Differences between version 14 and previous revision of EximMailFilter.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 14 | Last edited on Wednesday, June 8, 2005 11:37:22 am | by CraigBox | Revert |
Older page: | version 13 | Last edited on Wednesday, June 8, 2005 11:35:34 am | by CraigBox | Revert |
@@ -1,11 +1,17 @@
-!!!How to make your Debian Woody
machine an amazing [Exim] 4 mail filter
+!!!How to make your Debian machine an amazing [Exim] 4 mail filter
This is how I've set up a new exim4 installation to do all the filtering I used to do with MailScanner or amavis. It's much less CPU intensive to use the daemon mode of SpamAssassin and have your MTA do all the work instead of a big perl script.
There are a number of changes that aren't immediately apparent between using exim3 and exim4 on Debian: the configuration system is completely different. You either have a large configuration template file or a number of small files, but either way, the live config isn't updated until you run __update-exim4.conf__. Running an /etc/init.d/exim4 restart will run this command for you.
!!Get exim4
+
+!Sarge
+
+=apt-get install exim4-daemon-heavy clamav-daemon clamav-freshclam spamassassin= (add more or less as required)
+
+!Woody
Add these lines to your apt sources.list:
<pre>
@@ -13,8 +19,10 @@
deb http://www.linux.org.au/backports.org/debian woody gnutls11
</pre>
apt-get install exim4-daemon-heavy. You might like to purge exim3 at this point too else your ex<tab> completion will pick exim instead of exim4. At this point I assume you're running clamav-daemon, spamassassin 3.03 and have recent versions of libnet-perl-dns etc, but I'll deal to those later.
+
+!!Configure exim4
Configure exim4 to use the small config files.
Note: I use '[itp|ItPartners]' to signify my changes. You will want to use your own tag.
@@ -42,9 +50,9 @@
just above "# accept otherwise".
Also add the clamav user to group `Debian-exim': =usermod -G Debian-exim clamav=
-and make sure that /etc/clamav/clamd.conf contains `User clamav' and `AllowSupplementaryGroups'.
+and make sure that /etc/clamav/clamd.conf contains `User clamav' and `~
AllowSupplementaryGroups'.
This is so clamav can access the /var/spool/exim4 dir.
To restart exim4, use =invoke-rc.d exim4 restart= which builds the config file from the templates.