Ajout : dovecot-antispam + amavis + crm114.
[lhc/ateliers.git] / etc / sv / amavis / local.sh
1 "$tool"/local/apt-get-install amavisd-new crm114
2 "$tool"/local/insserv-remove amavis
3
4 sudo find "$tool"/etc/amavis -maxdepth 1 -type f -exec \
5 install -t /etc/amavis/conf.d -o root -g root -m 664 {} +
6
7 sudo install -d -o root -g root -m 755 \
8 /etc/crm114
9 sudo find "$tool"/etc/crm114 -maxdepth 1 -type f -exec \
10 install -t /etc/crm114 -o root -g root -m 664 {} +
11
12 sudo install -d -o amavis -g amavis -m 2771 \
13 ~mail/crm114
14 sudo install -d -o amavis -g amavis -m 1777 \
15 ~mail/crm114/tmp
16
17 for css in spam notspam
18 do
19 sudo -u amavis cssutil -b -r ~mail/crm114/"$css".css
20 sudo chmod 660 ~mail/crm114/"$css".css
21 done
22
23 sudo find /etc/crm114 -maxdepth 1 -type f -exec \
24 ln -fns -t ~mail/crm114 -o root -g root -m 664 {} +
25
26 sudo ln -fns /dev/null ~mail/crm114/spamtext.txt
27 sudo ln -fns /dev/null ~mail/crm114/nonspamtext.txt