File: README.exim4

package info (click to toggle)
mailscanner 4.79.11-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,820 kB
  • ctags: 1,309
  • sloc: perl: 25,655; sh: 2,666; xml: 624; makefile: 242
file content (77 lines) | stat: -rw-r--r-- 2,408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
HOWTO setup mailscanner for exim4 in daemon mode
================================================

[Note: this configuration works for me; please send other working
 configurations to mailscanner@packages.debian.org]

This configuration assumes, you use the exim4 configuration provided
by the exim4-config package.

- change permissions for the exim4 user

	chown -R Debian-exim:Debian-exim /var/spool/MailScanner
	chown -R Debian-exim:Debian-exim /var/lib/MailScanner
	chown -R Debian-exim:Debian-exim /var/run/MailScanner
	chown -R Debian-exim:Debian-exim /var/lock/subsys/MailScanner

- create a spool directory for the outgoing queue

	mkdir -p /var/spool/exim4_outgoing/{db,input,msglog}
	chown -R Debian-exim:Debian-exim /var/spool/exim4_outgoing
	chmod -R 750 /var/spool/exim4_outgoing

- when configuring mailscanner with 'Split Exim Spool = yes', which is
  not the default and not needed for most installations, then you have
  to set
	Incoming Queue Dir = /var/spool/exim4/input/*
  and create all 62 dirs in both queue directories yourself. See the exim
  documentation for the details.

- create a log directory for the outgoing queue

	mkdir -p /var/log/exim4_outgoing
	chown -R Debian-exim:adm /var/log/exim4_outgoing
	chmod -R 2750 /var/log/exim4_outgoing

- copy logrotate script
	cp /usr/share/doc/mailscanner/exim/logrotate \
		/etc/logrotate.d/mailscanner_exim

- modify the exim4 defaults in /etc/default/exim4

  - set QUEUERUNNER to `separate'
  - add to QUEUERUNNEROPTIONS `-DOUTGOING'
  - add to SMTPLISTENEROPTIONS `-odq'.

- copy the mailscanner snippet to the exim4 config. Make sure you
  configured exim4-config to use split configuration files.  If not,
  use dpkg-reconfigure exim4 to change it.

	cp -p /usr/share/doc/mailscanner/exim/01_mailscanner_config \
		/etc/exim4/conf.d/main/.

  (When using the monolithic exim4 config file, insert the contents of this
  file somewhere before 'begin acl').

- run `update-exim4.conf'

- restart exim4.

- copy exim4's daily cronjob and apply the patch to cleanup tidydb in
	exim4_outgoing

	cp -p /etc/cron.daily/exim4-base \
		/etc/cron.daily/exim4-outgoing

	cd /etc/cron.daily
	patch < /usr/share/doc/mailscanner/exim/cron.daily.patch

- edit /etc/default/mailscanner

- if you use clamd as virus-scanner add user clamav to Debian-exim group

		 adduser clamav Debian-exim

- start mailscanner.

	/etc/init.d/mailscanner start