93 lines
4.8 KiB
Plaintext
93 lines
4.8 KiB
Plaintext
<h2> Requirements </h2>
|
|
|
|
<menu>
|
|
<li> While the miltermodule will work with python 1.5, you probably
|
|
want to use python 2.0 or better. The python code uses a number of
|
|
python 2 features. The email support requires python 2.4.
|
|
<li> Python must be configured with thread support. This is because
|
|
sendmail's libmilter requires thread support.
|
|
<li> You must compile sendmail with libmilter enabled. In versions of
|
|
sendmail prior to 8.12 libmilter is marked FFR (For Future Release) and
|
|
is not installed by default.
|
|
Sendmail 8.12 still does not enable libmilter by default. You must
|
|
explicitly select the "MILTER" option when compiling.
|
|
<li> Python milter has been tested against sendmail-8.11 and sendmail-8.12.
|
|
<li> Python milter must be compiled for the specific version of sendmail
|
|
it will run with. (Since the result is dynamically loaded, there could
|
|
conceivably be multiple versions available and selected at startup - but
|
|
that will have to wait.) This situation may only exist for sendmail
|
|
versions prior to 8.12. The protocol seems designed for backward
|
|
compatibility - and 8.12 is the first official milter release.
|
|
<li> Mea Culpa! After reading the Python Style guide, I realize that
|
|
my Python code is not up to snuff. Apparently mixed tabs and spaces
|
|
are anathema to those using Windows editors, where tabs can be expanded using
|
|
any arbitrary algorithm. Other than that, my
|
|
intuition matched Guido's pretty well - although I like to indent by 2
|
|
rather than 4. I will arrange to have tabs expanded to spaces when
|
|
exporting new versions. Until then, beware!
|
|
</menu>
|
|
|
|
<h3> <a name="aix4"> AIX 4.1.5 Requirements </a> </h3>
|
|
To create sendmail RPMs for AIX, you can download my AIX 4.1.5 spec files
|
|
for <a href="/aix/sendmail.spec">sendmail-8.11.5</a>
|
|
or <a href="/aix/sendmail12.spec">sendmail-8.12.3</a>. If you have
|
|
not already set it up, I use a <a href="/aix/aix.spec">dummy RPM package</a>
|
|
to represent the stuff that comes with AIX. You might also want
|
|
my <a href="/aix/python.spec">python-2.1.1</a> spec file for AIX. It
|
|
does not include Tk or curses modules, sorry. If y'all trust me, you can
|
|
download rpms for AIX 4.x from my <a href="/aix">AIX RPM directory</a>.
|
|
<p>
|
|
Sendmail-8.12 renames
|
|
libsmutil.a to libsm.a. Unfortunately, libsm.a is an important AIX system
|
|
shared library. Therefore, I rename libsm.a back to libsmutil.a for
|
|
AIX. This presents a problem for setup.py.
|
|
|
|
<h3> <a name="rh72"> RedHat 7.2 Requirements </a> </h3>
|
|
|
|
If you are running Redhat 7.2, the distributed version of sendmail
|
|
now enables libmilter by default. RedHat 7.2 bundles
|
|
the development libraries with the main sendmail package, so
|
|
there is no sendmail-devel package. However, they forgot to include the
|
|
headers! So you'll have to get the SRPM and modify it. I suggest
|
|
moving the static libs to a devel package and adding the headers. If
|
|
this is too much trouble, you can get the <a href="mfapi.h">mfapi.h</a>
|
|
header for sendmail-8.6.11 from here and manually install it as
|
|
<code>/usr/include/libmilter/mfapi.h</code>.
|
|
<p>
|
|
If you do modify the SRPM, I suggest renaming libsmutil.a
|
|
to libsm.a - just like sendmail-8.12 will. If you manually install
|
|
mfapi.h or don't rename libsmutil.a, you'll
|
|
need to force <code>libs = ["milter", "smutil"]</code> in setup.py.
|
|
<p>
|
|
If you have installed python2, and want
|
|
python-milter to use python2, add <code>python=python2</code> to setup.cfg
|
|
and build with <code>python2 setup.py bdist_rpm</code>.
|
|
|
|
<h3> <a name="rh62"> Redhat 6.2 Requirements </a> </h3>
|
|
|
|
If you are running Redhat 6.2, the distributed version of sendmail
|
|
does not enable libmilter. You can download the Redhat 7.2 sendmail.spec
|
|
modified to compile on RedHat 6.2:
|
|
<a href="http://www.bmsi.com/linux/rh62/sendmail-rhmilter.spec">
|
|
sendmail-rhmilter.spec</a>. The <a
|
|
href="ftp://updates.redhat.com/7.0/en/os/SRPMS/sendmail-8.11.6-1.7.0.src.rpm">
|
|
SRPM for sendmail-8.11.6</a> is available from
|
|
<a href="http://www.redhat.com">Redhat</a> under
|
|
<a href="http://www.redhat.com/support/errata/RHSA-2001-106.html">
|
|
Errata for RH6.2</a>. But that doesn't include the latest security
|
|
patches since RH6.2 is no longer supported.
|
|
<p>
|
|
If y'all trust me, you can pick up source and binary sendmail RPMs for RH6.2
|
|
from my <a href="http://www.bmsi.com/linux/rh62">linux downloads</a> directory.
|
|
The lastest RPMs were built by taking a RH7.2 SRPMS and removing some
|
|
RPM features from the spec file that RH6.2 doesn't support, then
|
|
recompiling on RH6.2. You can check this by installing the RH7.2 SRPM,
|
|
then diffing my sendmail.spec with theirs. Then run
|
|
"rpm -bb sendmail-rhmilter.spec" when you are satisfied.
|
|
<p>
|
|
If you have installed python2, and want
|
|
python-milter to use python2, add <code>python=python2</code> to setup.cfg
|
|
and build with <code>python2 setup.py bdist_rpm</code>.
|
|
You'll need to install the sendmail-devel package to compile milter.
|
|
|