Skip to content

pckizer/pysrs

 
 

Repository files navigation

pysrs

Python SRS (Sender Rewriting Scheme) library.

As SPF is implemented, MTAs that check SPF must account for any forwarders. One way to handle forwarding is to have the forwarding MTA rewrite envfrom to a domain they are authorized to use.

See https://www.open-spf.org/SRS for details. The Perl reference implementation and a C implementation are at http://www.libsrs2.org/

This is a python library and sendmail/Exim socketmap that rewrites MAIL FROM. Often used with python milter to reject forged bounces (that lack a valid SRS signature).

Note

The srsmilter.py program is experimental, and not intended for production. It's purpose is to explore whether the milter API supports an SRS application. The verdict is that it does not at present. There are fundamental shortcomings in the CHGFROM api and worse problems with recipient handling.

For a functioning SRS system, you must use sendmail, the macros with CF code, and the pysrs.py socket daemon. Sadly, a postfix solution will need to likewise be very postfix specific - the milter API doesn't cut it.

About

No description, website, or topics provided.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
COPYING
Unknown
LICENSE.python
Unknown
LICENSE.sendmail

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.9%
  • M4 4.9%
  • HTML 4.6%
  • Shell 2.3%
  • Makefile 0.3%