OT: create a sendmail.mc file from a sendmail.cf file?

Scott Lambert lambert at lambertfam.org
Thu May 29 13:11:34 PDT 2003


I would like to know if anyone has seen a sendmail.mc generator that
takes a sendmail.cf file as input.  Google hasn't come up with anything
yet, but I'm famous for not using the right search words.

Why do I need to do this, you ask?

I've been trying to move one of my customers off a Cobalt RaQ4 onto a
FreeBSD box.  (They were hacked twice in one week with all the patches
installed.  Those two times made 4 root compromises of the box in the
past year and a half and they saw the light.)  I currently have them up
on a RedHat box using a couple of the Cobalt binaries.  

Getting them up on the Linux box was about 24 man-hours of config
massaging and directory correlation once I gave up and used two binaries
from the compromised Cobalt.  That is in addition to the time spent in
RPM hunting hell.  All of the Cobalt packages were really old versions
of opensource packages.  Most of that config massaging is paying off in
the move from Linux to FreeBSD.

The biggest problems in bringing this system over to the FreeBSD box are
the Cobalt specific cgiwrap and majordomo wrapper binaries.

I think I've massaged the majordomo configs around to where they will
work without the Cobalt wrapper program and it's virtual hosting
additions.  We'll find out when we go live. :-(

I haven't gotten to the cgiwrap binary yet.  So far I plan to replace it
with suexec or the non-Cobalt cgiwrap.  But I am not far enough into it
to know if that will work without a lot of other changes.  They tell me 
they don't have a lot of CGI so I'm leaving that for last.

Right now, I am working on trying to upgrade the sendmail.cf file from
8.9 to 8.12 to make newaliases work and to ease future maintainability.
I never learned to read the sendmail.cf language beyond the basics, and
don't know the one to one mapping of mc rule to cf rule blocks.

-- 
Scott Lambert                    KC5MLE                       Unix SysAdmin
lambert at lambertfam.org      


More information about the freebsd-isp mailing list