diff --git a/MANIFEST.in b/MANIFEST.in index a7faa28..ec107b2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -15,6 +15,7 @@ include spfquery.py include test.py include sample.py include test/* +include Milter/*.py include *.spec include start.sh include milter.rc diff --git a/milter.html b/milter.html index 11d0353..0e2aa76 100644 --- a/milter.html +++ b/milter.html @@ -24,9 +24,9 @@ ALT="Viewable With Any Browser" BORDER="0"> Stuart D. Gathman
This web page is written by Stuart D. Gathman
and
sponsored by Business Management Systems, Inc.
-Last updated Jan 05, 2005 +Last updated May 31, 2005 -See the FAQ | Download now | +See the FAQ | Download now | Subscribe to mailing list | Overview

@@ -44,6 +44,10 @@ I recommend upgrading.

Recent Changes

+Python milter is being moved to +Sourceforge for +development. +

Release 0.7.2 tightens the authentication screws with a "3 strikes and your out" policy. A sender must have a valid PTR, HELO, or SPF record to send email. Specific senders can be whitelisted using the @@ -222,300 +226,9 @@ content filtering. SPF checking requires pydns. Configuration documentation is currently included as comments in the sample config file for the bms.py milter. - -

Downloading

- -The latest stable release is 0.7.2. A stable -release is one which has been installed (and working correctly) on -production systems long enough to convince me that it is stable. As -the package gains more features and complexity, stable will mean no -bug reports from outside users either. -

-The latest version is 0.7.2-2. See the Change Log. -PLEASE NOTE - if you are using the modules, but not the bms milter application, -then ignore the RPMs and milter.spec. Use 'python setup.py bdist_rpm' to -build source and binary rpms that do not include the milter application. -

-I want to split the bms milter application to a new project once I figure -out the renaming. The current plan is to rename 'milter' to 'pymilter', which -will have the Python modules. The bms milter application will still be named -'milter' and depend on pymilter (so that my installs won't notice anything). -

-Stable - -milter-0.7.2.tar.gz Three strikes and your out policy. Some SPF fixes. -Recognizes PTR records for dynamic IPs. -
- -milter-0.7.2-2.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.7.2-2rh9.i386.rpm Binary RPM for Redhat 9, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.7.2-2.src.rpm Source RPM for Redhat 9,7.x. -

- -milter-0.7.1.tar.gz Support setmlreply, handle some more exceptions -for malformed spam. Compiling pymilter with sendmail-8.12.10, requires -sendmail-devel with _FFR_MULTILINE set. The binary will work with older -sendmails. The _FFR_MULTILINE option only affects libmilter.a. -
- -milter-0.7.1-1.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.7.1-1.src.rpm Source RPM for Redhat 9,7.x. -

- -milter-0.7.0.tar.gz Move config file and default socket location. -Parse M$ CID records. -
- -milter-0.7.0-1.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.7.0-1rh9.i386.rpm Binary RPM for Redhat 9, requires - sendmail-8.12 and - python2.3. -
- -milter-0.7.0-1.ppc.rpm Binary RPM for AIX, requires sendmail-8.13.1. -
- -milter-0.7.0-1.src.rpm Source RPM for Redhat 9,7.x. -

- -milter-0.6.9.tar.gz Add SPF test suite driver, and validate -spf.py against test suite. Add best_guess and get_header to spf.py. -Libmilter timeout option in config. -
- -milter-0.6.9-1.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.6.9-1.src.rpm Source RPM for Redhat 9,7.x. -

- -milter-0.6.8.tar.gz Include Received-SPF headers in Dspam analysis. -Fix sysv init for Redhat 9 and later. Reject bounces with multiple -recipients. -
-milter-0.6.8.patch -Last minutes fixes from production testing. -

- -milter-0.6.8-3.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.6.8-3.src.rpm Source RPM for Redhat 9,7.x. -

- -milter-0.6.7.tar.gz Explicit local socket bug, -SRS forgery detection, -thread resource starvation detection. -SRS support requires pysrs. -

- -milter-0.6.7-3.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. -
- -milter-0.6.7-3.src.rpm Source RPM for Redhat 7.x. -Release 0.6.7-3 patches: -

-

- -milter-0.6.6.tar.gz Plug another memory leak, -SPF support, hello blacklist. -SPF support requires pydns. -NOTE - the spf.py module included is modified from the official 1.6 -version at wayforward.net. -I neglected to add the CVS log. The changes are expanded result codes -and tolerating common method misspellings in SPF records. I have notified the -author, but haven't heard back. At some point, the RPM will -include the official pyspf tarball and apply patches. -

- -milter-0.6.6-2.i386.rpm Binary RPM for Redhat 7.x, now requires - sendmail-8.12 and - python2.3. Release 2 fixes sysv init script bug for python2.3. -
- -milter-0.6.6-2.src.rpm Source RPM for Redhat 7.x -

- -milter-0.6.5.tar.gz Plug memory leak, progress reporting, trusted relay. -Redhat RPM now requires sendmail-8.12. -

- -milter-0.6.5-2.i386.rpm Binary RPM for Redhat 7.x -
- -milter-0.6.5-2.src.rpm Source RPM for Redhat 7.x -

- -milter-0.6.4.tar.gz Numerous Dspam fixes. Requires -pydspam-1.1.5 and -dspam-2.6.5.2 -for Dspam features. The dspam-python RPM has been replaced by pydspam. -

- -milter-0.6.4-1.i386.rpm Binary RPM for Redhat 7.x -

- -milter-0.6.3.1.tar.gz New dspam SCREENER feature with pydspam-1.1.4. -Don't save a defang copy of false positives. Fixed an oops from last fix, -rejecting false positives. BUG: sendmail-8.11 doesn't invoke milter -when sending mail via sendmail from command line (8.12 works). Therefore, -the supplied falsepositive script for milter based dspam doesn't work -with stock RedHat 7.x. I am writing a HOWTO for configuring milter -based dspam that will address this (and a fix in the next version). -

- -milter-0.6.3-1.i386.rpm Binary RPM for Redhat 7.x -

- -milter-0.6.2.tar.gz work around email.Message.get_filename bug, -dspam_exempt list, REJECT messages with missing MIME boundaries (which -are almost always spam), -DISCARD messages which any dspam user flags as spam, -start.sh was calling python instead of python2 on Linux. -

- -milter-0.6.2-1.src.rpm Source RPM for Redhat 7.x (and likely -higher versions) -

- -milter-0.6.1.tar.gz dspam milter application, python-2.2.3 support. -

-You must have dspam and dspam-python loaded for -the dspam feature to work. Brief instructions for configuring are -in the default config file. This is working at a customer, but I'm -sure a few more iterations will be required to make setup as smooth -as possible. -

-NOTE: Outlook destroys dspam tags when forwarding mail (while converting -HTML to text). Perhaps some config option will turn this abominable -"feature" off. Working around this by making dspam tags visble on -HTML mail is ugly. My suggestion is to not use Outlook, for this and -many other reasons - especially security. Any other suggestions for -those married to Microsoft are welcome. The DSPAM LDA works around this -by making the tags visible in HTML attachments. This is ugly, and -occasionally corrupts attachments. -

-We have to supply workarounds for bugs in the email module (reported -to sourceforge). The workarounds reference some internal variables -which change with python versions. -

- -milter-0.6.1-1.i386.rpm Binary RPM for Redhat 7.x -

- -milter-0.6.1-1.src.rpm Source RPM for Redhat 7.x (and likely -higher versions) -

- -milter-0.6.0.tar.gz simple dspam pre-filtering, use email module, -requires python >= 2.2.2. -

- -

- -milter-0.6.0-1.i386.rpm Binary RPM for Redhat 7.x -

- -milter-0.6.0-1.src.rpm Source RPM for Redhat 7.x (and likely -higher versions) -

- -milter-0.5.5.tar.gz IPV6 support, passing None to set_XXX_callback, -set_reply, chg_header, detect internal connections. Note, this release -did not work on AIX4.1.5, probably due to IPV6 support breaking something. -The milter.so module from 0.5.4 can be installed to use this release -with AIX. -

- -milter-0.5.4.tar.gz wiretap, smart alias features, quarantine support. -

-The name of the production "sample" milter "bms.py" now -stands for "Basic Milter System" until someone suggests a better name. -The test coverage is rather - sparse at present. - Please email with proposals for what - to name the milter application. -

NOTES

- -

- -milter-0.5.2.tar.gz Fix and unittest another HTML parsing bug.
- -milter-0.5.1.tar.gz Handle encoded rfc822 attachments.
- -milter-0.5.0.tar.gz Use a config file so users don't have to -keep syncing with bms.py.
- -milter-0.4.5.tar.gz Work with sgmlop. Reduce local hacks to config variables.

Python milter is under GPL. The authors can probably be convinced to -change this to LGPL. +change this to LGPL if needed.

What is a milter?

diff --git a/setup.py b/setup.py index 775cee7..2d80f2f 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,8 @@ querying SPF records. maintainer_email="stuart@bmsi.com", license="GPL", url="http://www.bmsi.com/python/milter.html", - py_modules=["Milter","mime","spf"], + py_modules=["mime","spf"], + packages = ['Milter'], ext_modules=[ Extension("milter", ["miltermodule.c"], libraries=libs, @@ -42,6 +43,7 @@ querying SPF records. 'Natural Language :: English', 'Operating System :: POSIX', 'Programming Language :: Python', - 'Topic :: Communications :: Email :: Mail Transport Agents' + 'Topic :: Communications :: Email :: Mail Transport Agents', + 'Topic :: Communications :: Email :: Filters' ] ) diff --git a/spf.py b/spf.py index 450f149..2d21672 100755 --- a/spf.py +++ b/spf.py @@ -401,6 +401,7 @@ class query(object): Returns (result, mta-status-code, explanation) where result in ['fail', 'softfail', 'neutral' 'unknown', 'pass', 'error'] """ + self.mech = [] # unknown mechanisms if self.i.startswith('127.'): return ('pass', 250, 'local connections always pass') @@ -456,7 +457,6 @@ class query(object): # overridden with 'default=' modifier # default = 'neutral' - self.mech = [] # unknown mechanisms # Look for modifiers #