[Mimedefang] Configuration Snafus
Mickey Hill
mickey at rudolphtire.com
Mon Apr 1 17:13:59 EST 2002
> Would someone running a Redhat 7.2 box be so kind to provide
> a breif step by step description of steps they had to
> complete from the OEM configuration to a working copy of
> mimedefang for Redhat 7.2?
Here is my (edited) instruction list I use when setting up my mail
server. This is for Red Hat 7.2 straight out of the box, with Sendmail
8.12.2.
NOTE: I took out a LOT of steps that weren't relevant, and this list
has been revised a half dozen times, and is probably not ready for prime
time. USE AT YOUR OWN RISK! :)
Sendmail installation:
1. Create the /usr/src/sendmail directory and cd to it.
2. Download the source at:
ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.x.x.tar.gz
3. Unpack the source: tar xvfz sendmail.8.x.x.tar.gz
4. Remove the source: rm sendmail.8.x.x.tar.gz
5. Cd into the sendmail-8.x.x directory.
6. Create devtools/Site/site.config.m4 with the following lines:
dnl Milter
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
7. In the sendmail/ directory, run "sh Build".
8. Change to the cf/cf/ directory. Copy generic-linux.mc to
sendmail.mc.
Next, tailor it as explained in cf/README. Then run
"sh Build sendmail.cf".
Example sendmail.mc file:
divert(-1)dnl
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights
reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp
$')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`confTO_IDENT',`0s')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`redirect')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail')dnl
#FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/run/mimedefang.sock, F=T,
T=S:60s;R:60s;E:5m')
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
9. Back up your current /etc/mail/sendmail.cf and the sendmail binary
in
/usr/sbin.
10. Install sendmail.cf as /etc/mail/sendmail.cf and submit.cf as
/etc/mail/submit.cf. This can be done in the cf/cf directory by
using
"sh Build install-cf".
11. Create a new user smmsp and a new group smmsp with ID's of 25.
12. In the /usr directory, create a symbolic link: ln -s share/man man
13. Install the sendmail binary by cd-ing back to sendmail/ and running
"sh Build install".
14. For each of the associated sendmail utilities (makemap, mailstats,
etc.),
read the README in the utility's directory. When you are ready to
install it, back up your installed version and type "sh Build
install".
At a minimum, makemap and libmilter must be installed.
cd makemap
sh Build
sh Build install
cd ..
cd libmilter
sh Build
sh Build install
cd ..
15. Cd into the /usr/src/sendmail/sendmail-8.x.x directory.
16. Install headers and libraries for MIMEDefang:
mkdir -p /usr/local/include/sendmail
cp -R include/* /usr/local/include/sendmail
cp -R sendmail/*.h /usr/local/include/sendmail
mkdir -p /usr/local/lib
cp obj.Linux.2.4.7-10.i686/*/*.a /usr/local/lib
MIMEDefang Installation
1. Cd to the /tmp directory.
2. Download the IO-stringy source at:
http://www.cpan.org/authors/id/ERYQ/IO-stringy-2.108.tar.gz
3. Unpack the source: tar xvfz IO-stringy-2.108.tar.gz
4. Remove the source: rm IO-stringy-2.108.tar.gz
5. Cd into the IO-stringy-2.108 directory.
6. Install the source:
perl Makefile.PL
make
make test
make install
7. Cd to the /tmp directory.
8. Remove the source directory:
rm -rf IO-stringy-2.108
9. Download the MIME-Base64 source at:
http://www.cpan.org/authors/id/GAAS/MIME-Base64-2.12.tar.gz
10. Unpack the source: tar xvfz MIME-Base64-2.12.tar.gz
11. Remove the source: rm MIME-Base64-2.12.tar.gz
12. Cd into the MIME-Base64-2.12 directory.
13. Install the source:
perl Makefile.PL
make
make test
make install
14. Cd to the /tmp directory.
15. Remove the source directory:
rm -rf MIME-Base64-2.12
16. Download the MailTools source at:
http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-1.44.tar.gz
17. Unpack the source: tar xvfz MailTools-1.44.tar.gz
18. Remove the source: rm MailTools-1.44.tar.gz
19. Cd into the MailTools-1.44 directory.
20. Install the source:
perl Makefile.PL
make
make test
make install
21. Cd to the /tmp directory.
22. Remove the source directory:
rm -rf MailTools-1.44
23. Download the MIME-tools source at:
http://www.cpan.org/authors/id/ERYQ/MIME-tools-5.411a.tar.gz
24. Unpack the source: tar xvfz MIME-tools-5.411a.tar.gz
25. Remove the source: rm MIME-tools-5.411a.tar.gz
26. Cd into the MIME-tools-5.411 directory.
27. Install the source:
perl Makefile.PL
make
make test
make install
28. Cd to the /tmp directory.
29. Remove the source directory:
rm -rf MIME-tools-5.411
30. Download the Digest-SHA1 source at:
http://www.cpan.org/authors/id/GAAS/Digest-SHA1-2.01.tar.gz
31. Unpack the source: tar xvfz Digest-SHA1-2.01.tar.gz
32. Remove the source: rm Digest-SHA1-2.01.tar.gz
33. Cd into the Digest-SHA1-2.01 directory.
34. Install the source:
perl Makefile.PL
make
make test
make install
35. Cd to the /tmp directory.
36. Remove the source directory:
rm -rf Digest-SHA1-2.01
37. Download the libnet source at:
http://www.cpan.org/authors/id/GBARR/libnet-1.10.tar.gz
38. Unpack the source: tar xvfz libnet-1.10.tar.gz
39. Remove the source: rm libnet-1.10.tar.gz
40. Cd into the libnet-1.10 directory.
41. Install the source:
perl Makefile.PL
make
make test
make install
42. Cd to the /tmp directory.
43. Remove the source directory:
rm -rf libnet-1.10
44. Download the Mail-Audit source at:
http://www.cpan.org/authors/id/S/SI/SIMON/Mail-Audit-2.1.tar.gz
45. Unpack the source: tar xvfz Mail-Audit-2.1.tar.gz
46. Remove the source: rm Mail-Audit-2.1.tar.gz
47. Cd into the Mail-Audit-2.1 directory.
48. Install the source:
perl Makefile.PL
make
make test
make install
49. Cd to the /tmp directory.
50. Remove the source directory:
rm -rf Mail-Audit-2.1
51. Download the SpamAssassin source at:
http://www.spamassassin.org/released/Mail-SpamAssassin-2.11.tar.gz
52. Unpack the source: tar xvfz Mail-SpamAssassin-2.11.tar.gz
53. Remove the source: rm Mail-SpamAssassin-2.11.tar.gz
54. Cd into the Mail-SpamAssassin-2.11 directory.
55. Install the source:
perl Makefile.PL
make
make test
make install
56. Cd to the /tmp directory.
57. Remove the source directory:
rm -rf Mail-SpamAssassin-2.11
58. Create the MIMEDefang spool directory:
mkdir /var/spool/MIMEDefang
chmod 700 /var/spool/MIMEDefang
59. Download the MIMEDefang source at:
http://www.roaringpenguin.com/mimedefang/mimedefang-2.6.tar.gz
60. Unpack the source: tar xvfz mimedefang-2.6.tar.gz
61. Remove the source: rm mimedefang-2.6.tar.gz
62. Cd into the mimedefang-2.6 directory.
63. Install the source:
./configure
make
make install
64. Cd to the /tmp directory.
65. Remove the source directory:
rm -rf mimedefang-2.6
66. Cd to the /etc/mail directory.
67. Edit the following line in spamassassin.cf:
use_terse_report 1
68. Copy the template to mimedefang-filter.
cp mimedefang-filter.example mimedefang-filter
69. Change the following lines in mimedefang-filter:
$Administrator = 'postmaster at yourcompany.com';
$DaemonAddress = 'postmaster at yourcompany.com';
-------------------------
Mickey Hill
Rudolph's Inc
2021 Rob Mason Rd
PO Box 69
Murray KY 42071 USA
Phone (270) 753-0686 x124
Fax (270) 753-0753
mickey at rudolphtire.com
www.rudolphtire.com
More information about the MIMEDefang
mailing list