Github clone of https://code.google.com/p/python-port25 with minor modifications.
The software requires the software installed from PowerMTA that is non-free. It requires the C API libpmta.so. Without this library the package will not be of much use to you.
The software is licensed under the GPLv3 license which is provided with this source code.