Friday, June 09, 2006

Clamav & Sendmail Beta ver inst scripts

Clamav:
groupadd clamav
useradd -g clamav -s /dev/null clamav
cd clamav*
./configure --enable-milter
make
make install

Sendmail:
cd sendmail*
cd devtools/Site
echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER')" >> site.config.m4
cd ../../
./Build -c
./Build install
cd cf/cf/
cp generic-linux.mc sendmail.mc
sh Build sendmail.cf
sh Build install-cf
cd ../..
sh Build install

Post install:
chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
chmod 0640 /etc/mail/aliases /etc/mail/aliases.{db,pag,dir}
chmod 0640 /etc/mail/*.{db,pag,dir}
chmod 0640 /etc/mail/statistics /var/log/sendmail.st
chmod 0600 /var/run/sendmail.pid /etc/mail/sendmail.pid

0 Comments:

Post a Comment

<< Home